http-get endpoints for partner, debitor and memberhip-number #135
@ -17,9 +17,9 @@ public class CreateSepaMandateForDebitor extends UseCase<CreateSepaMandateForDeb
|
|||||||
protected HttpResponse run() {
|
protected HttpResponse run() {
|
||||||
|
|
||||||
obtain("Debitor: Test AG - main debitor", () ->
|
obtain("Debitor: Test AG - main debitor", () ->
|
||||||
httpGet("/api/hs/office/debitors?debitorNumber=&{debitorNumber}")
|
httpGet("/api/hs/office/debitors/%{debitorNumber}")
|
||||||
.expecting(OK).expecting(JSON),
|
.expecting(OK).expecting(JSON),
|
||||||
response -> response.expectArrayElements(1).getFromBody("[0].uuid")
|
response -> response.getFromBody("uuid")
|
||||||
);
|
);
|
||||||
|
|
||||||
obtain("BankAccount: Test AG - debit bank account", () ->
|
obtain("BankAccount: Test AG - debit bank account", () ->
|
||||||
|
@ -18,9 +18,8 @@ public class CancelMembership extends UseCase<CancelMembership> {
|
|||||||
protected HttpResponse run() {
|
protected HttpResponse run() {
|
||||||
|
|
||||||
obtain("Membership: %{memberNumber}", () ->
|
obtain("Membership: %{memberNumber}", () ->
|
||||||
httpGet("/api/hs/office/memberships?memberNumber=%{memberNumber}")
|
httpGet("/api/hs/office/memberships/%{memberNumber}"),
|
||||||
.expectArrayElements(1),
|
response -> response.getFromBody("uuid")
|
||||||
response -> response.expectArrayElements(1).getFromBody("[0].uuid")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return withTitle("Patch the New Status Into the Membership", () ->
|
return withTitle("Patch the New Status Into the Membership", () ->
|
||||||
|
@ -18,9 +18,9 @@ public abstract class CreateCoopAssetsTransaction extends UseCase<CreateCoopAsse
|
|||||||
protected HttpResponse run() {
|
protected HttpResponse run() {
|
||||||
|
|
||||||
obtain("#{Find }membershipUuid", () ->
|
obtain("#{Find }membershipUuid", () ->
|
||||||
httpGet("/api/hs/office/memberships?memberNumber=&{memberNumber}")
|
httpGet("/api/hs/office/memberships/%{memberNumber}")
|
||||||
.expecting(OK).expecting(JSON).expectArrayElements(1),
|
.expecting(OK).expecting(JSON),
|
||||||
response -> response.getFromBody("$[0].uuid")
|
response -> response.getFromBody("uuid")
|
||||||
);
|
);
|
||||||
|
|
||||||
return withTitle("Create the Coop-Assets-%{transactionType} Transaction", () ->
|
return withTitle("Create the Coop-Assets-%{transactionType} Transaction", () ->
|
||||||
|
@ -18,9 +18,9 @@ public abstract class CreateCoopSharesTransaction extends UseCase<CreateCoopShar
|
|||||||
protected HttpResponse run() {
|
protected HttpResponse run() {
|
||||||
|
|
||||||
obtain("#{Find }membershipUuid", () ->
|
obtain("#{Find }membershipUuid", () ->
|
||||||
httpGet("/api/hs/office/memberships?memberNumber=&{memberNumber}")
|
httpGet("/api/hs/office/memberships/%{memberNumber}")
|
||||||
.expecting(OK).expecting(JSON).expectArrayElements(1),
|
.expecting(OK).expecting(JSON),
|
||||||
response -> response.getFromBody("$[0].uuid")
|
response -> response.getFromBody("uuid")
|
||||||
);
|
);
|
||||||
|
|
||||||
return withTitle("Create the Coop-Shares-%{transactionType} Transaction", () ->
|
return withTitle("Create the Coop-Shares-%{transactionType} Transaction", () ->
|
||||||
|
Loading…
Reference in New Issue
Block a user