use of uk.gov.pay.connector.util.AddChargeParams in project pay-connector by alphagov.
the class ContractTest method aChargeWithIdExists.
@State("Gateway account 42 exists and has a charge for £1 with id abc123")
public void aChargeWithIdExists() {
long accountId = 42;
GatewayAccountUtil.setUpGatewayAccount(dbHelper, accountId);
AddChargeParams addChargeParams = anAddChargeParams().withExternalChargeId("abc123").withGatewayAccountId(String.valueOf(accountId)).withTransactionId("aGatewayTransactionId").withAmount(100).withStatus(ChargeStatus.CAPTURED).build();
dbHelper.addCharge(addChargeParams);
dbHelper.updateChargeCardDetails(addChargeParams.getChargeId(), AuthCardDetailsFixture.anAuthCardDetails().build());
}
Aggregations