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
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(Time) }
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
22
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
23
|
+
# endpoint.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
sig do
|
|
23
32
|
returns(
|
|
24
33
|
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::Properties
|
|
@@ -72,6 +81,8 @@ module Orb
|
|
|
72
81
|
params(
|
|
73
82
|
id: String,
|
|
74
83
|
created_at: Time,
|
|
84
|
+
payload_style:
|
|
85
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::OrSymbol,
|
|
75
86
|
properties:
|
|
76
87
|
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::Properties::OrHash,
|
|
77
88
|
subscription: Orb::Subscription::OrHash,
|
|
@@ -84,6 +95,9 @@ module Orb
|
|
|
84
95
|
id:,
|
|
85
96
|
# The time at which this event was created, to the second.
|
|
86
97
|
created_at:,
|
|
98
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
99
|
+
# endpoint.
|
|
100
|
+
payload_style:,
|
|
87
101
|
properties:,
|
|
88
102
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
89
103
|
# by a customer.
|
|
@@ -115,6 +129,8 @@ module Orb
|
|
|
115
129
|
{
|
|
116
130
|
id: String,
|
|
117
131
|
created_at: Time,
|
|
132
|
+
payload_style:
|
|
133
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
118
134
|
properties:
|
|
119
135
|
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::Properties,
|
|
120
136
|
subscription: Orb::Subscription,
|
|
@@ -126,6 +142,42 @@ module Orb
|
|
|
126
142
|
def to_hash
|
|
127
143
|
end
|
|
128
144
|
|
|
145
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
146
|
+
# endpoint.
|
|
147
|
+
module PayloadStyle
|
|
148
|
+
extend Orb::Internal::Type::Enum
|
|
149
|
+
|
|
150
|
+
TaggedSymbol =
|
|
151
|
+
T.type_alias do
|
|
152
|
+
T.all(
|
|
153
|
+
Symbol,
|
|
154
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle
|
|
155
|
+
)
|
|
156
|
+
end
|
|
157
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
158
|
+
|
|
159
|
+
EXPANDED =
|
|
160
|
+
T.let(
|
|
161
|
+
:expanded,
|
|
162
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::TaggedSymbol
|
|
163
|
+
)
|
|
164
|
+
STANDARD =
|
|
165
|
+
T.let(
|
|
166
|
+
:standard,
|
|
167
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::TaggedSymbol
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
sig do
|
|
171
|
+
override.returns(
|
|
172
|
+
T::Array[
|
|
173
|
+
Orb::SubscriptionPlanVersionChangeScheduledWebhookEvent::PayloadStyle::TaggedSymbol
|
|
174
|
+
]
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
def self.values
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
129
181
|
class Properties < Orb::Internal::Type::BaseModel
|
|
130
182
|
OrHash =
|
|
131
183
|
T.type_alias do
|
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(Time) }
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
22
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
23
|
+
# endpoint.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
sig do
|
|
23
32
|
returns(Orb::SubscriptionPlanVersionChangedWebhookEvent::Properties)
|
|
24
33
|
end
|
|
@@ -70,6 +79,8 @@ module Orb
|
|
|
70
79
|
params(
|
|
71
80
|
id: String,
|
|
72
81
|
created_at: Time,
|
|
82
|
+
payload_style:
|
|
83
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::OrSymbol,
|
|
73
84
|
properties:
|
|
74
85
|
Orb::SubscriptionPlanVersionChangedWebhookEvent::Properties::OrHash,
|
|
75
86
|
subscription: Orb::Subscription::OrHash,
|
|
@@ -81,6 +92,9 @@ module Orb
|
|
|
81
92
|
id:,
|
|
82
93
|
# The time at which this event was created, to the second.
|
|
83
94
|
created_at:,
|
|
95
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
96
|
+
# endpoint.
|
|
97
|
+
payload_style:,
|
|
84
98
|
properties:,
|
|
85
99
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
86
100
|
# by a customer.
|
|
@@ -112,6 +126,8 @@ module Orb
|
|
|
112
126
|
{
|
|
113
127
|
id: String,
|
|
114
128
|
created_at: Time,
|
|
129
|
+
payload_style:
|
|
130
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
115
131
|
properties:
|
|
116
132
|
Orb::SubscriptionPlanVersionChangedWebhookEvent::Properties,
|
|
117
133
|
subscription: Orb::Subscription,
|
|
@@ -123,6 +139,42 @@ module Orb
|
|
|
123
139
|
def to_hash
|
|
124
140
|
end
|
|
125
141
|
|
|
142
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
143
|
+
# endpoint.
|
|
144
|
+
module PayloadStyle
|
|
145
|
+
extend Orb::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
TaggedSymbol =
|
|
148
|
+
T.type_alias do
|
|
149
|
+
T.all(
|
|
150
|
+
Symbol,
|
|
151
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle
|
|
152
|
+
)
|
|
153
|
+
end
|
|
154
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
155
|
+
|
|
156
|
+
EXPANDED =
|
|
157
|
+
T.let(
|
|
158
|
+
:expanded,
|
|
159
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
160
|
+
)
|
|
161
|
+
STANDARD =
|
|
162
|
+
T.let(
|
|
163
|
+
:standard,
|
|
164
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
sig do
|
|
168
|
+
override.returns(
|
|
169
|
+
T::Array[
|
|
170
|
+
Orb::SubscriptionPlanVersionChangedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
171
|
+
]
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
def self.values
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
126
178
|
class Properties < Orb::Internal::Type::BaseModel
|
|
127
179
|
OrHash =
|
|
128
180
|
T.type_alias do
|
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(Time) }
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
22
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
23
|
+
# endpoint.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
sig { returns(Orb::SubscriptionSpendExceededWebhookEvent::Properties) }
|
|
23
32
|
attr_reader :properties
|
|
24
33
|
|
|
@@ -67,6 +76,8 @@ module Orb
|
|
|
67
76
|
params(
|
|
68
77
|
id: String,
|
|
69
78
|
created_at: Time,
|
|
79
|
+
payload_style:
|
|
80
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::OrSymbol,
|
|
70
81
|
properties:
|
|
71
82
|
Orb::SubscriptionSpendExceededWebhookEvent::Properties::OrHash,
|
|
72
83
|
subscription: Orb::Subscription::OrHash,
|
|
@@ -78,6 +89,9 @@ module Orb
|
|
|
78
89
|
id:,
|
|
79
90
|
# The time at which this event was created, to the second.
|
|
80
91
|
created_at:,
|
|
92
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
93
|
+
# endpoint.
|
|
94
|
+
payload_style:,
|
|
81
95
|
properties:,
|
|
82
96
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
83
97
|
# by a customer.
|
|
@@ -109,6 +123,8 @@ module Orb
|
|
|
109
123
|
{
|
|
110
124
|
id: String,
|
|
111
125
|
created_at: Time,
|
|
126
|
+
payload_style:
|
|
127
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
112
128
|
properties: Orb::SubscriptionSpendExceededWebhookEvent::Properties,
|
|
113
129
|
subscription: Orb::Subscription,
|
|
114
130
|
type: Orb::SubscriptionSpendExceededWebhookEvent::Type::TaggedSymbol
|
|
@@ -118,6 +134,42 @@ module Orb
|
|
|
118
134
|
def to_hash
|
|
119
135
|
end
|
|
120
136
|
|
|
137
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
138
|
+
# endpoint.
|
|
139
|
+
module PayloadStyle
|
|
140
|
+
extend Orb::Internal::Type::Enum
|
|
141
|
+
|
|
142
|
+
TaggedSymbol =
|
|
143
|
+
T.type_alias do
|
|
144
|
+
T.all(
|
|
145
|
+
Symbol,
|
|
146
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
150
|
+
|
|
151
|
+
EXPANDED =
|
|
152
|
+
T.let(
|
|
153
|
+
:expanded,
|
|
154
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
155
|
+
)
|
|
156
|
+
STANDARD =
|
|
157
|
+
T.let(
|
|
158
|
+
:standard,
|
|
159
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
sig do
|
|
163
|
+
override.returns(
|
|
164
|
+
T::Array[
|
|
165
|
+
Orb::SubscriptionSpendExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
166
|
+
]
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
def self.values
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
121
173
|
class Properties < Orb::Internal::Type::BaseModel
|
|
122
174
|
OrHash =
|
|
123
175
|
T.type_alias do
|
|
@@ -16,6 +16,15 @@ module Orb
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :payload_style
|
|
27
|
+
|
|
19
28
|
sig { returns(T.anything) }
|
|
20
29
|
attr_accessor :properties
|
|
21
30
|
|
|
@@ -53,6 +62,8 @@ module Orb
|
|
|
53
62
|
params(
|
|
54
63
|
id: String,
|
|
55
64
|
created_at: Time,
|
|
65
|
+
payload_style:
|
|
66
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::OrSymbol,
|
|
56
67
|
properties: T.anything,
|
|
57
68
|
subscription: Orb::Subscription::OrHash,
|
|
58
69
|
type: Orb::SubscriptionStartedWebhookEvent::Type::OrSymbol
|
|
@@ -63,6 +74,9 @@ module Orb
|
|
|
63
74
|
id:,
|
|
64
75
|
# The time at which this event was created, to the second.
|
|
65
76
|
created_at:,
|
|
77
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
78
|
+
# endpoint.
|
|
79
|
+
payload_style:,
|
|
66
80
|
properties:,
|
|
67
81
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
68
82
|
# by a customer.
|
|
@@ -94,6 +108,8 @@ module Orb
|
|
|
94
108
|
{
|
|
95
109
|
id: String,
|
|
96
110
|
created_at: Time,
|
|
111
|
+
payload_style:
|
|
112
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
97
113
|
properties: T.anything,
|
|
98
114
|
subscription: Orb::Subscription,
|
|
99
115
|
type: Orb::SubscriptionStartedWebhookEvent::Type::TaggedSymbol
|
|
@@ -103,6 +119,39 @@ module Orb
|
|
|
103
119
|
def to_hash
|
|
104
120
|
end
|
|
105
121
|
|
|
122
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
123
|
+
# endpoint.
|
|
124
|
+
module PayloadStyle
|
|
125
|
+
extend Orb::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
TaggedSymbol =
|
|
128
|
+
T.type_alias do
|
|
129
|
+
T.all(Symbol, Orb::SubscriptionStartedWebhookEvent::PayloadStyle)
|
|
130
|
+
end
|
|
131
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
132
|
+
|
|
133
|
+
EXPANDED =
|
|
134
|
+
T.let(
|
|
135
|
+
:expanded,
|
|
136
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
137
|
+
)
|
|
138
|
+
STANDARD =
|
|
139
|
+
T.let(
|
|
140
|
+
:standard,
|
|
141
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
sig do
|
|
145
|
+
override.returns(
|
|
146
|
+
T::Array[
|
|
147
|
+
Orb::SubscriptionStartedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
148
|
+
]
|
|
149
|
+
)
|
|
150
|
+
end
|
|
151
|
+
def self.values
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
106
155
|
# The event this payload describes.
|
|
107
156
|
module Type
|
|
108
157
|
extend Orb::Internal::Type::Enum
|
|
@@ -16,6 +16,15 @@ module Orb
|
|
|
16
16
|
sig { returns(Time) }
|
|
17
17
|
attr_accessor :created_at
|
|
18
18
|
|
|
19
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
20
|
+
# endpoint.
|
|
21
|
+
sig do
|
|
22
|
+
returns(
|
|
23
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
attr_accessor :payload_style
|
|
27
|
+
|
|
19
28
|
sig { returns(T.anything) }
|
|
20
29
|
attr_accessor :properties
|
|
21
30
|
|
|
@@ -55,6 +64,8 @@ module Orb
|
|
|
55
64
|
params(
|
|
56
65
|
id: String,
|
|
57
66
|
created_at: Time,
|
|
67
|
+
payload_style:
|
|
68
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::OrSymbol,
|
|
58
69
|
properties: T.anything,
|
|
59
70
|
subscription: Orb::Subscription::OrHash,
|
|
60
71
|
type: Orb::SubscriptionTrialEndedWebhookEvent::Type::OrSymbol
|
|
@@ -65,6 +76,9 @@ module Orb
|
|
|
65
76
|
id:,
|
|
66
77
|
# The time at which this event was created, to the second.
|
|
67
78
|
created_at:,
|
|
79
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
80
|
+
# endpoint.
|
|
81
|
+
payload_style:,
|
|
68
82
|
properties:,
|
|
69
83
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
70
84
|
# by a customer.
|
|
@@ -96,6 +110,8 @@ module Orb
|
|
|
96
110
|
{
|
|
97
111
|
id: String,
|
|
98
112
|
created_at: Time,
|
|
113
|
+
payload_style:
|
|
114
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
99
115
|
properties: T.anything,
|
|
100
116
|
subscription: Orb::Subscription,
|
|
101
117
|
type: Orb::SubscriptionTrialEndedWebhookEvent::Type::TaggedSymbol
|
|
@@ -105,6 +121,39 @@ module Orb
|
|
|
105
121
|
def to_hash
|
|
106
122
|
end
|
|
107
123
|
|
|
124
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
125
|
+
# endpoint.
|
|
126
|
+
module PayloadStyle
|
|
127
|
+
extend Orb::Internal::Type::Enum
|
|
128
|
+
|
|
129
|
+
TaggedSymbol =
|
|
130
|
+
T.type_alias do
|
|
131
|
+
T.all(Symbol, Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle)
|
|
132
|
+
end
|
|
133
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
134
|
+
|
|
135
|
+
EXPANDED =
|
|
136
|
+
T.let(
|
|
137
|
+
:expanded,
|
|
138
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
139
|
+
)
|
|
140
|
+
STANDARD =
|
|
141
|
+
T.let(
|
|
142
|
+
:standard,
|
|
143
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
sig do
|
|
147
|
+
override.returns(
|
|
148
|
+
T::Array[
|
|
149
|
+
Orb::SubscriptionTrialEndedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
150
|
+
]
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
def self.values
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
108
157
|
# The event this payload describes.
|
|
109
158
|
module Type
|
|
110
159
|
extend Orb::Internal::Type::Enum
|
|
@@ -19,6 +19,15 @@ module Orb
|
|
|
19
19
|
sig { returns(Time) }
|
|
20
20
|
attr_accessor :created_at
|
|
21
21
|
|
|
22
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
23
|
+
# endpoint.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :payload_style
|
|
30
|
+
|
|
22
31
|
sig { returns(Orb::SubscriptionUsageExceededWebhookEvent::Properties) }
|
|
23
32
|
attr_reader :properties
|
|
24
33
|
|
|
@@ -67,6 +76,8 @@ module Orb
|
|
|
67
76
|
params(
|
|
68
77
|
id: String,
|
|
69
78
|
created_at: Time,
|
|
79
|
+
payload_style:
|
|
80
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::OrSymbol,
|
|
70
81
|
properties:
|
|
71
82
|
Orb::SubscriptionUsageExceededWebhookEvent::Properties::OrHash,
|
|
72
83
|
subscription: Orb::Subscription::OrHash,
|
|
@@ -78,6 +89,9 @@ module Orb
|
|
|
78
89
|
id:,
|
|
79
90
|
# The time at which this event was created, to the second.
|
|
80
91
|
created_at:,
|
|
92
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
93
|
+
# endpoint.
|
|
94
|
+
payload_style:,
|
|
81
95
|
properties:,
|
|
82
96
|
# A [subscription](/core-concepts#subscription) represents the purchase of a plan
|
|
83
97
|
# by a customer.
|
|
@@ -109,6 +123,8 @@ module Orb
|
|
|
109
123
|
{
|
|
110
124
|
id: String,
|
|
111
125
|
created_at: Time,
|
|
126
|
+
payload_style:
|
|
127
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
112
128
|
properties: Orb::SubscriptionUsageExceededWebhookEvent::Properties,
|
|
113
129
|
subscription: Orb::Subscription,
|
|
114
130
|
type: Orb::SubscriptionUsageExceededWebhookEvent::Type::TaggedSymbol
|
|
@@ -118,6 +134,42 @@ module Orb
|
|
|
118
134
|
def to_hash
|
|
119
135
|
end
|
|
120
136
|
|
|
137
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
138
|
+
# endpoint.
|
|
139
|
+
module PayloadStyle
|
|
140
|
+
extend Orb::Internal::Type::Enum
|
|
141
|
+
|
|
142
|
+
TaggedSymbol =
|
|
143
|
+
T.type_alias do
|
|
144
|
+
T.all(
|
|
145
|
+
Symbol,
|
|
146
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
150
|
+
|
|
151
|
+
EXPANDED =
|
|
152
|
+
T.let(
|
|
153
|
+
:expanded,
|
|
154
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
155
|
+
)
|
|
156
|
+
STANDARD =
|
|
157
|
+
T.let(
|
|
158
|
+
:standard,
|
|
159
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
sig do
|
|
163
|
+
override.returns(
|
|
164
|
+
T::Array[
|
|
165
|
+
Orb::SubscriptionUsageExceededWebhookEvent::PayloadStyle::TaggedSymbol
|
|
166
|
+
]
|
|
167
|
+
)
|
|
168
|
+
end
|
|
169
|
+
def self.values
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
121
173
|
class Properties < Orb::Internal::Type::BaseModel
|
|
122
174
|
OrHash =
|
|
123
175
|
T.type_alias do
|
|
@@ -17,11 +17,17 @@ module Orb
|
|
|
17
17
|
sig { returns(T.nilable(String)) }
|
|
18
18
|
attr_accessor :tax_rate_percentage
|
|
19
19
|
|
|
20
|
+
# Why this tax was or was not charged, such as reverse_charge or customer_exempt.
|
|
21
|
+
# Null on tax calculated before reasons were recorded.
|
|
22
|
+
sig { returns(T.nilable(Orb::TaxAmount::TaxReason::TaggedSymbol)) }
|
|
23
|
+
attr_accessor :tax_reason
|
|
24
|
+
|
|
20
25
|
sig do
|
|
21
26
|
params(
|
|
22
27
|
amount: String,
|
|
23
28
|
tax_rate_description: String,
|
|
24
|
-
tax_rate_percentage: T.nilable(String)
|
|
29
|
+
tax_rate_percentage: T.nilable(String),
|
|
30
|
+
tax_reason: T.nilable(Orb::TaxAmount::TaxReason::OrSymbol)
|
|
25
31
|
).returns(T.attached_class)
|
|
26
32
|
end
|
|
27
33
|
def self.new(
|
|
@@ -30,7 +36,10 @@ module Orb
|
|
|
30
36
|
# The human-readable description of the applied tax rate.
|
|
31
37
|
tax_rate_description:,
|
|
32
38
|
# The tax rate percentage, out of 100.
|
|
33
|
-
tax_rate_percentage
|
|
39
|
+
tax_rate_percentage:,
|
|
40
|
+
# Why this tax was or was not charged, such as reverse_charge or customer_exempt.
|
|
41
|
+
# Null on tax calculated before reasons were recorded.
|
|
42
|
+
tax_reason: nil
|
|
34
43
|
)
|
|
35
44
|
end
|
|
36
45
|
|
|
@@ -39,12 +48,41 @@ module Orb
|
|
|
39
48
|
{
|
|
40
49
|
amount: String,
|
|
41
50
|
tax_rate_description: String,
|
|
42
|
-
tax_rate_percentage: T.nilable(String)
|
|
51
|
+
tax_rate_percentage: T.nilable(String),
|
|
52
|
+
tax_reason: T.nilable(Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
43
53
|
}
|
|
44
54
|
)
|
|
45
55
|
end
|
|
46
56
|
def to_hash
|
|
47
57
|
end
|
|
58
|
+
|
|
59
|
+
# Why this tax was or was not charged, such as reverse_charge or customer_exempt.
|
|
60
|
+
# Null on tax calculated before reasons were recorded.
|
|
61
|
+
module TaxReason
|
|
62
|
+
extend Orb::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Orb::TaxAmount::TaxReason) }
|
|
65
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
66
|
+
|
|
67
|
+
TAXED = T.let(:taxed, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
68
|
+
REVERSE_CHARGE =
|
|
69
|
+
T.let(:reverse_charge, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
70
|
+
CUSTOMER_EXEMPT =
|
|
71
|
+
T.let(:customer_exempt, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
72
|
+
PRODUCT_EXEMPT =
|
|
73
|
+
T.let(:product_exempt, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
74
|
+
NOT_REGISTERED =
|
|
75
|
+
T.let(:not_registered, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
76
|
+
ZERO_RATED = T.let(:zero_rated, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
77
|
+
NOT_TAXED_OTHER =
|
|
78
|
+
T.let(:not_taxed_other, Orb::TaxAmount::TaxReason::TaggedSymbol)
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
override.returns(T::Array[Orb::TaxAmount::TaxReason::TaggedSymbol])
|
|
82
|
+
end
|
|
83
|
+
def self.values
|
|
84
|
+
end
|
|
85
|
+
end
|
|
48
86
|
end
|
|
49
87
|
end
|
|
50
88
|
end
|
|
@@ -34,6 +34,15 @@ module Orb
|
|
|
34
34
|
sig { returns(Time) }
|
|
35
35
|
attr_accessor :created_at
|
|
36
36
|
|
|
37
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
38
|
+
# endpoint.
|
|
39
|
+
sig do
|
|
40
|
+
returns(
|
|
41
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
attr_accessor :payload_style
|
|
45
|
+
|
|
37
46
|
sig do
|
|
38
47
|
returns(Orb::TransactionAccountingSyncFailedWebhookEvent::Properties)
|
|
39
48
|
end
|
|
@@ -75,6 +84,8 @@ module Orb
|
|
|
75
84
|
accounting_sync_record:
|
|
76
85
|
Orb::TransactionAccountingSyncFailedWebhookEvent::AccountingSyncRecord::OrHash,
|
|
77
86
|
created_at: Time,
|
|
87
|
+
payload_style:
|
|
88
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::OrSymbol,
|
|
78
89
|
properties:
|
|
79
90
|
Orb::TransactionAccountingSyncFailedWebhookEvent::Properties::OrHash,
|
|
80
91
|
transaction:
|
|
@@ -88,6 +99,9 @@ module Orb
|
|
|
88
99
|
accounting_sync_record:,
|
|
89
100
|
# The time at which this event was created, to the second.
|
|
90
101
|
created_at:,
|
|
102
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
103
|
+
# endpoint.
|
|
104
|
+
payload_style:,
|
|
91
105
|
properties:,
|
|
92
106
|
transaction:,
|
|
93
107
|
# The event this payload describes.
|
|
@@ -102,6 +116,8 @@ module Orb
|
|
|
102
116
|
accounting_sync_record:
|
|
103
117
|
Orb::TransactionAccountingSyncFailedWebhookEvent::AccountingSyncRecord,
|
|
104
118
|
created_at: Time,
|
|
119
|
+
payload_style:
|
|
120
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol,
|
|
105
121
|
properties:
|
|
106
122
|
Orb::TransactionAccountingSyncFailedWebhookEvent::Properties,
|
|
107
123
|
transaction:
|
|
@@ -259,6 +275,42 @@ module Orb
|
|
|
259
275
|
end
|
|
260
276
|
end
|
|
261
277
|
|
|
278
|
+
# The serialization style this payload was rendered in, as configured on the
|
|
279
|
+
# endpoint.
|
|
280
|
+
module PayloadStyle
|
|
281
|
+
extend Orb::Internal::Type::Enum
|
|
282
|
+
|
|
283
|
+
TaggedSymbol =
|
|
284
|
+
T.type_alias do
|
|
285
|
+
T.all(
|
|
286
|
+
Symbol,
|
|
287
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
291
|
+
|
|
292
|
+
EXPANDED =
|
|
293
|
+
T.let(
|
|
294
|
+
:expanded,
|
|
295
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
296
|
+
)
|
|
297
|
+
STANDARD =
|
|
298
|
+
T.let(
|
|
299
|
+
:standard,
|
|
300
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
sig do
|
|
304
|
+
override.returns(
|
|
305
|
+
T::Array[
|
|
306
|
+
Orb::TransactionAccountingSyncFailedWebhookEvent::PayloadStyle::TaggedSymbol
|
|
307
|
+
]
|
|
308
|
+
)
|
|
309
|
+
end
|
|
310
|
+
def self.values
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
262
314
|
class Properties < Orb::Internal::Type::BaseModel
|
|
263
315
|
OrHash =
|
|
264
316
|
T.type_alias do
|