UNPKG

@causalfoundry/js-sdk

Version:

Causal Foundry WEB SDK (JS/TS)

42 lines (36 loc) 924 B
import { CurrencyCode } from "../../core/commonTypes"; export enum PaymentsEventTypes { Payment = "payment" } export enum PaymentAction { PaymentProcessed = 'payment_processed', View = "view", Add = "add", Remove = "remove", Update = "update", Select = "select", Other = "other" } export enum PaymentMethod { BankCard = "bank_card", BankTransfer = "bank_transfer", CashOnDelivery = "cash_on_delivery", Cheque = "cheque", Credit = "credit", PointOfSale = "point_of_sale", MobileTransfer = "mobile_transfer", Cash = "cash", Wallet = "wallet", Other = "other" } export interface PaymentMethodProperties { payment_id: string, order_id: string, action: PaymentAction, type: PaymentMethod, payment_amount: number account_balance?: number, currency: CurrencyCode // required - ISO 4217, is_successful: boolean, meta?: any }