I need to be able to call the internal functions MarckAsPaid and CancelOrder from the codeunit “Shpfy Orders API.”
I need a codeunit to be created that calls the internal functions of the codeunit.
codeunit 30234 "ShpfyOrders"
{
procedure MarkAsPaid(OrderId: BigInteger; ShopCode: Code[20]): Boolean
var
ShpfyOrdersAPI: Codeunit "Shpfy Orders API";
begin
ShpfyOrdersAPI.MarkAsPaid(OrderId, ShopCode);
end;
procedure CancelOrder(OrderId: BigInteger; ShopCode: Code[20]; NotifyCustomer: Boolean; CancelReason: Enum "Shpfy Cancel Reason"; Refund: Boolean; Restock: Boolean): Boolean
var
ShpfyOrdersAPI: Codeunit "Shpfy Orders API";
begin
ShpfyOrdersAPI.CancelOrder(OrderId, ShopCode, NotifyCustomer, CancelReason, Refund, Restock);
end;
}
