orb-billing 1.34.0 → 1.36.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 +25 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +4 -0
- data/lib/orb/models/backfill_reflected_webhook_event.rb +180 -0
- data/lib/orb/models/backfill_reverted_webhook_event.rb +180 -0
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +104 -0
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +499 -0
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +494 -0
- data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +161 -0
- data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +155 -0
- data/lib/orb/models/credit_note_issued_webhook_event.rb +65 -0
- data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +65 -0
- data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +171 -0
- data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +165 -0
- data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +212 -0
- data/lib/orb/models/customer_created_webhook_event.rb +81 -0
- data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +560 -0
- data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +566 -0
- data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +560 -0
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +474 -0
- data/lib/orb/models/customer_edited_webhook_event.rb +344 -0
- data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +100 -0
- data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +94 -0
- data/lib/orb/models/event_unmatched_event_webhook_event.rb +105 -0
- data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +64 -0
- data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +164 -0
- data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +158 -0
- data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +338 -0
- data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +83 -0
- data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +70 -0
- data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +70 -0
- data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +64 -0
- data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +186 -0
- data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +180 -0
- data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +184 -0
- data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +133 -0
- data/lib/orb/models/invoice_edited_webhook_event.rb +550 -0
- data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +120 -0
- data/lib/orb/models/invoice_issue_failed_webhook_event.rb +79 -0
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +841 -0
- data/lib/orb/models/invoice_issued_webhook_event.rb +79 -0
- data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +91 -0
- data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +68 -0
- data/lib/orb/models/invoice_payment_failed_webhook_event.rb +92 -0
- data/lib/orb/models/invoice_payment_processing_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +101 -0
- data/lib/orb/models/invoice_sync_failed_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +85 -0
- data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +68 -0
- data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +98 -0
- data/lib/orb/models/payment_method_created_webhook_event.rb +156 -0
- data/lib/orb/models/payment_method_deleted_webhook_event.rb +156 -0
- data/lib/orb/models/plan_default_version_set_webhook_event.rb +108 -0
- data/lib/orb/models/plan_version_created_webhook_event.rb +108 -0
- data/lib/orb/models/price_edited_webhook_event.rb +105 -0
- data/lib/orb/models/resource_event_test_webhook_event.rb +64 -0
- data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +164 -0
- data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +158 -0
- data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +178 -0
- data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +172 -0
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +624 -0
- data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +540 -0
- data/lib/orb/models/subscription_created_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_edited_webhook_event.rb +134 -0
- data/lib/orb/models/subscription_ended_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +111 -0
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +655 -0
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +191 -0
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +214 -0
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +652 -0
- data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +105 -0
- data/lib/orb/models/subscription_plan_changed_webhook_event.rb +93 -0
- data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +106 -0
- data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +105 -0
- data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +541 -0
- data/lib/orb/models/subscription_started_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_trial_ended_webhook_event.rb +82 -0
- data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +548 -0
- data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +236 -0
- data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +232 -0
- data/lib/orb/models/unwrap_webhook_event.rb +250 -0
- data/lib/orb/models/webhook_unwrap_params.rb +14 -0
- data/lib/orb/models.rb +180 -0
- data/lib/orb/resources/subscriptions.rb +13 -0
- data/lib/orb/resources/webhooks.rb +22 -0
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +82 -0
- data/rbi/orb/client.rbi +3 -0
- data/rbi/orb/models/backfill_reflected_webhook_event.rbi +274 -0
- data/rbi/orb/models/backfill_reverted_webhook_event.rbi +271 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +198 -0
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +1039 -0
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +1034 -0
- data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +315 -0
- data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +310 -0
- data/rbi/orb/models/credit_note_issued_webhook_event.rbi +98 -0
- data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +102 -0
- data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +339 -0
- data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +335 -0
- data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +437 -0
- data/rbi/orb/models/customer_created_webhook_event.rbi +128 -0
- data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +1091 -0
- data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +1096 -0
- data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +1091 -0
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +987 -0
- data/rbi/orb/models/customer_edited_webhook_event.rbi +599 -0
- data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +170 -0
- data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +165 -0
- data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +193 -0
- data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +319 -0
- data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +312 -0
- data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +614 -0
- data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +144 -0
- data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +139 -0
- data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +139 -0
- data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +331 -0
- data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +324 -0
- data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +329 -0
- data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +250 -0
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +942 -0
- data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +251 -0
- data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +132 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +1432 -0
- data/rbi/orb/models/invoice_issued_webhook_event.rbi +134 -0
- data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +165 -0
- data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +114 -0
- data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +157 -0
- data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +156 -0
- data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +175 -0
- data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +147 -0
- data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +147 -0
- data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +106 -0
- data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +167 -0
- data/rbi/orb/models/payment_method_created_webhook_event.rbi +259 -0
- data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +259 -0
- data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +196 -0
- data/rbi/orb/models/plan_version_created_webhook_event.rbi +190 -0
- data/rbi/orb/models/price_edited_webhook_event.rbi +235 -0
- data/rbi/orb/models/resource_event_test_webhook_event.rbi +116 -0
- data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +321 -0
- data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +316 -0
- data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +353 -0
- data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +346 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +1232 -0
- data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +179 -0
- data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +183 -0
- data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +1034 -0
- data/rbi/orb/models/subscription_created_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_edited_webhook_event.rbi +247 -0
- data/rbi/orb/models/subscription_ended_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +206 -0
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +1262 -0
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +374 -0
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +421 -0
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +1265 -0
- data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +198 -0
- data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +169 -0
- data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +205 -0
- data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +199 -0
- data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +1035 -0
- data/rbi/orb/models/subscription_started_webhook_event.rbi +132 -0
- data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +136 -0
- data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +1041 -0
- data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +455 -0
- data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +449 -0
- data/rbi/orb/models/unwrap_webhook_event.rbi +99 -0
- data/rbi/orb/models/webhook_unwrap_params.rbi +25 -0
- data/rbi/orb/models.rbi +224 -0
- data/rbi/orb/resources/subscriptions.rbi +13 -0
- data/rbi/orb/resources/webhooks.rbi +103 -0
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/backfill_reflected_webhook_event.rbs +130 -0
- data/sig/orb/models/backfill_reverted_webhook_event.rbs +130 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +94 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +412 -0
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +407 -0
- data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/credit_note_issued_webhook_event.rbs +50 -0
- data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +50 -0
- data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +142 -0
- data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +137 -0
- data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +171 -0
- data/sig/orb/models/customer_created_webhook_event.rbs +50 -0
- data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +374 -0
- data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +379 -0
- data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +374 -0
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +364 -0
- data/sig/orb/models/customer_edited_webhook_event.rbs +139 -0
- data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +92 -0
- data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +87 -0
- data/sig/orb/models/event_unmatched_event_webhook_event.rbs +102 -0
- data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +55 -0
- data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +313 -0
- data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +73 -0
- data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +57 -0
- data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +57 -0
- data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +55 -0
- data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +171 -0
- data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +166 -0
- data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +156 -0
- data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +119 -0
- data/sig/orb/models/invoice_edited_webhook_event.rbs +388 -0
- data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +111 -0
- data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +60 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +504 -0
- data/sig/orb/models/invoice_issued_webhook_event.rbs +60 -0
- data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +73 -0
- data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +50 -0
- data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +77 -0
- data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +71 -0
- data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +82 -0
- data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +69 -0
- data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +69 -0
- data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +50 -0
- data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +82 -0
- data/sig/orb/models/payment_method_created_webhook_event.rbs +112 -0
- data/sig/orb/models/payment_method_deleted_webhook_event.rbs +112 -0
- data/sig/orb/models/plan_default_version_set_webhook_event.rbs +94 -0
- data/sig/orb/models/plan_version_created_webhook_event.rbs +91 -0
- data/sig/orb/models/price_edited_webhook_event.rbs +77 -0
- data/sig/orb/models/resource_event_test_webhook_event.rbs +57 -0
- data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +147 -0
- data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +142 -0
- data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +444 -0
- data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +362 -0
- data/sig/orb/models/subscription_created_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_edited_webhook_event.rbs +109 -0
- data/sig/orb/models/subscription_ended_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +82 -0
- data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +465 -0
- data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +158 -0
- data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +180 -0
- data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +460 -0
- data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +73 -0
- data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +60 -0
- data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +77 -0
- data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +77 -0
- data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +362 -0
- data/sig/orb/models/subscription_started_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +50 -0
- data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +367 -0
- data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +205 -0
- data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +200 -0
- data/sig/orb/models/unwrap_webhook_event.rbs +90 -0
- data/sig/orb/models/webhook_unwrap_params.rbs +14 -0
- data/sig/orb/models.rbs +162 -0
- data/sig/orb/resources/webhooks.rbs +89 -0
- metadata +248 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7dccfefe6ce7cde0754bbb1d6b14152cec555db907947996e0d151769b713b72
|
|
4
|
+
data.tar.gz: b0b230acf4c18d6a950d5b85d2bd3354704fedb09a5e47b4f10b2570b2066411
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6887197332231d65647e176359fa795ecf7a701bc32d56ed0e3629c5424f0394e1f2ef3fbcf6206f46a72b69ebee54ae30e382c57cea6a0539b51764e6dde67a
|
|
7
|
+
data.tar.gz: 6bba73f8827220e60b107b95affce1f13eb5c2943776aaaa2e922e8a3c4a369f49c94844ef63eb338227e7d1019c9c2141285e7cbfa5278d76d1d3e0931e3cdb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.36.0](https://github.com/orbcorp/orb-ruby/compare/v1.35.0...v1.36.0) (2026-09-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
|
|
9
|
+
* **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
|
|
10
|
+
* **api:** api update ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
|
|
11
|
+
* **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
|
|
12
|
+
* **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
|
|
13
|
+
* **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
|
|
14
|
+
* **api:** api update ([14a6517](https://github.com/orbcorp/orb-ruby/commit/14a65171cecf6a8ffde8b816ab3f1b83bba2a6fa))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **api:** correctly apply plan name when updating a draft plan ([62c9140](https://github.com/orbcorp/orb-ruby/commit/62c914083d1b3b3f514e86a4960b42ff0ef18fa4))
|
|
20
|
+
|
|
21
|
+
## [1.35.0](https://github.com/orbcorp/orb-ruby/compare/v1.34.0...v1.35.0) (2026-09-21)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **api:** api update ([f86f225](https://github.com/orbcorp/orb-ruby/commit/f86f22550792b81d0aa2153d0794c242e0504f30))
|
|
27
|
+
|
|
3
28
|
## [1.34.0](https://github.com/orbcorp/orb-ruby/compare/v1.33.0...v1.34.0) (2026-09-13)
|
|
4
29
|
|
|
5
30
|
|
data/README.md
CHANGED
data/lib/orb/client.rb
CHANGED
|
@@ -21,6 +21,9 @@ module Orb
|
|
|
21
21
|
# @return [String, nil]
|
|
22
22
|
attr_reader :webhook_secret
|
|
23
23
|
|
|
24
|
+
# @return [Orb::Resources::Webhooks]
|
|
25
|
+
attr_reader :webhooks
|
|
26
|
+
|
|
24
27
|
# @return [Orb::Resources::TopLevel]
|
|
25
28
|
attr_reader :top_level
|
|
26
29
|
|
|
@@ -219,6 +222,7 @@ module Orb
|
|
|
219
222
|
idempotency_header: idempotency_header
|
|
220
223
|
)
|
|
221
224
|
|
|
225
|
+
@webhooks = Orb::Resources::Webhooks.new(client: self)
|
|
222
226
|
@top_level = Orb::Resources::TopLevel.new(client: self)
|
|
223
227
|
@beta = Orb::Resources::Beta.new(client: self)
|
|
224
228
|
@coupons = Orb::Resources::Coupons.new(client: self)
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BackfillReflectedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute backfill
|
|
13
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
14
|
+
# events in a timeframe.
|
|
15
|
+
#
|
|
16
|
+
# @return [Orb::Models::BackfillReflectedWebhookEvent::Backfill]
|
|
17
|
+
required :backfill, -> { Orb::BackfillReflectedWebhookEvent::Backfill }
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# The time at which this event was created, to the second.
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute properties
|
|
26
|
+
#
|
|
27
|
+
# @return [Object]
|
|
28
|
+
required :properties, Orb::Internal::Type::Unknown
|
|
29
|
+
|
|
30
|
+
# @!attribute type
|
|
31
|
+
# The event this payload describes.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type]
|
|
34
|
+
required :type, enum: -> { Orb::BackfillReflectedWebhookEvent::Type }
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, backfill:, created_at:, properties:, type:)
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Orb::Models::BackfillReflectedWebhookEvent} for more details.
|
|
39
|
+
#
|
|
40
|
+
# Issued when a backfill is closed and its events are reflected into usage.
|
|
41
|
+
#
|
|
42
|
+
# @param id [String] The ID of this webhook event.
|
|
43
|
+
#
|
|
44
|
+
# @param backfill [Orb::Models::BackfillReflectedWebhookEvent::Backfill] A backfill represents an update to historical usage data, adding or replacing ev
|
|
45
|
+
#
|
|
46
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
47
|
+
#
|
|
48
|
+
# @param properties [Object]
|
|
49
|
+
#
|
|
50
|
+
# @param type [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type] The event this payload describes.
|
|
51
|
+
|
|
52
|
+
# @see Orb::Models::BackfillReflectedWebhookEvent#backfill
|
|
53
|
+
class Backfill < Orb::Internal::Type::BaseModel
|
|
54
|
+
# @!attribute id
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :id, String
|
|
58
|
+
|
|
59
|
+
# @!attribute close_time
|
|
60
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
61
|
+
# the past, the time at which the backfill was closed.
|
|
62
|
+
#
|
|
63
|
+
# @return [Time, nil]
|
|
64
|
+
required :close_time, Time, nil?: true
|
|
65
|
+
|
|
66
|
+
# @!attribute created_at
|
|
67
|
+
#
|
|
68
|
+
# @return [Time]
|
|
69
|
+
required :created_at, Time
|
|
70
|
+
|
|
71
|
+
# @!attribute customer_id
|
|
72
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
73
|
+
# `null`, this backfill is scoped to all customers.
|
|
74
|
+
#
|
|
75
|
+
# @return [String, nil]
|
|
76
|
+
required :customer_id, String, nil?: true
|
|
77
|
+
|
|
78
|
+
# @!attribute events_ingested
|
|
79
|
+
# The number of events ingested in this backfill.
|
|
80
|
+
#
|
|
81
|
+
# @return [Integer]
|
|
82
|
+
required :events_ingested, Integer
|
|
83
|
+
|
|
84
|
+
# @!attribute replace_existing_events
|
|
85
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
86
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
87
|
+
# events will be added to the existing events.
|
|
88
|
+
#
|
|
89
|
+
# @return [Boolean]
|
|
90
|
+
required :replace_existing_events, Orb::Internal::Type::Boolean
|
|
91
|
+
|
|
92
|
+
# @!attribute reverted_at
|
|
93
|
+
# The time at which this backfill was reverted.
|
|
94
|
+
#
|
|
95
|
+
# @return [Time, nil]
|
|
96
|
+
required :reverted_at, Time, nil?: true
|
|
97
|
+
|
|
98
|
+
# @!attribute status
|
|
99
|
+
# The status of the backfill.
|
|
100
|
+
#
|
|
101
|
+
# @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Backfill::Status]
|
|
102
|
+
required :status, enum: -> { Orb::BackfillReflectedWebhookEvent::Backfill::Status }
|
|
103
|
+
|
|
104
|
+
# @!attribute timeframe_end
|
|
105
|
+
#
|
|
106
|
+
# @return [Time]
|
|
107
|
+
required :timeframe_end, Time
|
|
108
|
+
|
|
109
|
+
# @!attribute timeframe_start
|
|
110
|
+
#
|
|
111
|
+
# @return [Time]
|
|
112
|
+
required :timeframe_start, Time
|
|
113
|
+
|
|
114
|
+
# @!attribute deprecation_filter
|
|
115
|
+
# A boolean
|
|
116
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
117
|
+
# filter the set of events to deprecate
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :deprecation_filter, String, nil?: true
|
|
121
|
+
|
|
122
|
+
# @!method initialize(id:, close_time:, created_at:, customer_id:, events_ingested:, replace_existing_events:, reverted_at:, status:, timeframe_end:, timeframe_start:, deprecation_filter: nil)
|
|
123
|
+
# Some parameter documentations has been truncated, see
|
|
124
|
+
# {Orb::Models::BackfillReflectedWebhookEvent::Backfill} for more details.
|
|
125
|
+
#
|
|
126
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
127
|
+
# events in a timeframe.
|
|
128
|
+
#
|
|
129
|
+
# @param id [String]
|
|
130
|
+
#
|
|
131
|
+
# @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in
|
|
132
|
+
#
|
|
133
|
+
# @param created_at [Time]
|
|
134
|
+
#
|
|
135
|
+
# @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null`
|
|
136
|
+
#
|
|
137
|
+
# @param events_ingested [Integer] The number of events ingested in this backfill.
|
|
138
|
+
#
|
|
139
|
+
# @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
140
|
+
#
|
|
141
|
+
# @param reverted_at [Time, nil] The time at which this backfill was reverted.
|
|
142
|
+
#
|
|
143
|
+
# @param status [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Backfill::Status] The status of the backfill.
|
|
144
|
+
#
|
|
145
|
+
# @param timeframe_end [Time]
|
|
146
|
+
#
|
|
147
|
+
# @param timeframe_start [Time]
|
|
148
|
+
#
|
|
149
|
+
# @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie
|
|
150
|
+
|
|
151
|
+
# The status of the backfill.
|
|
152
|
+
#
|
|
153
|
+
# @see Orb::Models::BackfillReflectedWebhookEvent::Backfill#status
|
|
154
|
+
module Status
|
|
155
|
+
extend Orb::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
PENDING = :pending
|
|
158
|
+
REFLECTED = :reflected
|
|
159
|
+
PENDING_REVERT = :pending_revert
|
|
160
|
+
REVERTED = :reverted
|
|
161
|
+
|
|
162
|
+
# @!method self.values
|
|
163
|
+
# @return [Array<Symbol>]
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# The event this payload describes.
|
|
168
|
+
#
|
|
169
|
+
# @see Orb::Models::BackfillReflectedWebhookEvent#type
|
|
170
|
+
module Type
|
|
171
|
+
extend Orb::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
BACKFILL_REFLECTED = :"backfill.reflected"
|
|
174
|
+
|
|
175
|
+
# @!method self.values
|
|
176
|
+
# @return [Array<Symbol>]
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BackfillRevertedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute backfill
|
|
13
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
14
|
+
# events in a timeframe.
|
|
15
|
+
#
|
|
16
|
+
# @return [Orb::Models::BackfillRevertedWebhookEvent::Backfill]
|
|
17
|
+
required :backfill, -> { Orb::BackfillRevertedWebhookEvent::Backfill }
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# The time at which this event was created, to the second.
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute properties
|
|
26
|
+
#
|
|
27
|
+
# @return [Object]
|
|
28
|
+
required :properties, Orb::Internal::Type::Unknown
|
|
29
|
+
|
|
30
|
+
# @!attribute type
|
|
31
|
+
# The event this payload describes.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type]
|
|
34
|
+
required :type, enum: -> { Orb::BackfillRevertedWebhookEvent::Type }
|
|
35
|
+
|
|
36
|
+
# @!method initialize(id:, backfill:, created_at:, properties:, type:)
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Orb::Models::BackfillRevertedWebhookEvent} for more details.
|
|
39
|
+
#
|
|
40
|
+
# Issued when a backfill is reverted, removing its events from usage.
|
|
41
|
+
#
|
|
42
|
+
# @param id [String] The ID of this webhook event.
|
|
43
|
+
#
|
|
44
|
+
# @param backfill [Orb::Models::BackfillRevertedWebhookEvent::Backfill] A backfill represents an update to historical usage data, adding or replacing ev
|
|
45
|
+
#
|
|
46
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
47
|
+
#
|
|
48
|
+
# @param properties [Object]
|
|
49
|
+
#
|
|
50
|
+
# @param type [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type] The event this payload describes.
|
|
51
|
+
|
|
52
|
+
# @see Orb::Models::BackfillRevertedWebhookEvent#backfill
|
|
53
|
+
class Backfill < Orb::Internal::Type::BaseModel
|
|
54
|
+
# @!attribute id
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :id, String
|
|
58
|
+
|
|
59
|
+
# @!attribute close_time
|
|
60
|
+
# If in the future, the time at which the backfill will automatically close. If in
|
|
61
|
+
# the past, the time at which the backfill was closed.
|
|
62
|
+
#
|
|
63
|
+
# @return [Time, nil]
|
|
64
|
+
required :close_time, Time, nil?: true
|
|
65
|
+
|
|
66
|
+
# @!attribute created_at
|
|
67
|
+
#
|
|
68
|
+
# @return [Time]
|
|
69
|
+
required :created_at, Time
|
|
70
|
+
|
|
71
|
+
# @!attribute customer_id
|
|
72
|
+
# The Orb-generated ID of the customer to which this backfill is scoped. If
|
|
73
|
+
# `null`, this backfill is scoped to all customers.
|
|
74
|
+
#
|
|
75
|
+
# @return [String, nil]
|
|
76
|
+
required :customer_id, String, nil?: true
|
|
77
|
+
|
|
78
|
+
# @!attribute events_ingested
|
|
79
|
+
# The number of events ingested in this backfill.
|
|
80
|
+
#
|
|
81
|
+
# @return [Integer]
|
|
82
|
+
required :events_ingested, Integer
|
|
83
|
+
|
|
84
|
+
# @!attribute replace_existing_events
|
|
85
|
+
# If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
86
|
+
# newly ingested events associated with the backfill. If `false`, newly ingested
|
|
87
|
+
# events will be added to the existing events.
|
|
88
|
+
#
|
|
89
|
+
# @return [Boolean]
|
|
90
|
+
required :replace_existing_events, Orb::Internal::Type::Boolean
|
|
91
|
+
|
|
92
|
+
# @!attribute reverted_at
|
|
93
|
+
# The time at which this backfill was reverted.
|
|
94
|
+
#
|
|
95
|
+
# @return [Time, nil]
|
|
96
|
+
required :reverted_at, Time, nil?: true
|
|
97
|
+
|
|
98
|
+
# @!attribute status
|
|
99
|
+
# The status of the backfill.
|
|
100
|
+
#
|
|
101
|
+
# @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Backfill::Status]
|
|
102
|
+
required :status, enum: -> { Orb::BackfillRevertedWebhookEvent::Backfill::Status }
|
|
103
|
+
|
|
104
|
+
# @!attribute timeframe_end
|
|
105
|
+
#
|
|
106
|
+
# @return [Time]
|
|
107
|
+
required :timeframe_end, Time
|
|
108
|
+
|
|
109
|
+
# @!attribute timeframe_start
|
|
110
|
+
#
|
|
111
|
+
# @return [Time]
|
|
112
|
+
required :timeframe_start, Time
|
|
113
|
+
|
|
114
|
+
# @!attribute deprecation_filter
|
|
115
|
+
# A boolean
|
|
116
|
+
# [computed property](/extensibility/advanced-metrics#computed-properties) used to
|
|
117
|
+
# filter the set of events to deprecate
|
|
118
|
+
#
|
|
119
|
+
# @return [String, nil]
|
|
120
|
+
optional :deprecation_filter, String, nil?: true
|
|
121
|
+
|
|
122
|
+
# @!method initialize(id:, close_time:, created_at:, customer_id:, events_ingested:, replace_existing_events:, reverted_at:, status:, timeframe_end:, timeframe_start:, deprecation_filter: nil)
|
|
123
|
+
# Some parameter documentations has been truncated, see
|
|
124
|
+
# {Orb::Models::BackfillRevertedWebhookEvent::Backfill} for more details.
|
|
125
|
+
#
|
|
126
|
+
# A backfill represents an update to historical usage data, adding or replacing
|
|
127
|
+
# events in a timeframe.
|
|
128
|
+
#
|
|
129
|
+
# @param id [String]
|
|
130
|
+
#
|
|
131
|
+
# @param close_time [Time, nil] If in the future, the time at which the backfill will automatically close. If in
|
|
132
|
+
#
|
|
133
|
+
# @param created_at [Time]
|
|
134
|
+
#
|
|
135
|
+
# @param customer_id [String, nil] The Orb-generated ID of the customer to which this backfill is scoped. If `null`
|
|
136
|
+
#
|
|
137
|
+
# @param events_ingested [Integer] The number of events ingested in this backfill.
|
|
138
|
+
#
|
|
139
|
+
# @param replace_existing_events [Boolean] If `true`, existing events in the backfill's timeframe will be replaced with the
|
|
140
|
+
#
|
|
141
|
+
# @param reverted_at [Time, nil] The time at which this backfill was reverted.
|
|
142
|
+
#
|
|
143
|
+
# @param status [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Backfill::Status] The status of the backfill.
|
|
144
|
+
#
|
|
145
|
+
# @param timeframe_end [Time]
|
|
146
|
+
#
|
|
147
|
+
# @param timeframe_start [Time]
|
|
148
|
+
#
|
|
149
|
+
# @param deprecation_filter [String, nil] A boolean [computed property](/extensibility/advanced-metrics#computed-propertie
|
|
150
|
+
|
|
151
|
+
# The status of the backfill.
|
|
152
|
+
#
|
|
153
|
+
# @see Orb::Models::BackfillRevertedWebhookEvent::Backfill#status
|
|
154
|
+
module Status
|
|
155
|
+
extend Orb::Internal::Type::Enum
|
|
156
|
+
|
|
157
|
+
PENDING = :pending
|
|
158
|
+
REFLECTED = :reflected
|
|
159
|
+
PENDING_REVERT = :pending_revert
|
|
160
|
+
REVERTED = :reverted
|
|
161
|
+
|
|
162
|
+
# @!method self.values
|
|
163
|
+
# @return [Array<Symbol>]
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# The event this payload describes.
|
|
168
|
+
#
|
|
169
|
+
# @see Orb::Models::BackfillRevertedWebhookEvent#type
|
|
170
|
+
module Type
|
|
171
|
+
extend Orb::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
BACKFILL_REVERTED = :"backfill.reverted"
|
|
174
|
+
|
|
175
|
+
# @!method self.values
|
|
176
|
+
# @return [Array<Symbol>]
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
class BillableMetricEditedWebhookEvent < Orb::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of this webhook event.
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute billable_metric
|
|
13
|
+
# The Metric resource represents a calculation of a quantity based on events.
|
|
14
|
+
# Metrics are defined by the query that transforms raw usage events into
|
|
15
|
+
# meaningful values for your customers.
|
|
16
|
+
#
|
|
17
|
+
# @return [Orb::Models::BillableMetric]
|
|
18
|
+
required :billable_metric, -> { Orb::BillableMetric }
|
|
19
|
+
|
|
20
|
+
# @!attribute created_at
|
|
21
|
+
# The time at which this event was created, to the second.
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute properties
|
|
27
|
+
#
|
|
28
|
+
# @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
|
|
29
|
+
required :properties, -> { Orb::BillableMetricEditedWebhookEvent::Properties }
|
|
30
|
+
|
|
31
|
+
# @!attribute type
|
|
32
|
+
# The event this payload describes.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type]
|
|
35
|
+
required :type, enum: -> { Orb::BillableMetricEditedWebhookEvent::Type }
|
|
36
|
+
|
|
37
|
+
# @!method initialize(id:, billable_metric:, created_at:, properties:, type:)
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Orb::Models::BillableMetricEditedWebhookEvent} for more details.
|
|
40
|
+
#
|
|
41
|
+
# Issued when a billable metric is edited.
|
|
42
|
+
#
|
|
43
|
+
# @param id [String] The ID of this webhook event.
|
|
44
|
+
#
|
|
45
|
+
# @param billable_metric [Orb::Models::BillableMetric] The Metric resource represents a calculation of a quantity based on events.
|
|
46
|
+
#
|
|
47
|
+
# @param created_at [Time] The time at which this event was created, to the second.
|
|
48
|
+
#
|
|
49
|
+
# @param properties [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
|
|
50
|
+
#
|
|
51
|
+
# @param type [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type] The event this payload describes.
|
|
52
|
+
|
|
53
|
+
# @see Orb::Models::BillableMetricEditedWebhookEvent#properties
|
|
54
|
+
class Properties < Orb::Internal::Type::BaseModel
|
|
55
|
+
# @!attribute previous_attributes
|
|
56
|
+
# metadata values are non-null on the wire, as on the price event.
|
|
57
|
+
#
|
|
58
|
+
# @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes]
|
|
59
|
+
required :previous_attributes,
|
|
60
|
+
-> { Orb::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes }
|
|
61
|
+
|
|
62
|
+
# @!method initialize(previous_attributes:)
|
|
63
|
+
# @param previous_attributes [Orb::Models::BillableMetricEditedWebhookEvent::Properties::PreviousAttributes] metadata values are non-null on the wire, as on the price event.
|
|
64
|
+
|
|
65
|
+
# @see Orb::Models::BillableMetricEditedWebhookEvent::Properties#previous_attributes
|
|
66
|
+
class PreviousAttributes < Orb::Internal::Type::BaseModel
|
|
67
|
+
# @!attribute description
|
|
68
|
+
#
|
|
69
|
+
# @return [String, nil]
|
|
70
|
+
optional :description, String, nil?: true
|
|
71
|
+
|
|
72
|
+
# @!attribute metadata
|
|
73
|
+
#
|
|
74
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
75
|
+
optional :metadata, Orb::Internal::Type::HashOf[String], nil?: true
|
|
76
|
+
|
|
77
|
+
# @!attribute name
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :name, String, nil?: true
|
|
81
|
+
|
|
82
|
+
# @!method initialize(description: nil, metadata: nil, name: nil)
|
|
83
|
+
# metadata values are non-null on the wire, as on the price event.
|
|
84
|
+
#
|
|
85
|
+
# @param description [String, nil]
|
|
86
|
+
# @param metadata [Hash{Symbol=>String}, nil]
|
|
87
|
+
# @param name [String, nil]
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# The event this payload describes.
|
|
92
|
+
#
|
|
93
|
+
# @see Orb::Models::BillableMetricEditedWebhookEvent#type
|
|
94
|
+
module Type
|
|
95
|
+
extend Orb::Internal::Type::Enum
|
|
96
|
+
|
|
97
|
+
BILLABLE_METRIC_EDITED = :"billable_metric.edited"
|
|
98
|
+
|
|
99
|
+
# @!method self.values
|
|
100
|
+
# @return [Array<Symbol>]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|