0.1.2 webhooks; other minor changes to messages and comments

This commit is contained in:
aaron-jack-manning
2022-07-15 13:23:01 +10:00
parent daf7242f10
commit 11de1e7256
7 changed files with 517 additions and 9 deletions

View File

@@ -80,3 +80,21 @@ pub struct CardPurchaseMethodObject {
/// The last four digits of the card used for the purchase, if applicable.
pub card_number_suffix : Option<String>,
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum WebhookEventTypeEnum {
TransactionCreated,
TransactionSettled,
TransactionDeleted,
Ping,
}
#[derive(Deserialize, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum WebhookDeliveryStatusEnum {
Delivered,
Undeliverable,
BadResponseCode,
}