import { lazy , object , Schema , string } from '../schema' ; import { LoyaltyEventAccumulatePoints , loyaltyEventAccumulatePointsSchema , } from './loyaltyEventAccumulatePoints' ; /** A request to accumulate points for a purchase. */ export interface AccumulateLoyaltyPointsRequest { /** Provides metadata when the event `type` is `ACCUMULATE_POINTS`. */ accumulatePoints : LoyaltyEventAccumulatePoints ; /**
     * A unique string that identifies the `AccumulateLoyaltyPoints` request.
     * Keys can be any valid string but must be unique for every request.
     */ idempotencyKey : string ; /** The [location]($m/Location) where the purchase was made. */ locationId : string ; } export const accumulateLoyaltyPointsRequestSchema = object ( { accumulatePoints : [ 'accumulate_points' , lazy ( ( ) => loyaltyEventAccumulatePointsSchema ) , ] , idempotencyKey : [ 'idempotency_key' , string ( ) ] , locationId : [ 'location_id' , string ( ) ] , } ) ;