-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes to bankcard list query parameters for v4
- Loading branch information
Showing
7 changed files
with
90 additions
and
34 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
34 changes: 32 additions & 2 deletions
34
src/main/java/com/hyperwallet/clientsdk/model/HyperwalletBankCardListPaginationOptions.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 |
---|---|---|
@@ -1,2 +1,32 @@ | ||
package com.hyperwallet.clientsdk.model;public class HyperwalletBankCardListPaginationOptions { | ||
} | ||
package com.hyperwallet.clientsdk.model; | ||
|
||
public class HyperwalletBankCardListPaginationOptions extends HyperwalletPaginationOptions{ | ||
private HyperwalletBankCard.Type type; | ||
private HyperwalletBankCard.Status status; | ||
|
||
public HyperwalletBankCard.Status getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(HyperwalletBankCard.Status status) { | ||
this.status = status; | ||
} | ||
|
||
public HyperwalletBankCardListPaginationOptions status(HyperwalletBankCard.Status status) { | ||
this.status = status; | ||
return this; | ||
} | ||
|
||
public void setType(HyperwalletBankCard.Type type) { | ||
this.type = type; | ||
} | ||
|
||
public HyperwalletBankCard.Type getType() { | ||
return type; | ||
} | ||
|
||
public HyperwalletBankCardListPaginationOptions type(HyperwalletBankCard.Type type) { | ||
this.type = type; | ||
return this; | ||
} | ||
} |
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
17 changes: 16 additions & 1 deletion
17
...st/java/com/hyperwallet/clientsdk/model/HyperwalletBankCardListPaginationOptionsTest.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 |
---|---|---|
@@ -1,2 +1,17 @@ | ||
package com.hyperwallet.clientsdk.model;public class HyperwalletBankCardListPaginationOptionsTest { | ||
package com.hyperwallet.clientsdk.model; | ||
|
||
import com.hyperwallet.clientsdk.model.HyperwalletBankCard.Type; | ||
|
||
public class HyperwalletBankCardListPaginationOptionsTest extends BaseModelTest<HyperwalletBankCardListPaginationOptions> { | ||
protected HyperwalletBankCardListPaginationOptions createBaseModel() { | ||
HyperwalletBankCardListPaginationOptions options = new HyperwalletBankCardListPaginationOptions(); | ||
options | ||
.type(Type.BANK_CARD) | ||
.status(HyperwalletBankCard.Status.ACTIVATED); | ||
return options; | ||
} | ||
|
||
protected Class<HyperwalletBankCardListPaginationOptions> createModelClass() { | ||
return HyperwalletBankCardListPaginationOptions.class; | ||
} | ||
} |
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