"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const schema_1 = require("../schema");
const action = {
    title: 'Purchase',
    description: 'Fire this event upon successful completion of a purchase.',
    defaultSubscription: 'type = "track" and event = "Order Completed"',
    fields: {
        ...(0, schema_1.priceFields)('total'),
        ...schema_1.orderInfoFields,
        isNewCustomer: {
            label: 'New customer?',
            description: 'Whether or not this customer is a first-time buyer from your store',
            type: 'boolean',
            required: false
        },
        ...schema_1.clientFields
    },
    perform: (0, utils_1.buildPerformer)('purchase')
};
exports.default = action;
//# sourceMappingURL=index.js.map