orb-billing 1.43.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +1 -1
- data/lib/orb/client.rb +6 -0
- data/lib/orb/models/alert_create_for_plan_params.rb +156 -0
- data/lib/orb/models/backfill_reflected_webhook_event.rb +24 -1
- data/lib/orb/models/backfill_reverted_webhook_event.rb +24 -1
- data/lib/orb/models/billable_metric_edited_webhook_event.rb +24 -1
- data/lib/orb/models/credit_block_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/credit_note_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_issued_webhook_event.rb +24 -1
- data/lib/orb/models/credit_note_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/customer_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/customer_balance_transaction_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_created_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_depleted_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_dropped_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_balance_recovered_webhook_event.rb +24 -1
- data/lib/orb/models/customer_credit_ledger_incremented_webhook_event.rb +24 -1
- data/lib/orb/models/customer_edited_webhook_event.rb +24 -1
- data/lib/orb/models/data_exports_transfer_error_webhook_event.rb +27 -1
- data/lib/orb/models/data_exports_transfer_success_webhook_event.rb +27 -1
- data/lib/orb/models/dimensional_price_groups/price_create_params.rb +147 -0
- data/lib/orb/models/dimensional_price_groups/price_create_response.rb +19 -0
- data/lib/orb/models/dimensional_price_groups/price_list_params.rb +65 -0
- data/lib/orb/models/event_unmatched_event_webhook_event.rb +27 -1
- data/lib/orb/models/ingestion_unmatched_customer_ids_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_automation_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_cost_data_exported_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_due_date_recalculation_completed_webhook_event.rb +28 -1
- data/lib/orb/models/invoice_due_date_recalculation_started_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_dunning_schedule_created_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_ended_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_reset_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_edited_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_invoice_date_elapsed_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issue_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_issued_summary_webhook_event.rb +27 -1
- data/lib/orb/models/invoice_issued_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_manually_marked_as_void_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_processing_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_payment_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/invoice_undo_mark_as_paid_webhook_event.rb +24 -1
- data/lib/orb/models/metric_events_dropped_by_watermark_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_created_webhook_event.rb +24 -1
- data/lib/orb/models/payment_method_deleted_webhook_event.rb +24 -1
- data/lib/orb/models/plan_created_webhook_event.rb +117 -0
- data/lib/orb/models/plan_default_version_set_webhook_event.rb +27 -1
- data/lib/orb/models/plan_edited_webhook_event.rb +154 -0
- data/lib/orb/models/plan_version_created_webhook_event.rb +27 -1
- data/lib/orb/models/price_edited_webhook_event.rb +24 -1
- data/lib/orb/models/resource_event_test_webhook_event.rb +27 -1
- data/lib/orb/models/sales_order_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_failed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_accounting_sync_succeeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_alert_disabled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cancellation_unscheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_created_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_edited_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_grouped_cost_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_license_allocation_reset_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_license_balance_threshold_reached_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_change_scheduled_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_plan_version_change_scheduled_webhook_event.rb +25 -1
- data/lib/orb/models/subscription_plan_version_changed_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_spend_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_started_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_trial_ended_webhook_event.rb +24 -1
- data/lib/orb/models/subscription_usage_exceeded_webhook_event.rb +24 -1
- data/lib/orb/models/tax_amount.rb +32 -1
- data/lib/orb/models/transaction_accounting_sync_failed_webhook_event.rb +27 -1
- data/lib/orb/models/transaction_accounting_sync_succeeded_webhook_event.rb +27 -1
- data/lib/orb/models/unwrap_webhook_event.rb +7 -1
- data/lib/orb/models/webhook_endpoint.rb +56 -0
- data/lib/orb/models/webhook_endpoint_create_params.rb +34 -0
- data/lib/orb/models/webhook_endpoint_delete_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_disable_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_enable_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_list_params.rb +34 -0
- data/lib/orb/models/webhook_endpoint_retrieve_params.rb +20 -0
- data/lib/orb/models/webhook_endpoint_update_params.rb +41 -0
- data/lib/orb/models/webhook_endpoint_with_secret.rb +65 -0
- data/lib/orb/models.rb +24 -0
- data/lib/orb/resources/alerts.rb +55 -0
- data/lib/orb/resources/dimensional_price_groups/prices.rb +87 -0
- data/lib/orb/resources/dimensional_price_groups.rb +4 -0
- data/lib/orb/resources/webhook_endpoints.rb +183 -0
- data/lib/orb/resources/webhooks.rb +1 -1
- data/lib/orb/version.rb +1 -1
- data/lib/orb.rb +17 -0
- data/rbi/orb/client.rbi +5 -0
- data/rbi/orb/models/alert_create_for_plan_params.rbi +290 -0
- data/rbi/orb/models/backfill_reflected_webhook_event.rbi +47 -0
- data/rbi/orb/models/backfill_reverted_webhook_event.rbi +47 -0
- data/rbi/orb/models/billable_metric_edited_webhook_event.rbi +49 -0
- data/rbi/orb/models/credit_block_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/credit_note_issued_webhook_event.rbi +47 -0
- data/rbi/orb/models/credit_note_marked_as_void_webhook_event.rbi +49 -0
- data/rbi/orb/models/customer_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_balance_transaction_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/customer_credit_balance_depleted_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_dropped_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_balance_recovered_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_credit_ledger_incremented_webhook_event.rbi +52 -0
- data/rbi/orb/models/customer_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/data_exports_transfer_error_webhook_event.rbi +52 -0
- data/rbi/orb/models/data_exports_transfer_success_webhook_event.rbi +52 -0
- data/rbi/orb/models/dimensional_price_groups/price_create_params.rbi +298 -0
- data/rbi/orb/models/dimensional_price_groups/price_create_response.rbi +76 -0
- data/rbi/orb/models/dimensional_price_groups/price_list_params.rbi +134 -0
- data/rbi/orb/models/event_unmatched_event_webhook_event.rbi +49 -0
- data/rbi/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_cost_data_exported_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_due_date_recalculation_started_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_created_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_ended_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_edited_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_invoice_date_elapsed_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_issue_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_issued_summary_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_issued_webhook_event.rbi +44 -0
- data/rbi/orb/models/invoice_manually_marked_as_paid_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_manually_marked_as_void_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_failed_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_payment_processing_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_payment_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/invoice_sync_failed_webhook_event.rbi +47 -0
- data/rbi/orb/models/invoice_sync_succeeded_webhook_event.rbi +49 -0
- data/rbi/orb/models/invoice_undo_mark_as_paid_webhook_event.rbi +49 -0
- data/rbi/orb/models/metric_events_dropped_by_watermark_webhook_event.rbi +52 -0
- data/rbi/orb/models/payment_method_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/payment_method_deleted_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_created_webhook_event.rbi +182 -0
- data/rbi/orb/models/plan_default_version_set_webhook_event.rbi +49 -0
- data/rbi/orb/models/plan_edited_webhook_event.rbi +301 -0
- data/rbi/orb/models/plan_version_created_webhook_event.rbi +47 -0
- data/rbi/orb/models/price_edited_webhook_event.rbi +42 -0
- data/rbi/orb/models/resource_event_test_webhook_event.rbi +47 -0
- data/rbi/orb/models/sales_order_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_alert_disabled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cancellation_unscheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_created_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_edited_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_ended_webhook_event.rbi +47 -0
- data/rbi/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_allocation_reset_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_plan_version_changed_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_spend_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/subscription_started_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_trial_ended_webhook_event.rbi +49 -0
- data/rbi/orb/models/subscription_usage_exceeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/tax_amount.rbi +41 -3
- data/rbi/orb/models/transaction_accounting_sync_failed_webhook_event.rbi +52 -0
- data/rbi/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbi +52 -0
- data/rbi/orb/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/orb/models/webhook_endpoint.rbi +71 -0
- data/rbi/orb/models/webhook_endpoint_create_params.rbi +53 -0
- data/rbi/orb/models/webhook_endpoint_delete_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_disable_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_enable_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_list_params.rbi +56 -0
- data/rbi/orb/models/webhook_endpoint_retrieve_params.rbi +35 -0
- data/rbi/orb/models/webhook_endpoint_update_params.rbi +59 -0
- data/rbi/orb/models/webhook_endpoint_with_secret.rbi +83 -0
- data/rbi/orb/models.rbi +24 -0
- data/rbi/orb/resources/alerts.rbi +59 -0
- data/rbi/orb/resources/dimensional_price_groups/prices.rbi +82 -0
- data/rbi/orb/resources/dimensional_price_groups.rbi +3 -0
- data/rbi/orb/resources/webhook_endpoints.rbi +116 -0
- data/rbi/orb/resources/webhooks.rbi +2 -0
- data/sig/orb/client.rbs +2 -0
- data/sig/orb/models/alert_create_for_plan_params.rbs +126 -0
- data/sig/orb/models/backfill_reflected_webhook_event.rbs +16 -0
- data/sig/orb/models/backfill_reverted_webhook_event.rbs +16 -0
- data/sig/orb/models/billable_metric_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_block_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/credit_note_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_balance_transaction_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_created_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_depleted_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_balance_recovered_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_credit_ledger_incremented_webhook_event.rbs +16 -0
- data/sig/orb/models/customer_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_error_webhook_event.rbs +16 -0
- data/sig/orb/models/data_exports_transfer_success_webhook_event.rbs +16 -0
- data/sig/orb/models/dimensional_price_groups/price_create_params.rbs +123 -0
- data/sig/orb/models/dimensional_price_groups/price_create_response.rbs +15 -0
- data/sig/orb/models/dimensional_price_groups/price_list_params.rbs +61 -0
- data/sig/orb/models/event_unmatched_event_webhook_event.rbs +16 -0
- data/sig/orb/models/ingestion_unmatched_customer_ids_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_automation_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_cost_data_exported_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_canceled_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_completed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_due_date_recalculation_started_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_created_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_dunning_schedule_step_executed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_invoice_date_elapsed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issue_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_summary_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_issued_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_manually_marked_as_void_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_processing_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_payment_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/invoice_undo_mark_as_paid_webhook_event.rbs +16 -0
- data/sig/orb/models/metric_events_dropped_by_watermark_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_created_webhook_event.rbs +16 -0
- data/sig/orb/models/payment_method_deleted_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_created_webhook_event.rbs +88 -0
- data/sig/orb/models/plan_default_version_set_webhook_event.rbs +16 -0
- data/sig/orb/models/plan_edited_webhook_event.rbs +132 -0
- data/sig/orb/models/plan_version_created_webhook_event.rbs +16 -0
- data/sig/orb/models/price_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/resource_event_test_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/sales_order_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_alert_disabled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cancellation_unscheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_created_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_edited_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_fixed_fee_quantity_updated_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_grouped_cost_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_invoicing_threshold_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_allocation_reset_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_license_balance_threshold_reached_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_change_scheduled_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_plan_version_changed_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_spend_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_started_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_trial_ended_webhook_event.rbs +16 -0
- data/sig/orb/models/subscription_usage_exceeded_webhook_event.rbs +16 -0
- data/sig/orb/models/tax_amount.rbs +31 -3
- data/sig/orb/models/transaction_accounting_sync_failed_webhook_event.rbs +16 -0
- data/sig/orb/models/transaction_accounting_sync_succeeded_webhook_event.rbs +16 -0
- data/sig/orb/models/unwrap_webhook_event.rbs +2 -0
- data/sig/orb/models/webhook_endpoint.rbs +40 -0
- data/sig/orb/models/webhook_endpoint_create_params.rbs +28 -0
- data/sig/orb/models/webhook_endpoint_delete_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_disable_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_enable_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_list_params.rbs +30 -0
- data/sig/orb/models/webhook_endpoint_retrieve_params.rbs +23 -0
- data/sig/orb/models/webhook_endpoint_update_params.rbs +36 -0
- data/sig/orb/models/webhook_endpoint_with_secret.rbs +45 -0
- data/sig/orb/models.rbs +24 -0
- data/sig/orb/resources/alerts.rbs +12 -0
- data/sig/orb/resources/dimensional_price_groups/prices.rbs +28 -0
- data/sig/orb/resources/dimensional_price_groups.rbs +2 -0
- data/sig/orb/resources/webhook_endpoints.rbs +46 -0
- data/sig/orb/resources/webhooks.rbs +2 -0
- metadata +52 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06c0074b0a16a37c4a6ddeb4fb2ef718479c621bd78268d964f5949167e9cd68
|
|
4
|
+
data.tar.gz: 779cf49681b6d3791724aaed878a536062beb6b065535501f62e1cbe2dddb6cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a29cd78e8c652ec6af4658ef68a1943401a9e2ed2d86f7acccb956bfcf0055f13dfece6568a1610d9e73da7049391a41035a0e28f35a1fc1dbe879811121fe76
|
|
7
|
+
data.tar.gz: '0681fe7130768ec32ffa151706102b023385e6303cb91fd1a70530ce239a838ef55cae74db86f1f749e985e38988e79d99cc942c39919dc5b1ce15771c96daa8'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.45.0](https://github.com/orbcorp/orb-ruby/compare/v1.44.0...v1.45.0) (2026-10-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** api update ([bf20672](https://github.com/orbcorp/orb-ruby/commit/bf206724a957f94ca650009dfc18879d47d1ec53))
|
|
9
|
+
|
|
10
|
+
## [1.44.0](https://github.com/orbcorp/orb-ruby/compare/v1.43.0...v1.44.0) (2026-10-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **api:** add `plan.created` and `plan.edited` webhook events ([9413030](https://github.com/orbcorp/orb-ruby/commit/9413030251c1fd9ac58b583a369afbfb7c02672d))
|
|
16
|
+
* **api:** add `tax_reason` field to tax amount entries ([8d1c0db](https://github.com/orbcorp/orb-ruby/commit/8d1c0db96ed1accbe3ff654d1e87bdad7a1d6ad2))
|
|
17
|
+
|
|
3
18
|
## [1.43.0](https://github.com/orbcorp/orb-ruby/compare/v1.42.0...v1.43.0) (2026-10-16)
|
|
4
19
|
|
|
5
20
|
|
data/README.md
CHANGED
data/lib/orb/client.rb
CHANGED
|
@@ -96,6 +96,11 @@ module Orb
|
|
|
96
96
|
# @return [Orb::Resources::Items]
|
|
97
97
|
attr_reader :items
|
|
98
98
|
|
|
99
|
+
# A webhook endpoint is an HTTPS URL that Orb sends
|
|
100
|
+
# [webhook events](/integrations-and-exports/webhooks) to.
|
|
101
|
+
# @return [Orb::Resources::WebhookEndpoints]
|
|
102
|
+
attr_reader :webhook_endpoints
|
|
103
|
+
|
|
99
104
|
# The Metric resource represents a calculation of a quantity based on events.
|
|
100
105
|
# Metrics are defined by the query that transforms raw usage events into
|
|
101
106
|
# meaningful values for your customers.
|
|
@@ -232,6 +237,7 @@ module Orb
|
|
|
232
237
|
@invoice_line_items = Orb::Resources::InvoiceLineItems.new(client: self)
|
|
233
238
|
@invoices = Orb::Resources::Invoices.new(client: self)
|
|
234
239
|
@items = Orb::Resources::Items.new(client: self)
|
|
240
|
+
@webhook_endpoints = Orb::Resources::WebhookEndpoints.new(client: self)
|
|
235
241
|
@metrics = Orb::Resources::Metrics.new(client: self)
|
|
236
242
|
@plans = Orb::Resources::Plans.new(client: self)
|
|
237
243
|
@prices = Orb::Resources::Prices.new(client: self)
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Orb
|
|
4
|
+
module Models
|
|
5
|
+
# @see Orb::Resources::Alerts#create_for_plan
|
|
6
|
+
class AlertCreateForPlanParams < Orb::Internal::Type::BaseModel
|
|
7
|
+
extend Orb::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Orb::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute plan_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :plan_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute thresholds
|
|
16
|
+
# The thresholds that define the values at which the alert will be triggered.
|
|
17
|
+
#
|
|
18
|
+
# @return [Array<Orb::Models::Threshold>]
|
|
19
|
+
required :thresholds, -> { Orb::Internal::Type::ArrayOf[Orb::Threshold] }
|
|
20
|
+
|
|
21
|
+
# @!attribute type
|
|
22
|
+
# The type of alert to create. This must be a valid alert type.
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Orb::Models::AlertCreateForPlanParams::Type]
|
|
25
|
+
required :type, enum: -> { Orb::AlertCreateForPlanParams::Type }
|
|
26
|
+
|
|
27
|
+
# @!attribute currency
|
|
28
|
+
# The case sensitive currency or custom pricing unit the alert is denominated in.
|
|
29
|
+
# Required for spend_exceeded alerts and when grouping_keys is set.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :currency, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute grouping_keys
|
|
35
|
+
# The property keys to group cost alerts by. Only applicable for cost_exceeded
|
|
36
|
+
# alerts.
|
|
37
|
+
#
|
|
38
|
+
# @return [Array<String>, nil]
|
|
39
|
+
optional :grouping_keys, Orb::Internal::Type::ArrayOf[String], nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute metric_id
|
|
42
|
+
# The metric to track usage for.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :metric_id, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute plan_version
|
|
48
|
+
# The plan version to create alerts for. If not specified, the default will be the
|
|
49
|
+
# plan's active plan version.
|
|
50
|
+
#
|
|
51
|
+
# @return [Integer, nil]
|
|
52
|
+
optional :plan_version, Integer, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute price_filters
|
|
55
|
+
# Filters to scope which prices are included in alert evaluation. Supports
|
|
56
|
+
# filtering by price_id, item_id, or price_type with includes/excludes operators.
|
|
57
|
+
# Only applicable to spend_exceeded alerts and to cost_exceeded alerts with
|
|
58
|
+
# grouping_keys set.
|
|
59
|
+
#
|
|
60
|
+
# @return [Array<Orb::Models::AlertCreateForPlanParams::PriceFilter>, nil]
|
|
61
|
+
optional :price_filters,
|
|
62
|
+
-> { Orb::Internal::Type::ArrayOf[Orb::AlertCreateForPlanParams::PriceFilter] },
|
|
63
|
+
nil?: true
|
|
64
|
+
|
|
65
|
+
# @!method initialize(plan_id:, thresholds:, type:, currency: nil, grouping_keys: nil, metric_id: nil, plan_version: nil, price_filters: nil, request_options: {})
|
|
66
|
+
# Some parameter documentations has been truncated, see
|
|
67
|
+
# {Orb::Models::AlertCreateForPlanParams} for more details.
|
|
68
|
+
#
|
|
69
|
+
# @param plan_id [String]
|
|
70
|
+
#
|
|
71
|
+
# @param thresholds [Array<Orb::Models::Threshold>] The thresholds that define the values at which the alert will be triggered.
|
|
72
|
+
#
|
|
73
|
+
# @param type [Symbol, Orb::Models::AlertCreateForPlanParams::Type] The type of alert to create. This must be a valid alert type.
|
|
74
|
+
#
|
|
75
|
+
# @param currency [String, nil] The case sensitive currency or custom pricing unit the alert is denominated in.
|
|
76
|
+
#
|
|
77
|
+
# @param grouping_keys [Array<String>, nil] The property keys to group cost alerts by. Only applicable for cost_exceeded ale
|
|
78
|
+
#
|
|
79
|
+
# @param metric_id [String, nil] The metric to track usage for.
|
|
80
|
+
#
|
|
81
|
+
# @param plan_version [Integer, nil] The plan version to create alerts for. If not specified, the default will be the
|
|
82
|
+
#
|
|
83
|
+
# @param price_filters [Array<Orb::Models::AlertCreateForPlanParams::PriceFilter>, nil] Filters to scope which prices are included in alert evaluation. Supports filteri
|
|
84
|
+
#
|
|
85
|
+
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
|
|
86
|
+
|
|
87
|
+
# The type of alert to create. This must be a valid alert type.
|
|
88
|
+
module Type
|
|
89
|
+
extend Orb::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
USAGE_EXCEEDED = :usage_exceeded
|
|
92
|
+
COST_EXCEEDED = :cost_exceeded
|
|
93
|
+
SPEND_EXCEEDED = :spend_exceeded
|
|
94
|
+
|
|
95
|
+
# @!method self.values
|
|
96
|
+
# @return [Array<Symbol>]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
class PriceFilter < Orb::Internal::Type::BaseModel
|
|
100
|
+
# @!attribute field
|
|
101
|
+
# The property of the price to filter on.
|
|
102
|
+
#
|
|
103
|
+
# @return [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Field]
|
|
104
|
+
required :field, enum: -> { Orb::AlertCreateForPlanParams::PriceFilter::Field }
|
|
105
|
+
|
|
106
|
+
# @!attribute operator
|
|
107
|
+
# Should prices that match the filter be included or excluded.
|
|
108
|
+
#
|
|
109
|
+
# @return [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Operator]
|
|
110
|
+
required :operator, enum: -> { Orb::AlertCreateForPlanParams::PriceFilter::Operator }
|
|
111
|
+
|
|
112
|
+
# @!attribute values
|
|
113
|
+
# The IDs or values that match this filter.
|
|
114
|
+
#
|
|
115
|
+
# @return [Array<String>]
|
|
116
|
+
required :values, Orb::Internal::Type::ArrayOf[String]
|
|
117
|
+
|
|
118
|
+
# @!method initialize(field:, operator:, values:)
|
|
119
|
+
# @param field [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Field] The property of the price to filter on.
|
|
120
|
+
#
|
|
121
|
+
# @param operator [Symbol, Orb::Models::AlertCreateForPlanParams::PriceFilter::Operator] Should prices that match the filter be included or excluded.
|
|
122
|
+
#
|
|
123
|
+
# @param values [Array<String>] The IDs or values that match this filter.
|
|
124
|
+
|
|
125
|
+
# The property of the price to filter on.
|
|
126
|
+
#
|
|
127
|
+
# @see Orb::Models::AlertCreateForPlanParams::PriceFilter#field
|
|
128
|
+
module Field
|
|
129
|
+
extend Orb::Internal::Type::Enum
|
|
130
|
+
|
|
131
|
+
PRICE_ID = :price_id
|
|
132
|
+
ITEM_ID = :item_id
|
|
133
|
+
PRICE_TYPE = :price_type
|
|
134
|
+
CURRENCY = :currency
|
|
135
|
+
PRICING_UNIT_ID = :pricing_unit_id
|
|
136
|
+
|
|
137
|
+
# @!method self.values
|
|
138
|
+
# @return [Array<Symbol>]
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Should prices that match the filter be included or excluded.
|
|
142
|
+
#
|
|
143
|
+
# @see Orb::Models::AlertCreateForPlanParams::PriceFilter#operator
|
|
144
|
+
module Operator
|
|
145
|
+
extend Orb::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
INCLUDES = :includes
|
|
148
|
+
EXCLUDES = :excludes
|
|
149
|
+
|
|
150
|
+
# @!method self.values
|
|
151
|
+
# @return [Array<Symbol>]
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -22,6 +22,13 @@ module Orb
|
|
|
22
22
|
# @return [Time]
|
|
23
23
|
required :created_at, Time
|
|
24
24
|
|
|
25
|
+
# @!attribute payload_style
|
|
26
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
27
|
+
# endpoint.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::PayloadStyle]
|
|
30
|
+
required :payload_style, enum: -> { Orb::BackfillReflectedWebhookEvent::PayloadStyle }
|
|
31
|
+
|
|
25
32
|
# @!attribute properties
|
|
26
33
|
#
|
|
27
34
|
# @return [Object]
|
|
@@ -33,7 +40,7 @@ module Orb
|
|
|
33
40
|
# @return [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type]
|
|
34
41
|
required :type, enum: -> { Orb::BackfillReflectedWebhookEvent::Type }
|
|
35
42
|
|
|
36
|
-
# @!method initialize(id:, backfill:, created_at:, properties:, type:)
|
|
43
|
+
# @!method initialize(id:, backfill:, created_at:, payload_style:, properties:, type:)
|
|
37
44
|
# Some parameter documentations has been truncated, see
|
|
38
45
|
# {Orb::Models::BackfillReflectedWebhookEvent} for more details.
|
|
39
46
|
#
|
|
@@ -45,6 +52,8 @@ module Orb
|
|
|
45
52
|
#
|
|
46
53
|
# @param created_at [Time] The time at which this event was created, to the second.
|
|
47
54
|
#
|
|
55
|
+
# @param payload_style [Symbol, Orb::Models::BackfillReflectedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
56
|
+
#
|
|
48
57
|
# @param properties [Object]
|
|
49
58
|
#
|
|
50
59
|
# @param type [Symbol, Orb::Models::BackfillReflectedWebhookEvent::Type] The event this payload describes.
|
|
@@ -164,6 +173,20 @@ module Orb
|
|
|
164
173
|
end
|
|
165
174
|
end
|
|
166
175
|
|
|
176
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
177
|
+
# endpoint.
|
|
178
|
+
#
|
|
179
|
+
# @see Orb::Models::BackfillReflectedWebhookEvent#payload_style
|
|
180
|
+
module PayloadStyle
|
|
181
|
+
extend Orb::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
EXPANDED = :expanded
|
|
184
|
+
STANDARD = :standard
|
|
185
|
+
|
|
186
|
+
# @!method self.values
|
|
187
|
+
# @return [Array<Symbol>]
|
|
188
|
+
end
|
|
189
|
+
|
|
167
190
|
# The event this payload describes.
|
|
168
191
|
#
|
|
169
192
|
# @see Orb::Models::BackfillReflectedWebhookEvent#type
|
|
@@ -22,6 +22,13 @@ module Orb
|
|
|
22
22
|
# @return [Time]
|
|
23
23
|
required :created_at, Time
|
|
24
24
|
|
|
25
|
+
# @!attribute payload_style
|
|
26
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
27
|
+
# endpoint.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::PayloadStyle]
|
|
30
|
+
required :payload_style, enum: -> { Orb::BackfillRevertedWebhookEvent::PayloadStyle }
|
|
31
|
+
|
|
25
32
|
# @!attribute properties
|
|
26
33
|
#
|
|
27
34
|
# @return [Object]
|
|
@@ -33,7 +40,7 @@ module Orb
|
|
|
33
40
|
# @return [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type]
|
|
34
41
|
required :type, enum: -> { Orb::BackfillRevertedWebhookEvent::Type }
|
|
35
42
|
|
|
36
|
-
# @!method initialize(id:, backfill:, created_at:, properties:, type:)
|
|
43
|
+
# @!method initialize(id:, backfill:, created_at:, payload_style:, properties:, type:)
|
|
37
44
|
# Some parameter documentations has been truncated, see
|
|
38
45
|
# {Orb::Models::BackfillRevertedWebhookEvent} for more details.
|
|
39
46
|
#
|
|
@@ -45,6 +52,8 @@ module Orb
|
|
|
45
52
|
#
|
|
46
53
|
# @param created_at [Time] The time at which this event was created, to the second.
|
|
47
54
|
#
|
|
55
|
+
# @param payload_style [Symbol, Orb::Models::BackfillRevertedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
56
|
+
#
|
|
48
57
|
# @param properties [Object]
|
|
49
58
|
#
|
|
50
59
|
# @param type [Symbol, Orb::Models::BackfillRevertedWebhookEvent::Type] The event this payload describes.
|
|
@@ -164,6 +173,20 @@ module Orb
|
|
|
164
173
|
end
|
|
165
174
|
end
|
|
166
175
|
|
|
176
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
177
|
+
# endpoint.
|
|
178
|
+
#
|
|
179
|
+
# @see Orb::Models::BackfillRevertedWebhookEvent#payload_style
|
|
180
|
+
module PayloadStyle
|
|
181
|
+
extend Orb::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
EXPANDED = :expanded
|
|
184
|
+
STANDARD = :standard
|
|
185
|
+
|
|
186
|
+
# @!method self.values
|
|
187
|
+
# @return [Array<Symbol>]
|
|
188
|
+
end
|
|
189
|
+
|
|
167
190
|
# The event this payload describes.
|
|
168
191
|
#
|
|
169
192
|
# @see Orb::Models::BackfillRevertedWebhookEvent#type
|
|
@@ -23,6 +23,13 @@ module Orb
|
|
|
23
23
|
# @return [Time]
|
|
24
24
|
required :created_at, Time
|
|
25
25
|
|
|
26
|
+
# @!attribute payload_style
|
|
27
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
28
|
+
# endpoint.
|
|
29
|
+
#
|
|
30
|
+
# @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::PayloadStyle]
|
|
31
|
+
required :payload_style, enum: -> { Orb::BillableMetricEditedWebhookEvent::PayloadStyle }
|
|
32
|
+
|
|
26
33
|
# @!attribute properties
|
|
27
34
|
#
|
|
28
35
|
# @return [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
|
|
@@ -34,7 +41,7 @@ module Orb
|
|
|
34
41
|
# @return [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type]
|
|
35
42
|
required :type, enum: -> { Orb::BillableMetricEditedWebhookEvent::Type }
|
|
36
43
|
|
|
37
|
-
# @!method initialize(id:, billable_metric:, created_at:, properties:, type:)
|
|
44
|
+
# @!method initialize(id:, billable_metric:, created_at:, payload_style:, properties:, type:)
|
|
38
45
|
# Some parameter documentations has been truncated, see
|
|
39
46
|
# {Orb::Models::BillableMetricEditedWebhookEvent} for more details.
|
|
40
47
|
#
|
|
@@ -46,10 +53,26 @@ module Orb
|
|
|
46
53
|
#
|
|
47
54
|
# @param created_at [Time] The time at which this event was created, to the second.
|
|
48
55
|
#
|
|
56
|
+
# @param payload_style [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
57
|
+
#
|
|
49
58
|
# @param properties [Orb::Models::BillableMetricEditedWebhookEvent::Properties]
|
|
50
59
|
#
|
|
51
60
|
# @param type [Symbol, Orb::Models::BillableMetricEditedWebhookEvent::Type] The event this payload describes.
|
|
52
61
|
|
|
62
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
63
|
+
# endpoint.
|
|
64
|
+
#
|
|
65
|
+
# @see Orb::Models::BillableMetricEditedWebhookEvent#payload_style
|
|
66
|
+
module PayloadStyle
|
|
67
|
+
extend Orb::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
EXPANDED = :expanded
|
|
70
|
+
STANDARD = :standard
|
|
71
|
+
|
|
72
|
+
# @!method self.values
|
|
73
|
+
# @return [Array<Symbol>]
|
|
74
|
+
end
|
|
75
|
+
|
|
53
76
|
# @see Orb::Models::BillableMetricEditedWebhookEvent#properties
|
|
54
77
|
class Properties < Orb::Internal::Type::BaseModel
|
|
55
78
|
# @!attribute previous_attributes
|
|
@@ -27,6 +27,13 @@ module Orb
|
|
|
27
27
|
# @return [Time]
|
|
28
28
|
required :created_at, Time
|
|
29
29
|
|
|
30
|
+
# @!attribute payload_style
|
|
31
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
32
|
+
# endpoint.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle]
|
|
35
|
+
required :payload_style, enum: -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle }
|
|
36
|
+
|
|
30
37
|
# @!attribute properties
|
|
31
38
|
#
|
|
32
39
|
# @return [Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Properties]
|
|
@@ -38,7 +45,10 @@ module Orb
|
|
|
38
45
|
# @return [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Type]
|
|
39
46
|
required :type, enum: -> { Orb::CreditBlockAccountingSyncFailedWebhookEvent::Type }
|
|
40
47
|
|
|
41
|
-
# @!method initialize(id:, accounting_sync_record:, block:, created_at:, properties:, type:)
|
|
48
|
+
# @!method initialize(id:, accounting_sync_record:, block:, created_at:, payload_style:, properties:, type:)
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent} for more details.
|
|
51
|
+
#
|
|
42
52
|
# Issued when a credit block accounting sync fails.
|
|
43
53
|
#
|
|
44
54
|
# @param id [String] The ID of this webhook event.
|
|
@@ -49,6 +59,8 @@ module Orb
|
|
|
49
59
|
#
|
|
50
60
|
# @param created_at [Time] The time at which this event was created, to the second.
|
|
51
61
|
#
|
|
62
|
+
# @param payload_style [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
63
|
+
#
|
|
52
64
|
# @param properties [Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Properties]
|
|
53
65
|
#
|
|
54
66
|
# @param type [Symbol, Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent::Type] The event this payload describes.
|
|
@@ -466,6 +478,20 @@ module Orb
|
|
|
466
478
|
end
|
|
467
479
|
end
|
|
468
480
|
|
|
481
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
482
|
+
# endpoint.
|
|
483
|
+
#
|
|
484
|
+
# @see Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent#payload_style
|
|
485
|
+
module PayloadStyle
|
|
486
|
+
extend Orb::Internal::Type::Enum
|
|
487
|
+
|
|
488
|
+
EXPANDED = :expanded
|
|
489
|
+
STANDARD = :standard
|
|
490
|
+
|
|
491
|
+
# @!method self.values
|
|
492
|
+
# @return [Array<Symbol>]
|
|
493
|
+
end
|
|
494
|
+
|
|
469
495
|
# @see Orb::Models::CreditBlockAccountingSyncFailedWebhookEvent#properties
|
|
470
496
|
class Properties < Orb::Internal::Type::BaseModel
|
|
471
497
|
# @!attribute connection_type
|
|
@@ -27,6 +27,13 @@ module Orb
|
|
|
27
27
|
# @return [Time]
|
|
28
28
|
required :created_at, Time
|
|
29
29
|
|
|
30
|
+
# @!attribute payload_style
|
|
31
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
32
|
+
# endpoint.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle]
|
|
35
|
+
required :payload_style, enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle }
|
|
36
|
+
|
|
30
37
|
# @!attribute properties
|
|
31
38
|
#
|
|
32
39
|
# @return [Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Properties]
|
|
@@ -38,7 +45,10 @@ module Orb
|
|
|
38
45
|
# @return [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Type]
|
|
39
46
|
required :type, enum: -> { Orb::CreditBlockAccountingSyncSucceededWebhookEvent::Type }
|
|
40
47
|
|
|
41
|
-
# @!method initialize(id:, accounting_sync_record:, block:, created_at:, properties:, type:)
|
|
48
|
+
# @!method initialize(id:, accounting_sync_record:, block:, created_at:, payload_style:, properties:, type:)
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent} for more details.
|
|
51
|
+
#
|
|
42
52
|
# Issued when a credit block accounting sync succeeds.
|
|
43
53
|
#
|
|
44
54
|
# @param id [String] The ID of this webhook event.
|
|
@@ -49,6 +59,8 @@ module Orb
|
|
|
49
59
|
#
|
|
50
60
|
# @param created_at [Time] The time at which this event was created, to the second.
|
|
51
61
|
#
|
|
62
|
+
# @param payload_style [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
63
|
+
#
|
|
52
64
|
# @param properties [Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Properties]
|
|
53
65
|
#
|
|
54
66
|
# @param type [Symbol, Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent::Type] The event this payload describes.
|
|
@@ -467,6 +479,20 @@ module Orb
|
|
|
467
479
|
end
|
|
468
480
|
end
|
|
469
481
|
|
|
482
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
483
|
+
# endpoint.
|
|
484
|
+
#
|
|
485
|
+
# @see Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent#payload_style
|
|
486
|
+
module PayloadStyle
|
|
487
|
+
extend Orb::Internal::Type::Enum
|
|
488
|
+
|
|
489
|
+
EXPANDED = :expanded
|
|
490
|
+
STANDARD = :standard
|
|
491
|
+
|
|
492
|
+
# @!method self.values
|
|
493
|
+
# @return [Array<Symbol>]
|
|
494
|
+
end
|
|
495
|
+
|
|
470
496
|
# @see Orb::Models::CreditBlockAccountingSyncSucceededWebhookEvent#properties
|
|
471
497
|
class Properties < Orb::Internal::Type::BaseModel
|
|
472
498
|
# @!attribute connection_type
|
|
@@ -28,6 +28,13 @@ module Orb
|
|
|
28
28
|
# @return [Orb::Models::CreditNote]
|
|
29
29
|
required :credit_note, -> { Orb::CreditNote }
|
|
30
30
|
|
|
31
|
+
# @!attribute payload_style
|
|
32
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
33
|
+
# endpoint.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle]
|
|
36
|
+
required :payload_style, enum: -> { Orb::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle }
|
|
37
|
+
|
|
31
38
|
# @!attribute properties
|
|
32
39
|
#
|
|
33
40
|
# @return [Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Properties]
|
|
@@ -39,7 +46,7 @@ module Orb
|
|
|
39
46
|
# @return [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Type]
|
|
40
47
|
required :type, enum: -> { Orb::CreditNoteAccountingSyncFailedWebhookEvent::Type }
|
|
41
48
|
|
|
42
|
-
# @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, properties:, type:)
|
|
49
|
+
# @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, payload_style:, properties:, type:)
|
|
43
50
|
# Some parameter documentations has been truncated, see
|
|
44
51
|
# {Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent} for more details.
|
|
45
52
|
#
|
|
@@ -53,6 +60,8 @@ module Orb
|
|
|
53
60
|
#
|
|
54
61
|
# @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
|
|
55
62
|
#
|
|
63
|
+
# @param payload_style [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
64
|
+
#
|
|
56
65
|
# @param properties [Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Properties]
|
|
57
66
|
#
|
|
58
67
|
# @param type [Symbol, Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent::Type] The event this payload describes.
|
|
@@ -128,6 +137,20 @@ module Orb
|
|
|
128
137
|
end
|
|
129
138
|
end
|
|
130
139
|
|
|
140
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
141
|
+
# endpoint.
|
|
142
|
+
#
|
|
143
|
+
# @see Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent#payload_style
|
|
144
|
+
module PayloadStyle
|
|
145
|
+
extend Orb::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
EXPANDED = :expanded
|
|
148
|
+
STANDARD = :standard
|
|
149
|
+
|
|
150
|
+
# @!method self.values
|
|
151
|
+
# @return [Array<Symbol>]
|
|
152
|
+
end
|
|
153
|
+
|
|
131
154
|
# @see Orb::Models::CreditNoteAccountingSyncFailedWebhookEvent#properties
|
|
132
155
|
class Properties < Orb::Internal::Type::BaseModel
|
|
133
156
|
# @!attribute connection_type
|
|
@@ -28,6 +28,13 @@ module Orb
|
|
|
28
28
|
# @return [Orb::Models::CreditNote]
|
|
29
29
|
required :credit_note, -> { Orb::CreditNote }
|
|
30
30
|
|
|
31
|
+
# @!attribute payload_style
|
|
32
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
33
|
+
# endpoint.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle]
|
|
36
|
+
required :payload_style, enum: -> { Orb::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle }
|
|
37
|
+
|
|
31
38
|
# @!attribute properties
|
|
32
39
|
#
|
|
33
40
|
# @return [Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Properties]
|
|
@@ -39,7 +46,7 @@ module Orb
|
|
|
39
46
|
# @return [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Type]
|
|
40
47
|
required :type, enum: -> { Orb::CreditNoteAccountingSyncSucceededWebhookEvent::Type }
|
|
41
48
|
|
|
42
|
-
# @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, properties:, type:)
|
|
49
|
+
# @!method initialize(id:, accounting_sync_record:, created_at:, credit_note:, payload_style:, properties:, type:)
|
|
43
50
|
# Some parameter documentations has been truncated, see
|
|
44
51
|
# {Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent} for more details.
|
|
45
52
|
#
|
|
@@ -53,6 +60,8 @@ module Orb
|
|
|
53
60
|
#
|
|
54
61
|
# @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
|
|
55
62
|
#
|
|
63
|
+
# @param payload_style [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
64
|
+
#
|
|
56
65
|
# @param properties [Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Properties]
|
|
57
66
|
#
|
|
58
67
|
# @param type [Symbol, Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent::Type] The event this payload describes.
|
|
@@ -128,6 +137,20 @@ module Orb
|
|
|
128
137
|
end
|
|
129
138
|
end
|
|
130
139
|
|
|
140
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
141
|
+
# endpoint.
|
|
142
|
+
#
|
|
143
|
+
# @see Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent#payload_style
|
|
144
|
+
module PayloadStyle
|
|
145
|
+
extend Orb::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
EXPANDED = :expanded
|
|
148
|
+
STANDARD = :standard
|
|
149
|
+
|
|
150
|
+
# @!method self.values
|
|
151
|
+
# @return [Array<Symbol>]
|
|
152
|
+
end
|
|
153
|
+
|
|
131
154
|
# @see Orb::Models::CreditNoteAccountingSyncSucceededWebhookEvent#properties
|
|
132
155
|
class Properties < Orb::Internal::Type::BaseModel
|
|
133
156
|
# @!attribute connection_type
|
|
@@ -22,6 +22,13 @@ module Orb
|
|
|
22
22
|
# @return [Orb::Models::CreditNote]
|
|
23
23
|
required :credit_note, -> { Orb::CreditNote }
|
|
24
24
|
|
|
25
|
+
# @!attribute payload_style
|
|
26
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
27
|
+
# endpoint.
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::PayloadStyle]
|
|
30
|
+
required :payload_style, enum: -> { Orb::CreditNoteIssuedWebhookEvent::PayloadStyle }
|
|
31
|
+
|
|
25
32
|
# @!attribute properties
|
|
26
33
|
#
|
|
27
34
|
# @return [Object]
|
|
@@ -33,7 +40,7 @@ module Orb
|
|
|
33
40
|
# @return [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::Type]
|
|
34
41
|
required :type, enum: -> { Orb::CreditNoteIssuedWebhookEvent::Type }
|
|
35
42
|
|
|
36
|
-
# @!method initialize(id:, created_at:, credit_note:, properties:, type:)
|
|
43
|
+
# @!method initialize(id:, created_at:, credit_note:, payload_style:, properties:, type:)
|
|
37
44
|
# Some parameter documentations has been truncated, see
|
|
38
45
|
# {Orb::Models::CreditNoteIssuedWebhookEvent} for more details.
|
|
39
46
|
#
|
|
@@ -45,10 +52,26 @@ module Orb
|
|
|
45
52
|
#
|
|
46
53
|
# @param credit_note [Orb::Models::CreditNote] The [Credit Note](/invoicing/credit-notes) resource represents a credit that has
|
|
47
54
|
#
|
|
55
|
+
# @param payload_style [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::PayloadStyle] The serialization style this payload was rendered in, as configured on the endpo
|
|
56
|
+
#
|
|
48
57
|
# @param properties [Object]
|
|
49
58
|
#
|
|
50
59
|
# @param type [Symbol, Orb::Models::CreditNoteIssuedWebhookEvent::Type] The event this payload describes.
|
|
51
60
|
|
|
61
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
62
|
+
# endpoint.
|
|
63
|
+
#
|
|
64
|
+
# @see Orb::Models::CreditNoteIssuedWebhookEvent#payload_style
|
|
65
|
+
module PayloadStyle
|
|
66
|
+
extend Orb::Internal::Type::Enum
|
|
67
|
+
|
|
68
|
+
EXPANDED = :expanded
|
|
69
|
+
STANDARD = :standard
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
|
|
52
75
|
# The event this payload describes.
|
|
53
76
|
#
|
|
54
77
|
# @see Orb::Models::CreditNoteIssuedWebhookEvent#type
|