-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ON HOLD][Shopify] Shopify allow use of customer creation and update #24967
base: main
Are you sure you want to change the base?
[ON HOLD][Shopify] Shopify allow use of customer creation and update #24967
Conversation
@microsoft-github-policy-service agree company="NAVAX Consulting GmbH" |
begin | ||
ShopifyCustomerResult := ShopifyCustomer; | ||
end; | ||
|
||
internal procedure SetAllowCreate(Value: Boolean) | ||
procedure SetAllowCreate(Value: Boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have a good documentation for all procedures that aren't marked as internal.
@BernhardKloibmueller could you maybe add a small example (code draft) for the extensibility? I try to understand how we can improve the following documentation: with this new extensiblity. |
Additionally I'm not sure if you should simple remove the Internal property. Maybe we should make use of the facade pattern and add new codeunits for this reason. @JesperSchulz and @AndreiPanko for help on this. |
This is a difficult one. Would be great to see PR that replaces the current implementation with extensible one. That's of course more work. Usually functions of extension are not available from outside and I would prefer to keep it this way to reduce surface. However I don't see why not to expose some of the methods via facade pattern we have (see modules in system app). |
@AndreiPanko @pri-kise Then I will not make any more updates until you decide how to proceed with the topic. What would we like to achieve in detail: But we needed to refuse a feature because we could not implement it yet. This was Mapping based on if the customer was created by shopify itself. This we wanted to make possible with the interface. @pri-kise : for example something like this:
Is this helpful or do you need more? |
Could not find linked issues in the pull request description. Please make sure the pull request description contains a line that contains 'Fixes #' followed by the issue number being fixed. Use that pattern for every issue you want to link. |
We would like to make a custom mapping with different fields to identify existing customers and decide based on them to create a new customer from a shopify customer.
Since the enum "Shpfy Customer Mapping" is extensible we thought this should be possible,
Unfortunately the codeunits for creating and updating customers are only accessible internally and there is no other interface to change a customer based on shopify data.
We would like to avoid writing our own Create Customer and Update Customer codeunits just because they are only internal allowed. From our point of view there is no particular reason to not allow these codeunits to be used by an extension.
If we understood the usage of a codeunit wrong I would accept any clarification.
Thank you in advance.