concept consumer contract in category java

This is an excerpt from Manning's book Testing Java Microservices: Using Arquillian, Hoverfly, AssertJ, JUnit, Selenium, and Mockito.
On the other hand, to fix the problem of one-size-fits-all contracts without forcing the provider team to define a complete contract, you can change the ownership of the contract by making the developers of the consumer service define what they need and send that contract to the provider team to implement. Such a contract is called a consumer contract because it belongs to the consumer.
Consumer contracts define the consumer’s needs from the consumer’s point of view. Hence this contract applies only to that individual consumer and its particular use case. Consumer contracts can be used to complete an existing provider contract (if there is one), or they can help develop a new one. Figure 6.8 shows that there’s one consumer contract for each provider-consumer relationship instead of a single contract for all consumers.
As an example, consumer contracts might be beneficial for an internal checkout service in an organization, where the pace of the service’s evolution will be controlled by the provider, but the data pulled from this service is used in different contexts. These contexts may evolve individually, but there’s an internal locus of control and evolution.