Skip to content

Commit 933f833

Browse files
authored
Merge pull request #53 from CyberSource/metakey-support
MetaKey support
2 parents 305d0d6 + 108b30e commit 933f833

File tree

67 files changed

+781
-399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+781
-399
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ The CyberSource Node client provides convenient access to the [CyberSource REST
99

1010
## Installation
1111

12-
1312
```shell
1413
npm install cybersource-rest-client
1514
```
1615

17-
1816
## Registration & Configuration
1917
Use of this SDK and the CyberSource APIs requires having an account on our system. You can find details of getting a test account and creating your keys [here](https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/registration.html)
2018

2119
Remember this SDK is for use in server-side Node applications that access the CyberSource REST API and credentials should always be securely stored and accessed appropriately.
2220

23-
2421
## SDK Usage Examples and Sample Code
2522
To get started using this SDK, it's highly recommended to download our sample code repository:
2623
* [Cybersource Node.js Sample Code Repository (on GitHub)](https://github.com/CyberSource/cybersource-rest-samples-node)
@@ -32,6 +29,15 @@ Additionally, you can find details and examples of how our API is structured in
3229

3330
The API Reference Guide provides examples of what information is needed for a particular request and how that information would be formatted. Using those examples, you can easily determine what methods would be necessary to include that information in a request using this SDK.
3431

32+
## MetaKey Support
33+
34+
A Meta Key is a single key that can be used by one, some, or all merchants (or accounts, if created by a Portfolio user) in the portfolio.
35+
36+
The Portfolio or Parent Account owns the key and is considered the transaction submitter when a Meta Key is used, while the merchant owns the transaction.
37+
38+
MIDs continue to be able to create keys for themselves, even if a Meta Key is generated.
39+
40+
Further information on MetaKey can be found in [New Business Center User Guide](https://developer.cybersource.com/library/documentation/dev_guides/Business_Center/New_Business_Center_User_Guide.pdf).
3541

3642
### Switching between the sandbox environment and the production environment
3743
Cybersource maintains a complete sandbox environment for testing and development purposes. This sandbox environment is an exact duplicate of our production environment with the transaction authorization and settlement process simulated. By default, this SDK is configured to communicate with the sandbox environment. To switch to the production environment, set the `runEnvironment` in the SDK Configuration. See our sample at https://github.com/CyberSource/cybersource-rest-samples-node/blob/master/Data/Configuration.js.

docs/AddNegativeListRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**orderInformation** | [**Riskv1liststypeentriesOrderInformation**](Riskv1liststypeentriesOrderInformation.md) | | [optional]
77
**paymentInformation** | [**Riskv1liststypeentriesPaymentInformation**](Riskv1liststypeentriesPaymentInformation.md) | | [optional]
8-
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | |
8+
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional]
99
**deviceInformation** | [**Riskv1liststypeentriesDeviceInformation**](Riskv1liststypeentriesDeviceInformation.md) | | [optional]
1010
**riskInformation** | [**Riskv1liststypeentriesRiskInformation**](Riskv1liststypeentriesRiskInformation.md) | | [optional]
1111
**buyerInformation** | [**Riskv1liststypeentriesBuyerInformation**](Riskv1liststypeentriesBuyerInformation.md) | | [optional]

docs/CheckPayerAuthEnrollmentRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**clientReferenceInformation** | [**Riskv1authenticationsetupsClientReferenceInformation**](Riskv1authenticationsetupsClientReferenceInformation.md) | | [optional]
6+
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional]
77
**orderInformation** | [**Riskv1authenticationsOrderInformation**](Riskv1authenticationsOrderInformation.md) | | [optional]
88
**paymentInformation** | [**Riskv1authenticationsPaymentInformation**](Riskv1authenticationsPaymentInformation.md) | | [optional]
99
**processingInformation** | [**Riskv1authenticationsetupsProcessingInformation**](Riskv1authenticationsetupsProcessingInformation.md) | | [optional]

docs/CreateBundledDecisionManagerCaseRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | |
6+
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional]
77
**processorInformation** | [**Riskv1decisionsProcessorInformation**](Riskv1decisionsProcessorInformation.md) | | [optional]
88
**processingInformation** | [**Riskv1decisionsProcessingInformation**](Riskv1decisionsProcessingInformation.md) | | [optional]
99
**paymentInformation** | [**Riskv1decisionsPaymentInformation**](Riskv1decisionsPaymentInformation.md) | | [optional]

docs/FraudMarkingActionRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**riskInformation** | [**Riskv1decisionsidmarkingRiskInformation**](Riskv1decisionsidmarkingRiskInformation.md) | |
7+
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional]
78

89

docs/Kmsv2keyssymClientReferenceInformation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**code** | **String** | Client-generated order reference or tracking number. CyberSource recommends that you send a unique value. | [optional]
77
**comments** | **String** | Comments | [optional]
8-
**partner** | [**Vasv2taxClientReferenceInformationPartner**](Vasv2taxClientReferenceInformationPartner.md) | | [optional]
8+
**partner** | [**Riskv1decisionsClientReferenceInformationPartner**](Riskv1decisionsClientReferenceInformationPartner.md) | | [optional]
99

