forked from OpenBankProject/OBP-Hola
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/Add SEPA payment at OBP Flow
- Loading branch information
1 parent
e347ee6
commit 41acea7
Showing
3 changed files
with
247 additions
and
2 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
97 changes: 97 additions & 0 deletions
97
src/main/java/com/openbankproject/model/PostJsonCreateTransactionRequestSepa.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,97 @@ | ||
package com.openbankproject.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Iban { | ||
@JsonProperty("iban") | ||
private String iban; | ||
|
||
public String getIban() { | ||
return iban; | ||
} | ||
|
||
public void setIban(String iban) { | ||
this.iban = iban; | ||
} | ||
} | ||
|
||
|
||
public class PostJsonCreateTransactionRequestSepa { | ||
@JsonProperty("to") | ||
private Iban to; | ||
|
||
@JsonProperty("value") | ||
private Value value; | ||
|
||
@JsonProperty("description") | ||
private String description; | ||
|
||
@JsonProperty("charge_policy") | ||
private String chargePolicy; | ||
|
||
@JsonProperty("future_date") | ||
private String futureDate; | ||
|
||
public PostJsonCreateTransactionRequestSepa(String iban, | ||
String currency, | ||
String amount, | ||
String description, | ||
String chargePolicy, | ||
String futureDate) { | ||
Iban to = new Iban(); | ||
to.setIban(iban); | ||
this.to = to; | ||
|
||
Value value = new Value(); | ||
value.setCurrency(currency); | ||
value.setAmount(amount); | ||
this.value = value; | ||
|
||
this.description = description; | ||
this.chargePolicy = chargePolicy; | ||
this.futureDate = futureDate; | ||
|
||
|
||
} | ||
|
||
public Iban getTo() { | ||
return to; | ||
} | ||
|
||
|
||
public void setTo(Iban to) { | ||
this.to = to; | ||
} | ||
|
||
public Value getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(Value value) { | ||
this.value = value; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getChargePolicy() { | ||
return chargePolicy; | ||
} | ||
|
||
public void setChargePolicy(String chargePolicy) { | ||
this.chargePolicy = chargePolicy; | ||
} | ||
|
||
public String getFutureDate() { | ||
return futureDate; | ||
} | ||
|
||
public void setFutureDate(String futureDate) { | ||
this.futureDate = futureDate; | ||
} | ||
} |
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