Add the Activity, SubscriptionStep and MessageResponse models

These are the types the per-resource extras and the activity endpoints
need, split out so they land before the code and tests that use them.

`MessageResponse` covers the `{"message": "..."}` body that the action
endpoints answer with, defaulting `message` so a reply carrying none still
decodes. `int_or_numeric_string` goes in alongside them: the spec calls
`frequency_id` a number, but a real 5.13.50 server sends the string `"5"`,
and a strict `i64` turned that into a hard decode error *after* the record
had already been created.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 21:55:39 -04:00
co-authored by Claude Opus 5
parent 9e7d81307d
commit 0002d32197
4 changed files with 179 additions and 2 deletions
+6 -2
View File
@@ -1,3 +1,4 @@
mod activity;
mod bank_integration;
mod bank_transaction;
mod bank_transaction_rule;
@@ -35,12 +36,15 @@ mod user;
mod vendor;
mod webhook;
pub use activity::{Activity, ActivityFeedEntry, ActivityRef};
pub use bank_integration::BankIntegration;
pub use bank_transaction::BankTransaction;
pub use bank_transaction_rule::BankTransactionRule;
pub use client::{Client, ClientContact};
pub use client_gateway_token::ClientGatewayToken;
pub use common::{BulkRequest, ItemResponse, ListParams, ListResponse, Meta, Pagination};
pub use common::{
BulkRequest, ItemResponse, ListParams, ListResponse, MessageResponse, Meta, Pagination,
};
pub use company::Company;
pub use company_gateway::CompanyGateway;
pub use company_token::CompanyToken;
@@ -61,7 +65,7 @@ pub use recurring_expense::RecurringExpense;
pub use recurring_invoice::{RecurringInvoice, RecurringQuote};
pub use search::{SearchHit, SearchResults};
pub use statics::{Currency, DateFormat, StaticItem, Statics};
pub use subscription::Subscription;
pub use subscription::{Subscription, SubscriptionStep};
pub use system_log::SystemLog;
pub use tag::Tag;
pub use task::Task;