{"title":"Codeunit 30385 Shpfy Payments API, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/30385-shpfy-payments-api/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":30385,"name":"Shpfy Payments API","app":"Shopify Connector","url":"https://jonas-paprotka.de/ref/codeunit/30385-shpfy-payments-api/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/30385-shpfy-payments-api/source/","path":"src/Apps/W1/Shopify/App/src/Payments/Codeunits/ShpfyPaymentsAPI.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:30103":{"name":"Shpfy Communication Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/30103-shpfy-communication-mgt/"},"codeunit:30157":{"name":"Shpfy Json Helper","url":"https://jonas-paprotka.de/ref/codeunit/30157-shpfy-json-helper/"},"table:30124":{"name":"Shpfy Payment Transaction","url":"https://jonas-paprotka.de/ref/table/30124-shpfy-payment-transaction/"},"table:30114":{"name":"Shpfy Data Capture","url":"https://jonas-paprotka.de/ref/table/30114-shpfy-data-capture/"},"table:30125":{"name":"Shpfy Payout","url":"https://jonas-paprotka.de/ref/table/30125-shpfy-payout/"},"table:30155":{"name":"Shpfy Dispute","url":"https://jonas-paprotka.de/ref/table/30155-shpfy-dispute/"}},"procs":[{"name":"ImportPaymentTransactions","line":21,"kind":"procedure","access":"internal","params":1,"steps":[[35,"ext","codeunit",30103,"ExecuteGraphQL",2],[36,"ext","codeunit",30157,"GetJsonObject",3],[37,"ext","codeunit",30157,"GetJsonArray",3],[39,"ext","codeunit",30157,"GetValueAsText",2],[40,"ext","codeunit",30157,"GetJsonObject",3],[41,"call","ImportPaymentTransaction",1],[49,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"ImportPaymentTransaction","line":52,"kind":"procedure","access":"internal","params":1,"steps":[[59,"ext","codeunit",30103,"GetIdOfGId",1],[59,"ext","codeunit",30157,"GetValueAsText",2],[61,"ext","codeunit",30103,"GetIdOfGId",1],[61,"ext","codeunit",30157,"GetValueAsText",2],[62,"write",30124,"Modify"],[66,"ext","codeunit",30157,"GetValueIntoField",4],[67,"ext","codeunit",30157,"GetValueIntoField",4],[68,"ext","codeunit",30157,"GetValueIntoField",4],[68,"ext","codeunit",30157,"GetJsonObject",2],[69,"ext","codeunit",30157,"GetValueIntoField",4],[70,"ext","codeunit",30157,"GetValueIntoField",4],[71,"ext","codeunit",30157,"GetValueIntoField",4],[72,"ext","codeunit",30157,"GetValueIntoField",4],[73,"ext","codeunit",30157,"GetValueIntoField",4],[78,"call","ConvertToPaymentTranscationType",1],[78,"ext","codeunit",30157,"GetValueAsText",2],[79,"call","ConvertToPaymentTranscationType",1],[79,"ext","codeunit",30157,"GetValueAsText",2],[80,"ext","codeunit",30103,"GetIdOfGId",1],[80,"ext","codeunit",30157,"GetValueAsText",2],[81,"ext","codeunit",30103,"GetIdOfGId",1],[81,"ext","codeunit",30157,"GetValueAsText",2],[82,"write",30124,"Insert"],[83,"ext","table",30114,"Add",3]]},{"name":"ImportPayouts","line":87,"kind":"procedure","access":"internal","params":1,"steps":[[101,"ext","codeunit",30103,"ExecuteGraphQL",2],[102,"ext","codeunit",30157,"GetJsonObject",3],[103,"ext","codeunit",30157,"GetJsonArray",3],[105,"ext","codeunit",30157,"GetValueAsText",2],[106,"ext","codeunit",30157,"GetJsonObject",3],[107,"call","ImportPayout",1],[115,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"ImportPayout","line":118,"kind":"procedure","access":"internal","params":1,"steps":[[125,"ext","codeunit",30103,"GetIdOfGId",1],[125,"ext","codeunit",30157,"GetValueAsText",2],[127,"call","ConvertToPayoutStatus",1],[127,"ext","codeunit",30157,"GetValueAsText",2],[129,"write",30125,"Modify"],[133,"ext","codeunit",30157,"GetValueIntoField",4],[134,"ext","codeunit",30157,"GetValueIntoField",4],[135,"ext","codeunit",30157,"GetValueIntoField",4],[136,"ext","codeunit",30157,"GetValueIntoField",4],[137,"ext","codeunit",30157,"GetValueIntoField",4],[138,"ext","codeunit",30157,"GetValueIntoField",4],[139,"ext","codeunit",30157,"GetValueIntoField",4],[140,"ext","codeunit",30157,"GetValueIntoField",4],[141,"ext","codeunit",30157,"GetValueIntoField",4],[142,"ext","codeunit",30157,"GetValueIntoField",4],[143,"ext","codeunit",30157,"GetValueIntoField",4],[144,"ext","codeunit",30157,"GetValueIntoField",4],[145,"ext","codeunit",30157,"GetValueIntoField",4],[146,"ext","codeunit",30157,"GetValueIntoField",4],[150,"call","ConvertToPayoutStatus",1],[150,"ext","codeunit",30157,"GetValueAsText",2],[152,"write",30125,"Insert"],[154,"ext","table",30114,"Add",3]]},{"name":"UpdatePaymentTransactionPayoutIds","line":157,"kind":"procedure","access":"internal","params":1,"steps":[[171,"ext","codeunit",30103,"ExecuteGraphQL",2],[172,"ext","codeunit",30157,"GetJsonObject",3],[173,"ext","codeunit",30157,"GetJsonArray",3],[175,"ext","codeunit",30103,"GetIdOfGId",1],[175,"ext","codeunit",30157,"GetValueAsText",2],[176,"ext","codeunit",30103,"GetIdOfGId",1],[176,"ext","codeunit",30157,"GetValueAsText",2],[180,"write",30124,"Modify"]]},{"name":"UpdatePayoutStatuses","line":185,"kind":"procedure","access":"internal","params":1,"steps":[[198,"ext","codeunit",30103,"ExecuteGraphQL",2],[199,"ext","codeunit",30157,"GetJsonObject",3],[200,"ext","codeunit",30157,"GetJsonArray",3],[202,"ext","codeunit",30103,"GetIdOfGId",1],[202,"ext","codeunit",30157,"GetValueAsText",2],[204,"call","ConvertToPayoutStatus",1],[204,"ext","codeunit",30157,"GetValueAsText",2],[205,"write",30125,"Modify"]]},{"name":"ConvertToPayoutStatus","line":210,"kind":"procedure","access":"local","params":1,"steps":[[212,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ConvertToPaymentTranscationType","line":219,"kind":"procedure","access":"local","params":1,"steps":[[221,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ImportDisputes","line":230,"kind":"procedure","access":"internal","params":1,"steps":[[244,"ext","codeunit",30103,"ExecuteGraphQL",2],[245,"ext","codeunit",30157,"GetJsonObject",3],[246,"ext","codeunit",30157,"GetJsonArray",3],[248,"ext","codeunit",30157,"GetValueAsText",2],[249,"ext","codeunit",30157,"GetJsonObject",3],[250,"call","ImportDispute",1],[258,"ext","codeunit",30157,"GetValueAsBoolean",2]]},{"name":"UpdateDispute","line":261,"kind":"procedure","access":"internal","params":1,"steps":[[273,"ext","codeunit",30103,"ExecuteGraphQL",2],[274,"ext","codeunit",30157,"GetJsonObject",3],[275,"ext","codeunit",30157,"GetJsonArray",3],[278,"ext","codeunit",30157,"GetJsonObject",3],[279,"call","ImportDispute",1]]},{"name":"ImportDispute","line":283,"kind":"procedure","access":"internal","params":1,"steps":[[289,"ext","codeunit",30103,"GetIdOfGId",1],[289,"ext","codeunit",30157,"GetValueAsText",2],[291,"call","ConvertToDisputeStatus",1],[291,"ext","codeunit",30157,"GetValueAsText",2],[292,"ext","codeunit",30157,"GetValueAsDateTime",2],[293,"ext","codeunit",30157,"GetValueAsDateTime",2],[295,"write",30155,"Modify"],[299,"ext","codeunit",30157,"GetValueIntoField",4],[300,"ext","codeunit",30157,"GetValueIntoField",4],[300,"ext","codeunit",30157,"GetJsonObject",2],[301,"ext","codeunit",30157,"GetValueIntoField",4],[302,"ext","codeunit",30157,"GetValueIntoField",4],[303,"ext","codeunit",30157,"GetValueIntoField",4],[304,"ext","codeunit",30157,"GetValueIntoField",4],[308,"call","ConvertToDisputeStatus",1],[308,"ext","codeunit",30157,"GetValueAsText",2],[309,"call","ConvertToDisputeType",1],[309,"ext","codeunit",30157,"GetValueAsText",2],[310,"call","ConvertToDisputeReason",1],[310,"ext","codeunit",30157,"GetValueAsText",2],[311,"ext","codeunit",30103,"GetIdOfGId",1],[311,"ext","codeunit",30157,"GetValueAsText",2],[313,"write",30155,"Insert"]]},{"name":"ConvertToDisputeStatus","line":317,"kind":"procedure","access":"local","params":1,"steps":[[319,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ConvertToDisputeType","line":326,"kind":"procedure","access":"local","params":1,"steps":[[328,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"ConvertToDisputeReason","line":335,"kind":"procedure","access":"local","params":1,"steps":[[337,"ext","codeunit",30103,"ConvertToCleanOptionValue",1]]},{"name":"SetShop","line":345,"kind":"procedure","access":"internal","params":1,"steps":[[348,"ext","codeunit",30103,"SetShop",1]]}]}