How to implement voucher redemption from storefront in Hybris 5.7? - sap-commerce-cloud

I want to implement voucher redemption from storefront in Hybris.
From wiki i got to know that there are already OOTB api defined by hybris.
Can anyone tell me what are the exact services or facade i should call for voucher redemption and cart recalculation after successful redemption ?

We can have a look on VoucherService.In this we have
boolean redeemVoucher(String arg0, CartModel arg1) throws JaloPriceFactoryException;
This will take care of redemption.

Related

Is there any public Instagram API for Story? Get Instagram Stories Json

The title says it all. I was wondering if there is any workaround or public API endpoint which allows you to get story data back from public users? I have tried using this endpoint, https://www.instagram.com/stories/**username**/**storyID**/?__a=1, unfortunately, this only returns the user's profile ID, profile picture, and username. It does not return anything about the story video which is what I am looking for.
Below is an example link of the stories from the UFC, (remember this example link may stop working as stories only last for 24h)
https://www.instagram.com/stories/ufc/2427177098954142525/?__a=1
Any help is much appreciated.

business_type when creating a custom account and French Associations

When asking for a token in a custom account creation process, if we do not set business_type, it is possible, using Onboarding, to set your Business Type later.
What is the correct answer for an Association in France ?
Individual / micro-entreprise
Company
Associations can have a SIREN (unique French business identification number). But not all associations have one.
If we choose type 1, we do not have to fill for a SIREN, but then my question is: will it be a problem later for payouts ?
I contacted the support. OnBoarding does not provide an option for custom accounts and associations.It is a work in progress.

How to update customer address in netSuite form PHP Toolkit

Hi i am working in netSuite and PHP Toolkit. I want to update customer address how can i load load customer and update address. This is the customer object but how can i load specific customer for it.
$customer = new Customer();
I don't think I would bother with the PHP Toolkit. I did look at it and went down the RESTlet route. Much cleaner and you're not loading that library every time you make a call.

Branch.io: Extract custom value from link

we're facing a problem right now: We're using the SMS gateway feature from branch.io which simply does not work properly worldwide (e.g. Lituanian cell phones won't receive any messages at all).
Therefore i need a fallback method for people that cannot receive an SMS to their phone with the downloadlink in the Appstore. (The branch.io Links have an effect on the branding of our app)
The fallback is to let them use a voucher code which COULD be generated from a custom value that we store for each Link
This is an ordinary Link with its 2 custom values
The landing page http://learnmat.ch/spark7 opens in the browser and i'd like to be able to identify the SponsorID on the website so that i can return a voucher code that is suitable for the specific SponsorID of the Link.
Right now i've already integrated the Web SDK into the website.
Is that "reverse engineering of the SponsorID" possible based on the Link and the WebSDK integration?
I'd really appreciate your help!
Thank you,
Sven
Jackie from Branch here.
Our SMS page service supports international numbers but only if the number the SMS has to be delivered is in the same country the SMS is being sent from. Could you please make sure the sender is physically located in Lithuania? I'd also suggest creating your own Twilio integration if you want to bypass these restrictions we have on our system https://docs.branch.io/pages/web/text-me-the-app/#use-your-own-sms-service
Regarding your fallback method: you want to have users click on a Branch link that will open your website and based on the link data (sponsor ID), you want to provide them with unique voucher codes? If my assumption is correct, you can achieve this by custom event tracking and user identity tracking. (relevant docs: https://docs.branch.io/pages/dashboard/analytics/#user-value-attribution)
Hopefully, this helps. Let us know if you have additional questions about the info above, or about anything else related to integrating Branch.
Best,
Jackie Choi

Get the Phone Number from Dynamic crm online

I am new to dynamic CRM. I have requirement to pass the contact info to webservice. when the user clicks on the phone number, instead of triggering call through skype or lync, I need to pass the contact information(Phone number,Contact name) to my web service.Please guide me to implement this.
Using plugin and something similar to this
https://mscrmmindfire.wordpress.com/2013/06/14/calling-external-web-service-from-a-crm-2011-plug-in/

Resources