Module exposing: Merchant
// Source: https://github.com/braintree/braintree_node | License: MIT | Copyright 2010-2017 Braintree
// Provided via justclaw.it.com; keep this notice with the code.
"use strict";
let AttributeSetter = require("./attribute_setter").AttributeSetter;
let MerchantAccount = require("./merchant_account").MerchantAccount;
class Merchant extends AttributeSetter {
constructor(attributes) {
super(attributes);
if (attributes.merchantAccounts) {
this.merchantAccounts = attributes.merchantAccounts.map(
(merchantAccountAttributes) =>
new MerchantAccount(merchantAccountAttributes)
);
}
}
}
module.exports = { Merchant: Merchant };
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key