const Eq = S.equivalence(PaymentMatchRequest);
const a = new PaymentMatchRequest({
clientId: "foo",
identifiers: ["bar"],
period: { start: new Date("2025-01-01"), end: new Date("2025-01-02") },
});
const b = new PaymentMatchRequest({
clientId: "foo",
identifiers: ["bar"],
period: { start: new Date("2025-01-01"), end: new Date("2025-01-02") },
});
const equals = Eq(a, b); // holds true
const Eq = S.equivalence(PaymentMatchRequest);
const a = new PaymentMatchRequest({
clientId: "foo",
identifiers: ["bar"],
period: { start: new Date("2025-01-01"), end: new Date("2025-01-02") },
});
const b = new PaymentMatchRequest({
clientId: "foo",
identifiers: ["bar"],
period: { start: new Date("2025-01-01"), end: new Date("2025-01-02") },
});
const equals = Eq(a, b); // holds true