Skip to content

Instantly share code, notes, and snippets.

@esshka
Created April 14, 2016 08:17
Show Gist options
  • Save esshka/33f9da8e778fea7fb1b9b85397908594 to your computer and use it in GitHub Desktop.
Save esshka/33f9da8e778fea7fb1b9b85397908594 to your computer and use it in GitHub Desktop.
class CurrencyRateRequestBeanContainer < WashOut::Type
type_name 'currencyRateRequestBean'
map :currencyRateRequest => {
date: :datetime,
sourceCurrency: :string,
targetCurrency: :string
}
end
class GetCurrencyRates < WashOut::Type
map :currencyRatesRequest => CurrencyRateRequestBeanContainer
end
class CurrencyRateResponseBeanContainer < WashOut::Type
type_name 'currencyRateResponseBean'
map :currencyRateResponse => {
actualDate: :datetime,
conversionRate: :decimal,
requestDate: :datetime,
sourceCurrency: :string,
targetCurrency: :string
}
end
class GetCurrencyRatesResponse < WashOut::Type
map :return => CurrencyRateResponseBeanContainer
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment