/** * NOTE: This class is auto generated by DANA Indonesia. * Do not edit the class manually. */ import type { ValidationErrorContext } from '../../../runtime'; import type { Money } from './Money'; /** * Information about the payment promotion that was applied * @export * @interface PaymentPromoInfo */ export interface PaymentPromoInfo { /** * Promotion identifier * @type {string} * @memberof PaymentPromoInfo */ promoId: string; /** * Promotion name * @type {string} * @memberof PaymentPromoInfo */ promoName: string; /** * Type of promotion * @type {string} * @memberof PaymentPromoInfo */ promoType: PaymentPromoInfoPromoTypeEnum; /** * Savings amount from this promotion. Contains value (amount including cents) and currency (code based on ISO) * @type {Money} * @memberof PaymentPromoInfo */ savingsAmount: Money; } /** * @export */ export declare const PaymentPromoInfoPromoTypeEnum: { readonly CashBack: "CASH_BACK"; readonly Discount: "DISCOUNT"; readonly Voucher: "VOUCHER"; readonly Point: "POINT"; }; export type PaymentPromoInfoPromoTypeEnum = typeof PaymentPromoInfoPromoTypeEnum[keyof typeof PaymentPromoInfoPromoTypeEnum] | ''; /** * Check if a given object implements the PaymentPromoInfo interface. */ export declare function instanceOfPaymentPromoInfo(value: object): value is PaymentPromoInfo; export declare function PaymentPromoInfoFromJSON(json: any): PaymentPromoInfo; export declare function PaymentPromoInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentPromoInfo; export declare function PaymentPromoInfoToJSON(json: any): PaymentPromoInfo; export declare function PaymentPromoInfoToJSONTyped(value?: PaymentPromoInfo | null, ignoreDiscriminator?: boolean): any; export declare function validatePaymentPromoInfo(value: PaymentPromoInfo): ValidationErrorContext[];