@fgiust Yeah, I know it returns dw.order.PaymentInstrument, but I think in the context of LineItemCtnr, I think getPaymentInstruments actually returns dw.order.OrderPaymentInstrument, which is a subclass of PaymentInstrument. The important but subtle difference is that OrderPaymentInstrument subclass contains info related to payment for that order (getPaymentTransaction exists on OrderPaymentInstrument but not on PaymentInstrument)
Reopening as new issue.
@fgiust Yeah, I know it returns
dw.order.PaymentInstrument
, but I think in the context of LineItemCtnr, I thinkgetPaymentInstruments
actually returnsdw.order.OrderPaymentInstrument
, which is a subclass ofPaymentInstrument
. The important but subtle difference is thatOrderPaymentInstrument
subclass contains info related to payment for that order (getPaymentTransaction
exists on OrderPaymentInstrument but not on PaymentInstrument)Originally posted by @shannontan-bolt in https://github.com/openmindlab/sfcc-dts/issues/4#issuecomment-692292250