Replies: 1 comment 1 reply
-
I just saw in the Pact V4, we have the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I try to implement Pact in my organisation but I face an issue when I try to verify the contract. I need your inputs on what could be the right way to approach when a request returns a list of mixed elements.
For example, let's say we have a list of payment means. We can have a Credit Card, a Paypal account or a Wire Transfer account.
Each payment mean is identified by a payment method
CREDIT_CARD, PAYPAL, WIRE_TRANSFER
.Each payment mean has some specific fields. A credit card is identified by a credit card number, and expiry date, a card type and a card holder name whereas a Paypal account has just the email and the WireTransfer, the IBAN. So our request can returns something like this
I know we can tackle this issue by expecting to have the same value returned by the provider but if it is not the case. The provider can return different combinaison of value.
How I can define that in my contract ?
Beta Was this translation helpful? Give feedback.
All reactions