"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

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

var _positiveInteger = require("./positive-integer");

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

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

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
const PaymentDetails = {
  type: _propTypes.default.string,
  holderName: _propTypes.default.string,
  number: _propTypes.default.string,
  maskedNumber: _propTypes.default.string,
  username: _propTypes.default.string,
  expiryMonth: _positiveInteger.PositiveInteger,
  expiryYear: _positiveInteger.PositiveInteger,
  ccv: _propTypes.default.string
  /**
   * @memberOf module:@mobify/commerce-integrations/dist/types
   * @typedef {Object} PaymentDetails Details of the payment method (such as credit card, Paypal, or gift card).
   * @property {String} type The type of payment method (such as Visa or Mastercard).
   * @property {String} holderName The name of the account holder.
   * @property {String} number The card/account number or code (such as credit card number, or gift card code).
   * @property {String} maskedNumber The card/account number or code, masked.
   * @property {String} username The card/account username. (For example, Paypal username.)
   * @property {module:@mobify/commerce-integrations/dist/types.PositiveInteger} expiryMonth The month when the card/account expires, in number form.
   * @property {module:@mobify/commerce-integrations/dist/types.PositiveInteger} expiryYear The year when the card/account expires.
   * @property {String} ccv The credit card's cvv (card verification value).
   */

};
exports.PaymentDetails = PaymentDetails;