codeunitIntegration & APIsofficial - Microsoftderived - from the source, no model text

Codeunit 30471 "Shpfy TMA Matcher" (US)

US country layer · Microsoft.Integration.Shopify

Across versions

  1. BC23-28not present
  2. BC29-30present

US country layer · Microsoft.Integration.Shopify · BC29-30 · source at ea08af5e · facts from BC29

An object of the US localization, not part of W1.

Properties

Property Value
Access Internal

Procedures

  • MatchTaxLines(var OrderHeader: Record "Shpfy Order Header"; Shop: Record "Shpfy Shop"; SecurityPrompt: SecretText; var MatchedJurisdictions: List of [Code[10]]; var MatchLog: JsonArray; var HasRateConflict: Boolean; var HasUnresolvedLine: Boolean; var HasLowConfidenceMatch: Boolean): Boolean
  • MatchTaxLinesWithoutProcessingLimit(var OrderHeader: Record "Shpfy Order Header"; Shop: Record "Shpfy Shop"; SecurityPrompt: SecretText; var MatchedJurisdictions: List of [Code[10]]; var MatchLog: JsonArray; var HasRateConflict: Boolean; var HasUnresolvedLine: Boolean; var HasLowConfidenceMatch: Boolean): Boolean (internal)
  • ResetMatchState(var OrderHeader: Record "Shpfy Order Header") (internal)
  • ApplyMatches(var OrderHeader: Record "Shpfy Order Header"; Shop: Record "Shpfy Shop"; MatchResults: JsonObject; UnmatchedTaxLineIds: List of [Text]; var MatchedJurisdictions: List of [Code[10]]; var MatchLog: JsonArray; var HasRateConflict: Boolean; var HasUnresolvedLine: Boolean; var HasLowConfidenceMatch: Boolean): Boolean (internal): Applies the model’s match results to the order’s tax lines. Only the lines in UnmatchedTaxLineIds (the ones sent for matching) can be assigned. Internal so tests can apply a response without an LLM call.
  • ReapplyFromAssignedLines(var OrderHeader: Record "Shpfy Order Header"; Shop: Record "Shpfy Shop"; var MatchedJurisdictions: List of [Code[10]]; var MatchLog: JsonArray; var HasRateConflict: Boolean): Boolean: Re-applies the tax match from the jurisdiction codes currently assigned on the order’s tax lines (e.g. after a human edited or completed them on the review page). Runs the same per-line seeding/conflict logic as the LLM path but takes the human’s jurisdictions as given, then reports whether any assi…
  • UnverifyAgentJurisdictions(OrderHeader: Record "Shpfy Order Header") (internal): Reverses the jurisdiction verification that an order’s approval performed: for each agent-created jurisdiction the order used that is Verified, clears Verified so the jurisdiction returns to its provisional state (later matches to it are forced low confidence and held again). User-created or pre-exi…
  • TryGetEffectiveItemRate(OrderTaxLine: Record "Shpfy Order Tax Line"; var BCRate: Decimal): Boolean: Returns the Business Central Tax Detail rate that would apply to a tax line’s item, given the jurisdiction currently assigned to the line and the order’s effective date. Used by the review page to show BC’s rate next to Shopify’s and highlight a difference. Returns false when no jurisdiction is assi…
  • SeedTaxDetailFromShopifyRate(OrderTaxLine: Record "Shpfy Order Tax Line"): Boolean: Creates — or, when one already exists on the order’s document date, updates — a Tax Detail for the tax line’s Tax Jurisdiction and resolved tax group so Business Central posts the rate Shopify charged, effective the order’s document date. This mutates shared BC tax setup: it is NOT scoped to a singl…
  • ResolveCanadianHSTJurisdictionCode(OrderHeader: Record "Shpfy Order Header"; SuggestedJurisdictionCode: Code[10]; AutoCreateTaxJurisdictions: Boolean): Code[10] (internal)
  • TryGetGuardrailPrompt(var SecurityPrompt: SecretText): Boolean (internal)
  • Capitalize(Confidence: Text): Text (internal)

Plus 30 local procedures.

Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Shpfy TMA Matcher"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

A US country object, not part of W1: the default corpus does not have it; bcatlas_list_countries shows which countries the atlas has.

Evidence 1 sources