1010

docs/PayerAuthSetupRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**clientReferenceInformation** | [**Riskv1authenticationsetupsClientReferenceInformation**](Riskv1authenticationsetupsClientReferenceInformation.md) | | [optional]
6+
**clientReferenceInformation** | [**Riskv1decisionsClientReferenceInformation**](Riskv1decisionsClientReferenceInformation.md) | | [optional]
77
**paymentInformation** | [**Riskv1authenticationsetupsPaymentInformation**](Riskv1authenticationsetupsPaymentInformation.md) | | [optional]
88
**processingInformation** | [**Riskv1authenticationsetupsProcessingInformation**](Riskv1authenticationsetupsProcessingInformation.md) | | [optional]
99
**tokenInformation** | [**Riskv1authenticationsetupsTokenInformation**](Riskv1authenticationsetupsTokenInformation.md) | | [optional]

docs/PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**reason** | **String** | The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION | [optional]
6+
**reason** | **String** | The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - CONSUMER_AUTHENTICATION_REQUIRED | [optional]
77
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
88
**details** | [**[PtsV2PaymentsPost201ResponseErrorInformationDetails]**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional]
99

docs/PtsV2PaymentsPost201ResponseRiskInformationInfoCodes.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**velocity** | **[String]** | List of information codes triggered by the order. These information codes were generated when you created the order and product velocity rules and are returned so that you can associate them with the rules. Returned by Decision Manager service. | [optional]
7-
**address** | **[String]** | Indicates a mismatch between the customer’s billing and shipping addresses. Returned by scoring service. | [optional]
8-
**customerList** | **[String]** | Indicates that customer information is associated with transactions that are either on the negative or the positive list. Returned by scoring service. | [optional]
9-
**identityChange** | **[String]** | Indicates excessive identity changes. The threshold is variable depending on the identity elements being compared. This field can contain one or more information codes, separated by carets (^). Returned by scoring service. | [optional]
10-
**internet** | **[String]** | Indicates a problem with the customer’s email address, IP address, or billing address. Returned by scoring service. | [optional]
11-
**phone** | **[String]** | Indicates a problem with the customer’s phone number. Returned by scoring service. | [optional]
12-
**suspicious** | **[String]** | Indicates that the customer provided potentially suspicious information. Returned by scoring service. | [optional]
13-
**globalVelocity** | **[String]** | Indicates that the customer has a high purchase frequency. Returned by scoring service. | [optional]
6+
**velocity** | **[String]** | List of information codes triggered by the order. These information codes were generated when you created the order and product velocity rules and are returned so that you can associate them with the rules. | [optional]
7+
**address** | **[String]** | Indicates a mismatch between the customer’s billing and shipping addresses. | [optional]
8+
**customerList** | **[String]** | Indicates that customer information is associated with transactions that are either on the negative or the positive list. | [optional]
9+
**deviceBehavior** | **[String]** | Indicates the device behavior information code(s) returned from device fingerprinting. | [optional]
10+
**identityChange** | **[String]** | Indicates excessive identity changes. The threshold is variable depending on the identity elements being compared. | [optional]
11+
**internet** | **[String]** | Indicates a problem with the customer’s email address, IP address, or billing address. | [optional]
12+
**phone** | **[String]** | Indicates a problem with the customer’s phone number. | [optional]
13+
**suspicious** | **[String]** | Indicates that the customer provided potentially suspicious information. | [optional]
14+
**globalVelocity** | **[String]** | Indicates that the customer has a high purchase frequency. | [optional]
1415

1516

docs/RiskV1AddressVerificationsPost201Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**submitTimeLocal** | **String** | Time that the transaction was submitted in local time. | [optional]
1010
**status** | **String** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional]
1111
**message** | **String** | The message describing the reason of the status. Value can be - Apartment number missing or not found. - Insufficient address information. - House/Box number not found on street. - Multiple address matches were found. - P.O. Box identifier not found or out of range. - Route service identifier not found or out of range. - Street name not found in Postal code. - Postal code not found in database. - Unable to verify or correct address. - Multiple addres matches were found (international) - Address match not found (no reason given) - Unsupported character set | [optional]
12-
**clientReferenceInformation** | [**PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation**](PtsV2IncrementalAuthorizationPatch201ResponseClientReferenceInformation.md) | | [optional]
12+
**clientReferenceInformation** | [**RiskV1DecisionsPost201ResponseClientReferenceInformation**](RiskV1DecisionsPost201ResponseClientReferenceInformation.md) | | [optional]
1313
**addressVerificationInformation** | [**RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation**](RiskV1AddressVerificationsPost201ResponseAddressVerificationInformation.md) | | [optional]
1414
**errorInformation** | [**RiskV1AddressVerificationsPost201ResponseErrorInformation**](RiskV1AddressVerificationsPost201ResponseErrorInformation.md) | | [optional]
1515

0 commit comments

Comments
 (0)