"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Payment = void 0;

var _propTypes = _interopRequireDefault(require("prop-types"));

var _paymentDetails = require("./payment-details");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * @memberOf module:types
 * @typedef {Object} Payment
 * @property {String} id The payment id.
 * @property {Number} amount The payment amount.
 * @property {String} methodId The payment method id.
 * @property {module:types.PaymentDetails} details The customer's payment details for the specified payment method.
 */
var Payment = {
  id: _propTypes["default"].string.isRequired,
  amount: _propTypes["default"].number.isRequired,
  methodId: _propTypes["default"].string.isRequired,
  details: _propTypes["default"].shape(_paymentDetails.PaymentDetails)
};
exports.Payment = Payment;