export interface RentsModel {
user: string;
updatedOn: Timestamp;
listingAnalytics: ListingAnalytics;
rentDetails: RentDetails;
}
export interface ListingAnalytics {
averageRentLength: number;
updatedDate: Timestamp;
rentCount: number;
totalEarned: number;
}
export interface RentDetails {
payable: number;
updatedOn: Timestamp;
transaction: Transaction;
transactionDate: Timestamp;
userReviewStatus: string;
applicationFee: number;
reservationStatus: string;
endDate: Timestamp;
startDate: Timestamp;
ownerShare: number;
status: number;
renter: string;
}
export interface Transaction {
source: Source;
metadata: {};
transfer_data: TransferData;
receipt_email: any;
application_fee: string;
application: any;
calculated_statement_descriptor: string;
destination: string;
statement_descriptor: any;
application_fee_amount: number;
disputed: boolean;
billing_details: BillingDetails;
customer: string;
failure_code: any;
fraud_details: FraudDetails;
paid: boolean;
refunded: boolean;
amount: number;
dispute: any;
invoice: any;
payment_method_details: PaymentMethodDetails;
amount_captured: number;
description: any;
receipt_url: string;
source_transfer: any;
amount_refunded: number;
shipping: any;
receipt_number: any;
captured: boolean;
statement_descriptor_suffix: any;
refunds: Refunds;
status: string;
failure_message: any;
payment_intent: any;
balance_transaction: string;
order: any;
on_behalf_of: any;
currency: string;
transfer: string;
outcome: Outcome;
created: number;
livemode: boolean;
review: any;
object: string;
transfer_group: string;
id: string;
payment_method: string;
}
export interface Source {
cvc_check: any;
address_line1: any;
address_zip_check: string;
address_line1_check: any;
dynamic_last4: any;
name: any;
fingerprint: string;
country: string;
customer: string;
address_line2: any;
address_city: any;
address_state: any;
funding: string;
exp_year: number;
brand: string;
id: string;
metadata: {};
object: string;
exp_month: number;
tokenization_method: any;
address_zip: string;
address_country: any;
last4: string;
}
export interface TransferData {
destination: string;
amount: any;
}
export interface BillingDetails {
phone: any;
address: Address;
email: any;
name: any;
}
export interface Address {
state: any;
city: any;
line1: any;
country: any;
line2: any;
postal_code: string;
}
export interface FraudDetails {}
export interface PaymentMethodDetails {
card: Card;
type: string;
}
export interface Card {
fingerprint: string;
checks: Checks;
exp_month: number;
last4: string;
brand: string;
three_d_secure: any;
network: string;
wallet: any;
country: string;
exp_year: number;
funding: string;
installments: any;
}
export interface Checks {
cvc_check: any;
address_postal_code_check: string;
address_line1_check: any;
}
export interface Refunds {
url: string;
data: any[];
total_count: number;
has_more: boolean;
object: string;
}
export interface Outcome {
type: string;
network_status: string;
seller_message: string;
risk_score: number;
reason: any;
risk_level: string;
}
export interface Timestamp {
seconds: number;
nanoseconds: number;
}