-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from Adyen/develop
Package Version 3.0.1.1
- Loading branch information
Showing
9 changed files
with
122 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,70 @@ | ||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public with sharing class AdyenConstants { | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String DEFAULT_ADAPTER_NAME = 'AdyenDefault'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_CANCEL = 'cancellation'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_AUTHORISE = 'authorization'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_CAPTURE_FAILED = 'capture-failed'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_CAPTURE = 'capture'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_REFUND = 'refund'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_REQUEST_TYPE_RECURRING_CONTRACT = 'recurring_contract'; | ||
|
||
@NamespaceAccessible | ||
public static final String NOTIFICATION_ACCEPTED_RESPONSE = '[accepted]'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String NOTIFICATION_RECEIVED_CHECKOUT = 'received'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String TEST_MERCHANT_ACCOUNT = 'TEST_MERCHANT_ACCOUNT'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String TEST_REFERENCE = 'TEST_REFERENCE'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String TEST_STATUS = 'TEST_STATUS'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String TEST_PSP_REFERENCE = 'TEST_PSP_REFERENCE'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final String TEST_PAYMENT_PSP_REFERENCE = 'TEST_PAYMENT_PSP_REFERENCE'; | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final CommercePayments.SalesforceResultCodeInfo SUCCESS_SALESFORCE_RESULT_CODE_INFO = | ||
new CommercePayments.SalesforceResultCodeInfo(CommercePayments.SalesforceResultCode.Success); | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final CommercePayments.SalesforceResultCodeInfo DECLINE_SALESFORCE_RESULT_CODE_INFO = | ||
new CommercePayments.SalesforceResultCodeInfo(CommercePayments.SalesforceResultCode.Decline); | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final CommercePayments.SalesforceResultCodeInfo SYSTEM_ERROR_SALESFORCE_RESULT_CODE_INFO = | ||
new CommercePayments.SalesforceResultCodeInfo(CommercePayments.SalesforceResultCode.SystemError); | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public static final CommercePayments.SalesforceResultCodeInfo VALIDATION_ERROR_SALESFORCE_RESULT_CODE_INFO = | ||
new CommercePayments.SalesforceResultCodeInfo(CommercePayments.SalesforceResultCode.ValidationError); | ||
|
||
@namespaceAccessible | ||
public static final Integer HTTP_SUCCESS_CODE = 200; | ||
@NamespaceAccessible | ||
public static final Integer HTTP_SUCCESS_CODE = 200; | ||
|
||
@namespaceAccessible | ||
public static final Integer HTTP_ERROR_CODE = 400; | ||
@NamespaceAccessible | ||
public static final Integer HTTP_ERROR_CODE = 400; | ||
|
||
@namespaceAccessible | ||
public final static String HTTP_SERVER_ERROR_CODE = '500'; | ||
@NamespaceAccessible | ||
public final static String HTTP_SERVER_ERROR_CODE = '500'; | ||
} |
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
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
26 changes: 15 additions & 11 deletions
26
force-app/main/default/classes/NotificationRequestItem.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,37 +1,41 @@ | ||
/* | ||
* Represents an Adyen Webhook Notification Request Item | ||
*/ | ||
@namespaceAccessible | ||
|
||
@NamespaceAccessible | ||
public with sharing class NotificationRequestItem { | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public Amount amount {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String eventCode {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String eventDate {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String merchantAccountCode {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String paymentMethod {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String originalReference {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String paymentPspReference {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String pspReference {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String reason {get;set;} | ||
|
||
@namespaceAccessible | ||
@NamespaceAccessible | ||
public String success {get;set;} | ||
|
||
@NamespaceAccessible | ||
public Map<String,String> additionalData {get;set;} | ||
|
||
} |
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
{ | ||
"packageDirectories": [ | ||
{ | ||
"path": "force-app", | ||
"default": true, | ||
"package": "API Library Apex Adyen", | ||
"versionName": "ver 0.1", | ||
"versionNumber": "0.1.0.NEXT", | ||
"ancestorVersion": "HIGHEST" | ||
} | ||
], | ||
"name": "adyen-apex-api-lib-2GP", | ||
"namespace": "adyen_payment", | ||
"sfdcLoginUrl": "https://login.salesforce.com", | ||
"sourceApiVersion": "53.0", | ||
"packageAliases": { | ||
"API Library Apex Adyen": "0Ho4T0000000043SAA", | ||
"API Library Apex Adyen@0.1.0-1": "04t4T000001VvbqQAC", | ||
"API Library Apex Adyen@1.0.0-0": "04t4T000001VvfJQAS", | ||
"API Library Apex Adyen@2.0.0-0": "04t4T000001HohPQAS", | ||
"API Library Apex Adyen@3.0.0-0": "04t4T000001y7BWQAY" | ||
{ | ||
"packageDirectories": [ | ||
{ | ||
"path": "force-app", | ||
"default": true, | ||
"package": "API Library Apex Adyen", | ||
"versionName": "ver 3.0", | ||
"versionNumber": "3.0.1.NEXT", | ||
"ancestorVersion": "HIGHEST" | ||
} | ||
], | ||
"name": "adyen-apex-api-lib-2GP", | ||
"namespace": "adyen_payment", | ||
"sfdcLoginUrl": "https://login.salesforce.com", | ||
"sourceApiVersion": "59.0", | ||
"packageAliases": { | ||
"API Library Apex Adyen": "0Ho4T0000000043SAA", | ||
"API Library Apex Adyen@0.1.0-1": "04t4T000001VvbqQAC", | ||
"API Library Apex Adyen@1.0.0-0": "04t4T000001VvfJQAS", | ||
"API Library Apex Adyen@2.0.0-0": "04t4T000001HohPQAS", | ||
"API Library Apex Adyen@3.0.0-0": "04t4T000001y7BWQAY", | ||
"API Library Apex Adyen@3.0.1-1": "04tRP0000000A5pYAE" | ||
} | ||
} |