-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from Mangopay/feature/quoted_conversion
Quoted conversion
- Loading branch information
Showing
5 changed files
with
103 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.mangopay.entities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* A conversion, at the rate guaranteed by its quote, of the debited funds to the credited wallet. | ||
*/ | ||
public class QuotedConversion extends Transaction { | ||
|
||
@SerializedName("QuoteId") | ||
private String quoteId; | ||
|
||
@SerializedName("ConversionRateResponse") | ||
private ConversionRate conversionRateResponse; | ||
|
||
@SerializedName("CreditedWalletId") | ||
private String creditedWalletId; | ||
|
||
@SerializedName("DebitedWalletId") | ||
private String debitedWalletId; | ||
|
||
public String getQuoteId() { | ||
return quoteId; | ||
} | ||
|
||
public void setQuoteId(String quoteId) { | ||
this.quoteId = quoteId; | ||
} | ||
|
||
public ConversionRate getConversionRateResponse() { | ||
return conversionRateResponse; | ||
} | ||
|
||
public void setConversionRateResponse(ConversionRate conversionRateResponse) { | ||
this.conversionRateResponse = conversionRateResponse; | ||
} | ||
|
||
public String getCreditedWalletId() { | ||
return creditedWalletId; | ||
} | ||
|
||
public void setCreditedWalletId(String creditedWalletId) { | ||
this.creditedWalletId = creditedWalletId; | ||
} | ||
|
||
public String getDebitedWalletId() { | ||
return debitedWalletId; | ||
} | ||
|
||
public void setDebitedWalletId(String debitedWalletId) { | ||
this.debitedWalletId = debitedWalletId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters