@churchapps/helpers
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
139 lines • 3.4 kB
TypeScript
import { PersonInterface } from ".";
export interface DonationBatchInterface {
id?: string;
name?: string;
batchDate?: Date;
donationCount?: number;
totalAmount?: number;
}
export interface DonationInterface {
id?: string;
batchId?: string;
personId?: string;
donationDate?: Date;
amount?: number;
method?: string;
methodDetails?: string;
notes?: string;
person?: PersonInterface;
fund?: FundInterface;
}
export interface DonationSummaryInterface {
week: number;
donations?: DonationSummaryDonation[];
}
export interface DonationSummaryDonation {
totalAmount: number;
fund?: FundInterface;
}
export interface FundInterface {
id: string;
name: string;
taxDeductible?: boolean;
amount?: number;
}
export interface FundDonationInterface {
id?: string;
donationId?: string;
fundId?: string;
amount?: number;
donation?: DonationInterface;
}
export interface PaymentMethodInterface {
id?: string;
churchId?: string;
personId?: string;
customerId?: string;
email?: string;
name?: string;
}
export interface StripeCardUpdateInterface {
paymentMethodId: string;
cardData: StripeCardDataInterface;
personId?: string;
}
export interface StripeCardDataInterface {
card: StripeCardExpirationInterface;
}
export interface StripeCardExpirationInterface {
exp_month: string;
exp_year: string;
}
export interface StripeBankAccountInterface {
account_holder_name: any;
account_holder_type: any;
country: string;
currency: string;
account_number: any;
routing_number: any;
}
export interface StripeBankAccountUpdateInterface {
paymentMethodId: string;
customerId: string;
personId?: string;
bankData: StripeBankAccountHolderDataInterface;
}
export interface StripeBankAccountHolderDataInterface {
account_holder_name: string;
account_holder_type: string;
}
export interface StripeBankAccountVerifyInterface {
customerId: string;
paymentMethodId: string;
amountData: {
amounts: string[];
};
}
export interface StripePersonDonationInterface {
id: string;
email: string;
name: string;
}
export interface StripeFundDonationInterface {
id: string;
amount: number;
name?: string;
}
export interface StripeDonationInterface {
id?: string;
type?: string;
amount?: number;
customerId?: string;
billing_cycle_anchor?: number;
proration_behavior?: string;
interval?: StripeDonationIntervalInterface;
person?: StripePersonDonationInterface;
funds?: StripeFundDonationInterface[];
notes?: string;
churchId?: string;
}
export interface StripeDonationIntervalInterface {
interval: string;
interval_count: number;
}
export interface SubscriptionInterface {
id: string;
funds: [];
billing_cycle_anchor: number;
default_payment_method: string;
default_source: string;
plan: {
amount: number;
interval: string;
interval_count: number;
};
customer: string;
}
export declare class StripePaymentMethod {
id: string;
type: string;
name: string;
last4: string;
exp_month?: string;
exp_year?: string;
status?: string;
account_holder_name?: string;
account_holder_type?: string;
constructor(obj?: any);
}
//# sourceMappingURL=Donation.d.ts.map