export interface VannaWebhookRequestEventBody {
VANNA_SECRET: string
event_type: string
payload: Payload
sent_at: string
}
export interface Payload {
source: string
expected_on: string
deleted_at: any
is_fine_applied: boolean
month: number
amount: number
year: number
created_by: string
id: string
shorten_url_hash: string
customer_id: string
payment_method: string
redirect_url: any
canceled_at: any
charge_preset_id: any
status: string
inserted_at: string
fine_total_amount: number
installments: any
items: Item[]
transaction_cost: number
dynamic_charge_id: any
date: string
description: string
refunded_at: any
metadata: { wallet: string; txnHash: string | null } | null
interests_total_amount: number
has_installments: boolean
paid_at: string
day: number
recurrent_charge_id: any
updated_at: string
friendly_id: string
}
export interface Item {
discount_amount: number
freight_amount: number
id: string
insurance_amount: number
item_id: string
name: string
others_amount: number
price: number
quantity: number
type: string
}
Created
November 15, 2021 14:37
-
-
Save fakenickels/594fa85785165852ca9920b400a855b7 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment