-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PaymentInstrumentType filter on TransactionSearchRequest always returns empty result #117
Comments
UpdateI checked how those values get serialized to XML and found a difference: using <?xml version="1.0"?>
<search>
<payment-instrument-type type="array">
<item>PAYPAL_ACCOUNT</item>
</payment-instrument-type>
</search> while manually using <?xml version="1.0"?>
<search>
<payment-instrument-type type="array">
<item>paypal_account</item>
</payment-instrument-type>
</search> Similar there is a difference for the <?xml version="1.0"?>
<search>
<credit-card-card-type type="array">
<item>MASTER_CARD</item>
</credit-card-card-type>
</search> while using <?xml version="1.0"?>
<search>
<credit-card-card-type type="array">
<item>MasterCard</item>
</credit-card-card-type>
</search> So the mixed-case variant is the right one compared to your docs, but I am wondering why the all-caps version returns any result at all. For the |
Hey @peter-sabath Thanks for the thorough details on the issue. There's a few things at play here, so I figured I'd try to address them one at a time.
That's a great question. The API the search portion of the SDK hits is maintained by another team, so I don't have too much knowledge around it's inner workings. I'd assume it's a quirk related to some older SDK version, but I can't say for sure. We'll take a look with that team and see if we can work in unison to make it a bit more failure resistant to slightly-off values to prevent confusion in the future.
A great find. I also can't find a reason as to why it's currently typed as a Ideally we'd move it over to the same As a stop gap, I'm going to test if we can at least control the downcase scenario with |
For our internal notekeeping, ticket number 1614 |
General information
Issue description
We have a problem with
PaymentInstrumentType
filter on anTransactionSearchRequest
using
tsr.PaymentInstrumentType.Is(PaymentInstrumentType.PAYPAL_ACCOUNT.ToString());
results in an empty result set.looking at the source I don't understand why this is still a
MultipleValueNode<TransactionSearchRequest, string>
typed filter and not anEnumMultipleValueNode<TransactionSearchRequest, PaymentInstrumentType>
one as it is used for other enum based filters.Another unexpected behavior is that using
tsr.CreditCardCardType.Is(CreditCardCardType.MASTER_CARD.ToString());
returns different results thantsr.CreditCardCardType.Is(CreditCardCardType.MASTER_CARD);
The string typed one returns the expected results, the "older" string-based usage returns fewer elements.
The text was updated successfully, but these errors were encountered: