import type { payment_Fee } from './payment_Fee'; import type { payment_FeeAmountExternal } from './payment_FeeAmountExternal'; export type payment_Payment = { /** * Amount is the payment amount in the smallest currency unit (e.g. cents). */ amount?: number; /** * Brand is the card brand or bank descriptor of the payment method. */ brand?: string; /** * ChargedAt is the RFC 3339 timestamp at which the payment was charged. */ chargedAt?: string; createdAt?: string; creatorId?: string; data?: string; /** * DeclineCode is the lower-camel-cased decline reason returned when a payment fails. */ declineCode?: string; /** * ObjectType is the internal entity type discriminator for the record. */ entityType?: string; /** * Fee is the full transaction-fee breakdown for the payment. */ fee?: payment_Fee; /** * FeeAmount is the client-facing split of the transaction fee between platform and client. */ feeAmount?: payment_FeeAmountExternal; id?: string; identityId?: string; /** * IntentId is the Stripe payment intent identifier associated with the payment. */ intentId?: string; /** * InvoiceId is the ID of the invoice this payment was made against. */ invoiceId?: string; /** * Last4Digits is the last four digits of the card or bank account used. */ last4Digits?: string; /** * Message is a human-readable status or decline message for the payment. */ message?: string; object?: string; /** * PaymentMethod is the type of payment method used for the payment. */ paymentMethod?: payment_Payment.paymentMethod; /** * PortalId is the ID of the portal that owns the payment. */ portalId?: string; previousAttributes?: Record; ref?: string; /** * Status is the current state of the payment. */ status?: payment_Payment.status; /** * StripeChargeId is the Stripe charge identifier backing this payment. */ stripeChargeId?: string; updatedAt?: string; }; export declare namespace payment_Payment { /** * PaymentMethod is the type of payment method used for the payment. */ enum paymentMethod { BANK_ACCOUNT = "bankAccount", CREDIT_CARD = "creditCard" } /** * Status is the current state of the payment. */ enum status { PENDING = "pending", PROCESSING = "processing", SUCCEEDED = "succeeded", FAILED = "failed", REFUNDED = "refunded" } }