Skip to content

Commit

Permalink
feat(ContractNegotiation): add checksum (spec)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliapampus committed Apr 20, 2023
1 parent 9eb20bc commit e05ee9e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class ContractNegotiation extends StatefulEntity<ContractNegotiation> {
private String correlationId;
private String counterPartyId;
private String counterPartyAddress;
private String checksum;
private String protocol;
private Type type = CONSUMER;
private ContractAgreement contractAgreement;
Expand All @@ -83,6 +84,10 @@ public String getCounterPartyAddress() {
return counterPartyAddress;
}

public String getChecksum() {
return checksum;
}

/**
* Returns the correlation id sent by the client or null if this is a client-side negotiation.
*/
Expand Down Expand Up @@ -416,6 +421,11 @@ public Builder counterPartyAddress(String address) {
return this;
}

public Builder checksum(String checksum) {
entity.checksum = checksum;
return this;
}

public Builder correlationId(String id) {
entity.correlationId = id;
return this;
Expand Down

0 comments on commit e05ee9e

Please sign in to comment.