Codeunit 30159 Shpfy Draft Orders API

Shopify Connector, Microsoft.Integration.Shopify

Source AL, 330 lines

src/Apps/W1/Shopify/App/src/Invoicing/Codeunits/ShpfyDraftOrdersAPI.Codeunit.allines 15 to 30 of 330, Copyright (c) Microsoft Corporation. MIT

codeunit 30159 "Shpfy Draft Orders API"{    Access = Internal;    var        Shop: Record "Shpfy Shop";        CommunicationMgt: Codeunit "Shpfy Communication Mgt.";        JsonHelper: Codeunit "Shpfy Json Helper";    /// <summary>    /// Creates a draft order in Shopify by constructing and sending a graphQL request.    /// </summary>    /// <param name="TempOrderHeader">Header information for a Shopify order.</param>    /// <param name="TempOrderLine">Line items for a Shopify order.</param>    /// <param name="OrderTaxLines">Tax lines for a Shopify order.</param>    /// <returns>Unique id of the created draft order in Shopify.</returns>

All 330 lines

Procedures 5

ProcedureVersions
internal ExecuteWebRequest(Url: Text; Method: Text; JRequest: JsonToken): JsonToken20 to 21
internal ExecuteWebRequest(Url: Text; Method: Text; JRequest: JsonToken; HeaderValues: Dictionary of [Text, Text]): JsonToken20 to 21
internal CreateDraftOrder(var TempOrderHeader: Record "Shpfy Order Header" temporary; var TempOrderLine: Record "Shpfy Order Line" temporary; var OrderTaxLines: Dictionary of [Text, Decimal]): BigIntegernew in 25
internal CompleteDraftOrder(DraftOrderId: BigInteger): JsonTokennew in 25
internal SetShop(ShopCode: Code[20])new in 25

Changes 6 in 25

List17181920212223242526272829
Object1
Procedures5
codeunit 30159 "Shpfy Draft Orders API"20-21, 25-29
changed, was codeunit 30159 "Shpfy REST Client"
internal ExecuteWebRequest(Url: Text; Method: Text; JRequest: JsonToken): JsonToken20 to 21
gone
internal ExecuteWebRequest(Url: Text; Method: Text; JRequest: JsonToken; HeaderValues: Dictionary of [Text, Text]): JsonToken20 to 21
gone
internal CreateDraftOrder(var TempOrderHeader: Record "Shpfy Order Header" temporary; var TempOrderLine: Record "Shpfy Order Line" temporary; var OrderTaxLines: Dictionary of [Text, Decimal]): BigIntegernew in 25
added
internal CompleteDraftOrder(DraftOrderId: BigInteger): JsonTokennew in 25
added
internal SetShop(ShopCode: Code[20])new in 25
added

All 6 changes in 20-21, 25-29