Skip to content

[BC Idea]: Facade codeunit for Shopify order API implementation #4630

Description

@mpachecodynamizatic

BC Idea Link

https://experience.dynamics.com/ideas/idea/?ideaid=bc659582-2687-f011-8151-7c1e52bd09f7

Description

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;

}

I will provide the implementation for this BC Idea

  • I will provide the implementation for this BC Idea

Metadata

Metadata

Assignees

Labels

ApprovedThe issue is approvedBCIdeaIssue related to a BCIdeaIntegrationGitHub request for Integration area

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions