Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- implemented the cancel payment functionality - added payment details, card details etc.
- Loading branch information
1 parent
3cb4785
commit 319741e
Showing
9 changed files
with
353 additions
and
58 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
27 changes: 27 additions & 0 deletions
27
de.metas.payment.paypalplus/src/main/java/de/metas/paypalplus/model/BillingAddress.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,27 @@ | ||
package de.metas.paypalplus.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import lombok.Value; | ||
|
||
@Value | ||
@Getter | ||
@Builder | ||
public class BillingAddress | ||
{ | ||
@NonNull | ||
String city; | ||
|
||
@NonNull | ||
String countryCode; | ||
|
||
@NonNull | ||
String address; | ||
|
||
@NonNull | ||
String postalCode; | ||
|
||
@NonNull | ||
String state; | ||
} |
32 changes: 32 additions & 0 deletions
32
de.metas.payment.paypalplus/src/main/java/de/metas/paypalplus/model/CreditCard.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,32 @@ | ||
package de.metas.paypalplus.model; | ||
|
||
import lombok.Builder; | ||
import lombok.NonNull; | ||
import lombok.Value; | ||
|
||
@Value | ||
@Builder | ||
public class CreditCard | ||
{ | ||
@NonNull | ||
String firstName; | ||
|
||
@NonNull | ||
String lastName; | ||
|
||
@NonNull | ||
String cardNumber; | ||
|
||
@NonNull | ||
Integer expirationYear; | ||
|
||
@NonNull | ||
Integer expirationMonth; | ||
|
||
@NonNull | ||
String cvv2; | ||
|
||
@NonNull | ||
String cardType; | ||
|
||
} |
Oops, something went wrong.