Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
braintree / exchange_rate_quote_request.py
Size: Mime:
from braintree.exchange_rate_quote_input import ExchangeRateQuoteInput

class ExchangeRateQuoteRequest(object):
    def __init__(self):
        self.quotes = list()

    def add_exchange_rate_quote_input(self,attributes):
        new_input = ExchangeRateQuoteInput(self,attributes)
        self.quotes.append(new_input)
        return new_input

    def to_graphql_variables(self):
        variables = dict()
        input = dict()
        
        quote_list = list()
        for quote in self.quotes:
            quote_list.append(quote.to_graphql_variables())
        input["quotes"] = quote_list
        variables["exchangeRateQuoteRequest"] = input
        return variables