Skip to content

Commit

Permalink
Add support for card-type events
Browse files Browse the repository at this point in the history
  • Loading branch information
tiriel-wyyerd committed Feb 4, 2022
1 parent 24a2b86 commit 20c32a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/resources/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ pub enum EventType {
CustomerSourceCreated,
#[serde(rename = "customer.source.deleted")]
CustomerSourceDeleted,
#[serde(rename = "customer.source.expiring")]
CustomerSourceExpiring,
#[serde(rename = "customer.source.updated")]
CustomerSourceUpdated,
#[serde(rename = "customer.subscription.created")]
Expand Down Expand Up @@ -137,6 +139,10 @@ pub enum EventType {
PaymentIntentRequiresCapture,
#[serde(rename = "payment_intent.succeeded")]
PaymentIntentSucceeded,
#[serde(rename = "payment_method.attached")]
PaymentMethodAttached,
#[serde(rename = "payment_method.detached")]
PaymentMethodDetached,
#[serde(rename = "payout.canceled")]
PayoutCanceled,
#[serde(rename = "payout.created")]
Expand Down Expand Up @@ -193,6 +199,7 @@ pub struct Event {
#[serde(rename = "type")]
pub event_type: EventType,
pub data: EventData,
pub created: i64,
// ...
}

Expand All @@ -211,6 +218,7 @@ pub enum EventObject {
ApplicationFeeRefund(ApplicationFeeRefund),
Balance(Balance),
BankAccount(BankAccount),
Card(Card),
Charge(Charge),
Customer(Customer),
Dispute(Dispute),
Expand Down

0 comments on commit 20c32a1

Please sign in to comment.