-
Notifications
You must be signed in to change notification settings - Fork 22
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 #66 from uphold/feature/transaction-fees-model
Add transaction fees model
- Loading branch information
Showing
5 changed files
with
145 additions
and
17 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
85 changes: 85 additions & 0 deletions
85
src/app/src/main/java/com/uphold/uphold_android_sdk/model/transaction/Fee.java
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,85 @@ | ||
package com.uphold.uphold_android_sdk.model.transaction; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Fee model. | ||
*/ | ||
|
||
public class Fee implements Serializable { | ||
|
||
private final String amount; | ||
private final String currency; | ||
private final String percentage; | ||
private final String target; | ||
private final String type; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param amount The amount. | ||
* @param currency The currency. | ||
* @param percentage The percentage. | ||
* @param target The target. | ||
* @param type The type. | ||
*/ | ||
|
||
public Fee(String amount, String currency, String percentage, String target, String type) { | ||
this.amount = amount; | ||
this.currency = currency; | ||
this.percentage = percentage; | ||
this.target = target; | ||
this.type = type; | ||
} | ||
|
||
/** | ||
* Gets the amount. | ||
* | ||
* @return the amount. | ||
*/ | ||
|
||
public String getAmount() { | ||
return amount; | ||
} | ||
|
||
/** | ||
* Gets the currency. | ||
* | ||
* @return the currency. | ||
*/ | ||
|
||
public String getCurrency() { | ||
return currency; | ||
} | ||
|
||
/** | ||
* Gets the percentage. | ||
* | ||
* @return the percentage. | ||
*/ | ||
|
||
public String getPercentage() { | ||
return percentage; | ||
} | ||
|
||
/** | ||
* Gets the target. | ||
* | ||
* @return the target, | ||
*/ | ||
|
||
public String getTarget() { | ||
return target; | ||
} | ||
|
||
/** | ||
* Gets the type. | ||
* | ||
* @return the type. | ||
*/ | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
} |
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