-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Package Version 3Dot0Dot0 (#27)
* PW-6485-OMSRefactoring * Leveraging AdyenClient model instead of AdyenService model to make callout * Addressing review comments * ModelUpdatePW7289 * Convert recurringProcessingModel from string to enum * Introducing Webhook Models * Adding relevant comments * Delete idea folder * Changing model from AdditionalData to LineItem array for checkout api * Adding LineItem class * Increasing unit test coverage * Release 3Dot0Dot0 (#25) * feat: updating code owners for this repository --------- Co-authored-by: vandana <[email protected]> Co-authored-by: daniloc <[email protected]> Co-authored-by: Danilo Cardoso <[email protected]> Co-authored-by: Arinc Elhan <[email protected]>
- Loading branch information
1 parent
e7f6fac
commit 684a6b7
Showing
19 changed files
with
336 additions
and
71 deletions.
There are no files selected for viewing
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
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
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,14 @@ | ||
/* | ||
* Represents an incoming Adyen Webhook Notification | ||
* https://docs.adyen.com/development-resources/webhooks/understand-notifications | ||
*/ | ||
@namespaceAccessible | ||
public with sharing class AdyenNotification { | ||
|
||
@namespaceAccessible | ||
public String live {get;set;} | ||
|
||
@namespaceAccessible | ||
public List<NotificationItems> notificationItems {get;set;} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/classes/AdyenNotification.cls-meta.xml
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>52.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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
41 changes: 27 additions & 14 deletions
41
force-app/main/default/classes/CheckoutCaptureRequest.cls
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 |
---|---|---|
@@ -1,60 +1,73 @@ | ||
/* | ||
* Represents an Adyen Capture Request | ||
*/ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public with sharing class CheckoutCaptureRequest implements CheckoutModificationRequest { | ||
|
||
/** | ||
* Payment capture amount | ||
* @return amount | ||
*/ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public Amount amount { get; set; } | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public Amount getAmount() { | ||
return amount; | ||
} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public void setAmount(Amount amount) { | ||
this.amount = amount; | ||
} | ||
|
||
/** | ||
* The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement.\nIf you need to provide multiple references for a transaction, separate them with hyphens ("-").\nMaximum length: 80 characters. | ||
* @return reference | ||
*/ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String reference { get; set; } | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String getReference() { | ||
return reference; | ||
} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public void setReference(String reference) { | ||
this.reference = reference; | ||
} | ||
|
||
/** | ||
* Merchant account name | ||
* @return merchantAccount | ||
*/ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String merchantAccount { get; set; } | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String getMerchantAccount() { | ||
return merchantAccount; | ||
} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public void setMerchantAccount(String merchantAccount) { | ||
this.merchantAccount = merchantAccount; | ||
} | ||
|
||
@namespaceAccessible | ||
/** | ||
* Line Items | ||
*/ | ||
@NamespaceAccessible | ||
public List<LineItem> lineItems { get; set; } | ||
|
||
@NamespaceAccessible | ||
public List<LineItem> getLineItems() { | ||
return lineItems; | ||
} | ||
|
||
@NamespaceAccessible | ||
public void setLineItems(List<LineItem> lineItems) { | ||
this.lineItems = lineItems; | ||
} | ||
|
||
@NamespaceAccessible | ||
public CheckoutCaptureRequest(){} | ||
} |
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
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
118 changes: 64 additions & 54 deletions
118
force-app/main/default/classes/CheckoutRefundRequest.cls
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 |
---|---|---|
@@ -1,61 +1,71 @@ | ||
/* | ||
* Represents an Adyen Checkout Refund Request | ||
*/ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public with sharing class CheckoutRefundRequest implements CheckoutModificationRequest { | ||
|
||
/** | ||
* Payment refund amount | ||
* @return amount | ||
*/ | ||
@namespaceAccessible | ||
public Amount amount { get; set; } | ||
|
||
@namespaceAccessible | ||
public Amount getAmount() { | ||
return amount; | ||
} | ||
|
||
@namespaceAccessible | ||
public void setAmount(Amount amount) { | ||
this.amount = amount; | ||
} | ||
|
||
/** | ||
* The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement.\nIf you need to provide multiple references for a transaction, separate them with hyphens ("-").\nMaximum length: 80 characters. | ||
* @return reference | ||
*/ | ||
@namespaceAccessible | ||
public String reference { get; set; } | ||
|
||
@namespaceAccessible | ||
public String getReference() { | ||
return reference; | ||
} | ||
|
||
@namespaceAccessible | ||
public void setReference(String reference) { | ||
this.reference = reference; | ||
} | ||
|
||
/** | ||
* Merchant account name | ||
* @return merchantAccount | ||
*/ | ||
@namespaceAccessible | ||
public String merchantAccount { get; set; } | ||
|
||
@namespaceAccessible | ||
public String getMerchantAccount() { | ||
return merchantAccount; | ||
} | ||
|
||
@namespaceAccessible | ||
public void setMerchantAccount(String merchantAccount) { | ||
this.merchantAccount = merchantAccount; | ||
} | ||
|
||
@namespaceAccessible | ||
public CheckoutRefundRequest(){} | ||
/** | ||
* Payment refund amount | ||
*/ | ||
@NamespaceAccessible | ||
public Amount amount { get; set; } | ||
|
||
@NamespaceAccessible | ||
public Amount getAmount() { | ||
return amount; | ||
} | ||
|
||
@NamespaceAccessible | ||
public void setAmount(Amount amount) { | ||
this.amount = amount; | ||
} | ||
|
||
/** | ||
* The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement.\nIf you need to provide multiple references for a transaction, separate them with hyphens ("-").\nMaximum length: 80 characters. | ||
*/ | ||
@NamespaceAccessible | ||
public String reference { get; set; } | ||
|
||
@NamespaceAccessible | ||
public String getReference() { | ||
return reference; | ||
} | ||
|
||
@NamespaceAccessible | ||
public void setReference(String reference) { | ||
this.reference = reference; | ||
} | ||
|
||
/** | ||
* Merchant account name | ||
*/ | ||
@NamespaceAccessible | ||
public String merchantAccount { get; set; } | ||
|
||
@NamespaceAccessible | ||
public String getMerchantAccount() { | ||
return merchantAccount; | ||
} | ||
|
||
@NamespaceAccessible | ||
public void setMerchantAccount(String merchantAccount) { | ||
this.merchantAccount = merchantAccount; | ||
} | ||
|
||
@NamespaceAccessible | ||
public List<LineItem> lineItems { get; set; } | ||
|
||
@NamespaceAccessible | ||
public List<LineItem> getLineItems() { | ||
return lineItems; | ||
} | ||
|
||
@NamespaceAccessible | ||
public void setLineItems(List<LineItem> lineItems) { | ||
this.lineItems = lineItems; | ||
} | ||
|
||
@NamespaceAccessible | ||
public CheckoutRefundRequest(){} | ||
|
||
} |
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
Oops, something went wrong.