-
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.
- Loading branch information
1 parent
346c0b8
commit 310503d
Showing
10 changed files
with
357 additions
and
162 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
48 changes: 48 additions & 0 deletions
48
src/main/java/com/mangopay/entities/CreateConversionQuote.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,48 @@ | ||
package com.mangopay.entities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.mangopay.core.Dto; | ||
import com.mangopay.core.Money; | ||
|
||
public class CreateConversionQuote extends Dto { | ||
@SerializedName("Duration") | ||
private int duration; | ||
@SerializedName("DebitedFunds") | ||
private Money debitedFunds; | ||
@SerializedName("CreditedFunds") | ||
private Money creditedFunds; | ||
@SerializedName("TAG") | ||
private String tag; | ||
|
||
public int getDuration() { | ||
return duration; | ||
} | ||
|
||
public void setDuration(int duration) { | ||
this.duration = duration; | ||
} | ||
|
||
public Money getDebitedFunds() { | ||
return debitedFunds; | ||
} | ||
|
||
public void setDebitedFunds(Money debitedFunds) { | ||
this.debitedFunds = debitedFunds; | ||
} | ||
|
||
public Money getCreditedFunds() { | ||
return creditedFunds; | ||
} | ||
|
||
public void setCreditedFunds(Money creditedFunds) { | ||
this.creditedFunds = creditedFunds; | ||
} | ||
|
||
public String getTag() { | ||
return tag; | ||
} | ||
|
||
public void setTag(String tag) { | ||
this.tag = tag; | ||
} | ||
} |
107 changes: 107 additions & 0 deletions
107
src/main/java/com/mangopay/entities/CreateInstantConversion.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,107 @@ | ||
package com.mangopay.entities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.mangopay.core.Dto; | ||
import com.mangopay.core.Money; | ||
|
||
public class CreateInstantConversion extends Dto { | ||
|
||
/** | ||
* The unique identifier of the user at the source of the transaction. | ||
*/ | ||
@SerializedName("AuthorId") | ||
public String authorId; | ||
|
||
/** | ||
* The unique identifier of the debited wallet. | ||
*/ | ||
@SerializedName("DebitedWalletId") | ||
public String debitedWalletId; | ||
|
||
/** | ||
* The unique identifier of the credited wallet | ||
*/ | ||
@SerializedName("CreditedWalletId") | ||
public String creditedWalletId; | ||
|
||
/** | ||
* The sell funds | ||
*/ | ||
@SerializedName("DebitedFunds") | ||
public Money debitedFunds; | ||
|
||
/** | ||
* The buy funds | ||
*/ | ||
@SerializedName("CreditedFunds") | ||
public Money creditedFunds; | ||
|
||
/** | ||
* Information about the fees taken by the platform for | ||
* this transaction (and hence transferred to the Fees Wallet). | ||
*/ | ||
@SerializedName("Fees") | ||
public Money fees; | ||
|
||
/** | ||
* Custom data. | ||
*/ | ||
@SerializedName("Tag") | ||
private String tag; | ||
|
||
public String getAuthorId() { | ||
return authorId; | ||
} | ||
|
||
public void setAuthorId(String authorId) { | ||
this.authorId = authorId; | ||
} | ||
|
||
public String getDebitedWalletId() { | ||
return debitedWalletId; | ||
} | ||
|
||
public void setDebitedWalletId(String debitedWalletId) { | ||
this.debitedWalletId = debitedWalletId; | ||
} | ||
|
||
public String getCreditedWalletId() { | ||
return creditedWalletId; | ||
} | ||
|
||
public void setCreditedWalletId(String creditedWalletId) { | ||
this.creditedWalletId = creditedWalletId; | ||
} | ||
|
||
public Money getDebitedFunds() { | ||
return debitedFunds; | ||
} | ||
|
||
public void setDebitedFunds(Money debitedFunds) { | ||
this.debitedFunds = debitedFunds; | ||
} | ||
|
||
public Money getCreditedFunds() { | ||
return creditedFunds; | ||
} | ||
|
||
public void setCreditedFunds(Money creditedFunds) { | ||
this.creditedFunds = creditedFunds; | ||
} | ||
|
||
public Money getFees() { | ||
return fees; | ||
} | ||
|
||
public void setFees(Money fees) { | ||
this.fees = fees; | ||
} | ||
|
||
public String getTag() { | ||
return tag; | ||
} | ||
|
||
public void setTag(String tag) { | ||
this.tag = tag; | ||
} | ||
} |
Oops, something went wrong.