developer:soap-1.4:objects:currencyconversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
developer:soap-1.4:objects:currencyconversion [2010/08/03 15:47]
irina
developer:soap-1.4:objects:currencyconversion [2010/08/20 10:55]
irina
Line 13: Line 13:
  
 ^Type    ^Name     ​^Description ​    ^ ^Type    ^Name     ​^Description ​    ^
-|integer ​|FromCurrency |Code of currency that transaction amount is being converted from.|+|string ​|FromCurrency |Code of currency that transaction amount is being converted from.|
 |double |FromAmount |Amount being converted. This amount is shown in the original currency, before the conversion takes place (FromCurrency).| |double |FromAmount |Amount being converted. This amount is shown in the original currency, before the conversion takes place (FromCurrency).|
-|integer ​|Currency |Code of currency that transaction amount is being converted to.|+|string ​|Currency |Code of currency that transaction amount is being converted to.|
 |double |Rate |Conversion rate used.| |double |Rate |Conversion rate used.|
 |double |Amount |Amount converted to new currency. This amount is shown in the new currency that the amount has been converted to (Currency).| |double |Amount |Amount converted to new currency. This amount is shown in the new currency that the amount has been converted to (Currency).|
Line 22: Line 22:
  
 [[..:​methods:​currencyConversion]] [[..:​methods:​currencyConversion]]
- 
 [[..:​methods:​bulkCurrencyConversion]] ​ [[..:​methods:​bulkCurrencyConversion]] ​
  
Line 42: Line 41:
 </​code> ​ </​code> ​
  
 +==== .NET C# ====
 +<code c>
 +usaepay.CurrencyConversion response = new usaepay.CurrencyConversion();​
 + 
 +            try
 +            {
 +                response = client.currencyConversion(token,​ from, to, amount);
 +                MessageBox.Show(string.Concat(response.Amount));​
 +            }
 +
 +</​code>​
  
 ==== XML ==== ==== XML ====
Line 48: Line 58:
 <​currencyConversionReturn xsi:​type="​ns1:​CurrencyConversion">​ <​currencyConversionReturn xsi:​type="​ns1:​CurrencyConversion">​
 <Amount xsi:​type="​xsd:​double">​34.19</​Amount>​ <Amount xsi:​type="​xsd:​double">​34.19</​Amount>​
-<​Currency xsi:​type="​xsd:​integer">​978</​Currency>​+<​Currency xsi:​type="​xsd:​string">​978</​Currency>​
 <​FromAmount xsi:​type="​xsd:​double">​50</​FromAmount>​ <​FromAmount xsi:​type="​xsd:​double">​50</​FromAmount>​
-<​FromCurrency xsi:​type="​xsd:​integer">​840</​FromCurrency>​+<​FromCurrency xsi:​type="​xsd:​string">​840</​FromCurrency>​
 <Rate xsi:​type="​xsd:​double">​0.68383862</​Rate>​ <Rate xsi:​type="​xsd:​double">​0.68383862</​Rate>​
 </​currencyConversionReturn>​ </​currencyConversionReturn>​
Line 58: Line 68:
  
 ^ Version ^ Change ^ ^ Version ^ Change ^
 +| [[developer:​soap-1.4:​objects:​currencyconversion|1.4]] | Currency and FromCurrency parameters changed from integer to string |
 | [[developer:​soap-1.1:​objects:​currencyconversion|1.1]] | Method added prior to soap-1.1 | | [[developer:​soap-1.1:​objects:​currencyconversion|1.1]] | Method added prior to soap-1.1 |
developer/soap-1.4/objects/currencyconversion.txt ยท Last modified: 2010/09/09 16:56 by irina

Page Tools