Codeunit 30228 Shpfy Refunds API
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;Procedures 7
| Procedure | Versions |
|---|---|
| internal Get | new in 22 |
| internal Verify | new in 24 |
| internal Is | new in 24 |
| internal Fill | new in 26 |
| internal Fill | new in 26 |
| internal Has | new in 28 |
| internal Fill | new in 29 |