Codeunit 30228 Shpfy Refunds API

Shopify Connector, Microsoft.Integration.Shopify

Source AL, 362 lines

src/Apps/W1/Shopify/App/src/Order Refunds/Codeunits/ShpfyRefundsAPI.Codeunit.allines 8 to 23 of 362, Copyright (c) Microsoft Corporation. MIT

codeunit 30228 "Shpfy Refunds API"{    var        CommunicationMgt: Codeunit "Shpfy Communication Mgt.";        JsonHelper: Codeunit "Shpfy Json Helper";        RefundEnumConvertor: Codeunit "Shpfy Refund Enum Convertor";        RefundCantCreateCreditMemoErr: Label 'This refund cannot be used to create a credit memo or return order because it has already been considered during order import and reduced the quantity and amounts of the order. Only refunds with a non-zero refunded amount and related to real item returns can be used to create credit memos or return orders.';        RefundHasPendingTransactionsErr: Label 'This refund cannot be used to create a credit memo or return order yet because it has one or more pending transactions. The refunded amount is only final once the related transactions succeed. Retry after the transactions are no longer pending.';    internal procedure GetRefunds(JRefunds: JsonArray)    var        JRefund: JsonToken;    begin        foreach JRefund in JRefunds do            GetRefund(JsonHelper.GetValueAsBigInteger(JRefund, 'legacyResourceId'), JsonHelper.GetValueAsDateTime(JRefund, 'updatedAt'));    end;

All 362 lines

Procedures 7

ProcedureVersions
internal GetRefunds(JRefunds: JsonArray)new in 22
internal VerifyRefundCanCreateCreditMemo(RefundId: BigInteger)new in 24
internal IsNonZeroOrReturnRefund(RefundHeader: Record "Shpfy Refund Header"): Booleannew in 24
internal FillInRefundLine(RefundId: BigInteger; JLine: JsonObject; NonZeroOrReturnRefund: Boolean; ReturnLocations: Dictionary of [BigInteger, BigInteger])new in 26
internal FillInRefundShippingLine(RefundId: BigInteger; JLine: JsonObject)new in 26
internal HasPendingRefundTransactions(RefundId: BigInteger): Booleannew in 28
internal FillInExchangeRefundLine(RefundHeader: Record "Shpfy Refund Header"; OrderLineId: BigInteger; ExchangeQuantity: Integer; JLineItem: JsonObject)new in 29

Changes 1 in 29

List17181920212223242526272829
Procedures2211
internal FillInExchangeRefundLine(RefundHeader: Record "Shpfy Refund Header"; OrderLineId: BigInteger; ExchangeQuantity: Integer; JLineItem: JsonObject)new in 29
added

All 6 changes in 22-29