Environment
1.4
Describe the bug
When fetching transactions using list transactions API the SDK throws an error:
Invalid value 'INVOICE_ID' for 'item_related_identifier_name', must be one of
'ORDER_ADJUSTMENT_ITEM_ID', 'COUPON_ID', 'REMOVAL_SHIPMENT_ITEM_ID', 'TRANSACTION_ID'
To Reproduce
Steps to reproduce the behavior:
- Call listTransactions function from SpApi\Api\finances\v2024_06_19\DefaultApi
- SDK throws the above error of "Invalid value 'INVOICE_ID' for 'item_related_identifier_name', must be one of 'ORDER_ADJUSTMENT_ITEM_ID', 'COUPON_ID', 'REMOVAL_SHIPMENT_ITEM_ID', 'TRANSACTION_ID'"
Expected behavior
I made a call from Postman to fetch the transaction and it worked.
Additional context
After adding this constant and including it in getItemRelatedIdentifierNameAllowableValues(), the request works as expected.
public const ITEM_RELATED_IDENTIFIER_NAME_INVOICE_ID = 'INVOICE_ID';
also add this line to getItemRelatedIdentifierNameAllowableValues function