-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AD-335 Add Google Pay Express Button with Frontend Logic and API Call…
…s to CMS Components on PDP and Cart Pages - add jalo classes
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...n/src/com/adyen/v6/jalo/contents/components/AdyenAccExpressCheckoutCartPageComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.adyen.v6.jalo.contents.components; | ||
|
||
import de.hybris.platform.jalo.Item; | ||
import de.hybris.platform.jalo.JaloBusinessException; | ||
import de.hybris.platform.jalo.SessionContext; | ||
import de.hybris.platform.jalo.type.ComposedType; | ||
import org.apache.log4j.Logger; | ||
|
||
public class AdyenAccExpressCheckoutCartPageComponent extends GeneratedAdyenAccExpressCheckoutCartPageComponent | ||
{ | ||
@SuppressWarnings("unused") | ||
private static final Logger LOG = Logger.getLogger( AdyenAccExpressCheckoutCartPageComponent.class.getName() ); | ||
|
||
@Override | ||
protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException | ||
{ | ||
// business code placed here will be executed before the item is created | ||
// then create the item | ||
final Item item = super.createItem( ctx, type, allAttributes ); | ||
// business code placed here will be executed after the item was created | ||
// and return the item | ||
return item; | ||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
...rc/com/adyen/v6/jalo/contents/components/AdyenAccExpressCheckoutProductPageComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.adyen.v6.jalo.contents.components; | ||
|
||
import de.hybris.platform.jalo.Item; | ||
import de.hybris.platform.jalo.JaloBusinessException; | ||
import de.hybris.platform.jalo.SessionContext; | ||
import de.hybris.platform.jalo.type.ComposedType; | ||
import org.apache.log4j.Logger; | ||
|
||
public class AdyenAccExpressCheckoutProductPageComponent extends GeneratedAdyenAccExpressCheckoutProductPageComponent | ||
{ | ||
@SuppressWarnings("unused") | ||
private static final Logger LOG = Logger.getLogger( AdyenAccExpressCheckoutProductPageComponent.class.getName() ); | ||
|
||
@Override | ||
protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException | ||
{ | ||
// business code placed here will be executed before the item is created | ||
// then create the item | ||
final Item item = super.createItem( ctx, type, allAttributes ); | ||
// business code placed here will be executed after the item was created | ||
// and return the item | ||
return item; | ||
} | ||
|
||
} |