import { number , object , optional , Schema , string } from '../schema' ; /** Provides metadata when the event `type` is `ACCUMULATE_POINTS`. */ export interface LoyaltyEventAccumulatePoints { /** The ID of the [loyalty program]($m/LoyaltyProgram). */ loyaltyProgramId ? : string ; /** The number of points accumulated by the event. */ points ? : number ; /**
     * The ID of the [order]($m/Order) for which the buyer accumulated the points.
     * This field is returned only if the Orders API is used to process orders.
     */ orderId ? : string ; } export const loyaltyEventAccumulatePointsSchema = object ( { loyaltyProgramId : [ 'loyalty_program_id' , optional ( string ( ) ) ] , points : [ 'points' , optional ( number ( ) ) ] , orderId : [ 'order_id' , optional ( string ( ) ) ] , } ) ;