use of uk.gov.pay.connector.events.model.charge.CancelledByUser in project pay-connector by alphagov.
the class QueueMessageContractTest method verifyCancelledByUserEvent.
@PactVerifyProvider("a cancelled by user message")
public String verifyCancelledByUserEvent() throws JsonProcessingException {
ChargeEntity charge = aValidChargeEntity().withTransactionId("gateway_transaction_id").withGatewayTransactionId("gateway_transaction_id").build();
ChargeEventEntity chargeEventEntity = aValidChargeEventEntity().withCharge(charge).build();
CancelledByUser event = CancelledByUser.from(chargeEventEntity);
return event.toJsonString();
}
Aggregations