UNPKG

braintree

Version:

A library for server-side integrating with Braintree.

19 lines (14 loc) 485 B
"use strict"; let AttributeSetter = require("./attribute_setter").AttributeSetter; let ExchangeRateQuote = require("./exchange_rate_quote").ExchangeRateQuote; class ExchangeRateQuotePayload extends AttributeSetter { constructor(attributes) { super(attributes); if (attributes.quotes) { this.quotes = attributes.quotes.map( (quote) => new ExchangeRateQuote(quote) ); } } } module.exports = { ExchangeRateQuotePayload: ExchangeRateQuotePayload };