Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Apps/W1/Shopify/app/src/Base/Pages/ShpfyShopCard.Page.al
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ page 30101 "Shpfy Shop Card"
#if not CLEAN23
if BulkOperationMgt.IsBulkOperationFeatureEnabled() then
#endif
BulkOperationMgt.EnableBulkOperations(Rec);
BulkOperationMgt.EnableBulkOperations(Rec);
Rec."B2B Enabled" := Rec.GetB2BEnabled();
Rec.SyncCountries();
FeatureTelemetry.LogUptake('0000HUT', 'Shopify', Enum::"Feature Uptake Status"::"Set up");
Expand Down Expand Up @@ -767,6 +767,19 @@ page 30101 "Shpfy Shop Card"
ToolTip = 'View a list of Shopify catalogs for the shop.';
Visible = Rec."B2B Enabled";
}
action(Languages)
{
ApplicationArea = All;
Caption = 'Languages';
Image = Translations;
Promoted = true;
PromotedCategory = Category4;
PromotedIsBig = true;
PromotedOnly = true;
RunObject = Page "Shpfy Languages";
RunPageLink = "Shop Code" = field(Code);
ToolTip = 'View a list of Shopify Languages for the shop.';
}
}
area(Processing)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Microsoft.Integration.Shopify;

/// <summary>
/// Codeunit Shpfy GQL OrderTransactions (ID 30312) implements Interface Shpfy IGraphQL.
/// Codeunit Shpfy GQL OrderTransactions (ID 30341) implements Interface Shpfy IGraphQL.
/// </summary>
codeunit 30312 "Shpfy GQL OrderTransactions" implements "Shpfy IGraphQL"
codeunit 30341 "Shpfy GQL OrderTransactions" implements "Shpfy IGraphQL"
{
Access = Internal;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Microsoft.Integration.Shopify;

codeunit 30168 "Shpfy GQL ShopLocales" implements "Shpfy IGraphQL"
{

internal procedure GetGraphQL(): Text
begin
exit('{"query":"{ shopLocales { locale primary published }}"}');
end;

internal procedure GetExpectedCost(): Integer
begin
exit(3);
end;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Microsoft.Integration.Shopify;

codeunit 30340 "Shpfy GQL TranslResource" implements "Shpfy IGraphQL"
{

internal procedure GetGraphQL(): Text
begin
exit('{"query":"{ translatableResource(resourceId: \"gid://shopify/{{ResourceType}}/{{ResourceId}}\") { resourceId translatableContent {key value digest locale} }}"}');
end;

internal procedure GetExpectedCost(): Integer
begin
exit(3);
end;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Microsoft.Integration.Shopify;

codeunit 30159 "Shpfy GQL TranslationsRegister" implements "Shpfy IGraphQL"
{

internal procedure GetGraphQL(): Text
begin
exit('{"query": "mutation { translationsRegister(resourceId: \"gid://shopify/{{ResourceType}}/{{ResourceId}}\", translations: [{{Translations}}]) { userErrors {field, message}}}"}');
end;

internal procedure GetExpectedCost(): Integer
begin
exit(50);
end;
}
15 changes: 15 additions & 0 deletions Apps/W1/Shopify/app/src/GraphQL/Enums/ShpfyGraphQLType.Enum.al
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,19 @@ enum 30111 "Shpfy GraphQL Type" implements "Shpfy IGraphQL"
Caption = 'Get Next Reverse Fulfillment Order Lines';
Implementation = "Shpfy IGraphQL" = "Shpfy GQL NextRevFulfillOrdLns";
}
value(91; TranslationsRegister)
{
Caption = 'Translations Register';
Implementation = "Shpfy IGraphQL" = "Shpfy GQL TranslationsRegister";
}
value(92; ShopLocales)
{
Caption = 'Shop Locales';
Implementation = "Shpfy IGraphQL" = "Shpfy GQL ShopLocales";
}
value(93; GetTranslResource)
{
Caption = 'Get Transl Resource';
Implementation = "Shpfy IGraphQL" = "Shpfy GQL TranslResource";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ codeunit 30199 "Shpfy Authentication Mgt."

var
// https://shopify.dev/api/usage/access-scopes
ScopeTxt: Label 'write_orders,read_all_orders,write_assigned_fulfillment_orders,read_checkouts,write_customers,read_discounts,write_files,write_merchant_managed_fulfillment_orders,write_fulfillments,write_inventory,read_locations,read_payment_terms,write_products,write_shipping,read_shopify_payments_disputes,read_shopify_payments_payouts,write_returns,write_translations,write_third_party_fulfillment_orders,write_order_edits,write_companies,write_publications', Locked = true;
ScopeTxt: Label 'write_orders,read_all_orders,write_assigned_fulfillment_orders,read_checkouts,write_customers,read_discounts,write_files,write_merchant_managed_fulfillment_orders,write_fulfillments,write_inventory,read_locations,read_payment_terms,write_products,write_shipping,read_shopify_payments_disputes,read_shopify_payments_payouts,write_returns,write_translations,write_third_party_fulfillment_orders,write_order_edits,write_companies,write_publications,read_locales', Locked = true;
ShopifyAPIKeyAKVSecretNameLbl: Label 'ShopifyApiKey', Locked = true;
ShopifyAPISecretAKVSecretNameLbl: Label 'ShopifyApiSecret', Locked = true;
MissingAPIKeyTelemetryTxt: Label 'The api key has not been initialized.', Locked = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ permissionset 30102 "Shpfy - Edit"
tabledata "Shpfy Gift Card" = IMD,
tabledata "Shpfy Initial Import Line" = imd,
tabledata "Shpfy Inventory Item" = IMD,
tabledata "Shpfy Language" = IMD,
tabledata "Shpfy Log Entry" = IMD,
tabledata "Shpfy Metafield" = IMD,
tabledata "Shpfy Refund Header" = IMD,
Expand Down Expand Up @@ -64,5 +65,6 @@ permissionset 30102 "Shpfy - Edit"
tabledata "Shpfy Tag" = IMD,
tabledata "Shpfy Tax Area" = IMD,
tabledata "Shpfy Transaction Gateway" = IMD,
tabledata "Shpfy Translation" = IMD,
tabledata "Shpfy Variant" = IMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ permissionset 30100 "Shpfy - Read"
tabledata "Shpfy Gift Card" = R,
tabledata "Shpfy Initial Import Line" = r,
tabledata "Shpfy Inventory Item" = R,
tabledata "Shpfy Language" = R,
tabledata "Shpfy Log Entry" = R,
tabledata "Shpfy Metafield" = R,
tabledata "Shpfy Order Attribute" = R,
Expand Down Expand Up @@ -64,6 +65,7 @@ permissionset 30100 "Shpfy - Read"
tabledata "Shpfy Tag" = R,
tabledata "Shpfy Tax Area" = R,
tabledata "Shpfy Transaction Gateway" = R,
tabledata "Shpfy Translation" = R,
tabledata "Shpfy Variant" = R;
}
#pragma warning restore AS0090, AS0049
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ codeunit 30177 "Shpfy Product Events"
/// <param name="ItemNo">Parameter of type Code[20].</param>
/// <param name="ShopifyShop">Parameter of type Record "Shopify Shop".</param>
/// <param name="ProductBodyHtml">Parameter of type Text.</param>
/// <param name="LanguageCode">Parameter of type Code[10].</param>
[IntegrationEvent(false, false)]
internal procedure OnAfterCreateProductBodyHtml(ItemNo: Code[20]; ShopifyShop: Record "Shpfy Shop"; var ProductBodyHtml: Text)
internal procedure OnAfterCreateProductBodyHtml(ItemNo: Code[20]; ShopifyShop: Record "Shpfy Shop"; var ProductBodyHtml: Text; LanguageCode: Code[10])
begin
end;

Expand Down Expand Up @@ -145,8 +146,9 @@ codeunit 30177 "Shpfy Product Events"
/// <param name="ShopifyShop">Parameter of type Record "Shopify Shop".</param>
/// <param name="ProductBodyHtml">Parameter of type Text.</param>
/// <param name="Handled">Parameter of type Boolean.</param>
/// <param name="LanguageCode">Parameter of type Code[10].</param>
[IntegrationEvent(false, false)]
internal procedure OnBeforeCreateProductBodyHtml(ItemNo: Code[20]; ShopifyShop: Record "Shpfy Shop"; var ProductBodyHtml: Text; var Handled: Boolean)
internal procedure OnBeforeCreateProductBodyHtml(ItemNo: Code[20]; ShopifyShop: Record "Shpfy Shop"; var ProductBodyHtml: Text; var Handled: Boolean; LanguageCode: Code[10])
begin
end;

Expand Down
Loading