generated from openMF/ph-ee-start-here
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/org/mifos/connector/common/gsma/dto/CustomData.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,15 @@ | ||
package org.mifos.connector.common.gsma.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
@NoArgsConstructor | ||
public class CustomData { | ||
public String key; | ||
public String value; | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/java/org/mifos/connector/common/gsma/dto/GsmaTransfer.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,34 @@ | ||
package org.mifos.connector.common.gsma.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
public class GsmaTransfer { | ||
@JsonProperty("requestingOrganisationTransactionReference") | ||
private String requestingOrganisationTransactionReference; | ||
@JsonProperty("subType") | ||
private String subType; | ||
@JsonProperty("type") | ||
private String type; | ||
@JsonProperty("amount") | ||
private String amount; | ||
@JsonProperty("currency") | ||
private String currency; | ||
@JsonProperty("descriptionText") | ||
private String descriptionText; | ||
@JsonProperty("requestDate") | ||
private String requestDate; | ||
@JsonProperty("customData") | ||
private List<CustomData> customData; | ||
@JsonProperty("payer") | ||
private List<Party> payer; | ||
@JsonProperty("payee") | ||
private List<Party> payee; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/org/mifos/connector/common/gsma/dto/Party.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,15 @@ | ||
package org.mifos.connector.common.gsma.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
@NoArgsConstructor | ||
public class Party { | ||
public String partyIdType; | ||
public String partyIdIdentifier; | ||
} |