Skip to content

Commit d0ce1ed

Browse files
author
glondhe
committed
Adding client code
1 parent b02fed7 commit d0ce1ed

File tree

1,376 files changed

+271694
-0
lines changed

Some content is hidden

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

1,376 files changed

+271694
-0
lines changed

docs/AuthReversalRequest.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CyberSource.AuthReversalRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**clientReferenceInformation** | [**V2paymentsidreversalsClientReferenceInformation**](V2paymentsidreversalsClientReferenceInformation.md) | | [optional]
7+
**reversalInformation** | [**V2paymentsidreversalsReversalInformation**](V2paymentsidreversalsReversalInformation.md) | | [optional]
8+
**processingInformation** | [**V2paymentsidreversalsProcessingInformation**](V2paymentsidreversalsProcessingInformation.md) | | [optional]
9+
**orderInformation** | [**V2paymentsidreversalsOrderInformation**](V2paymentsidreversalsOrderInformation.md) | | [optional]
10+
**pointOfSaleInformation** | [**V2paymentsidreversalsPointOfSaleInformation**](V2paymentsidreversalsPointOfSaleInformation.md) | | [optional]
11+
12+

docs/Body.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# CyberSource.Body
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional]
7+
**id** | **String** | Unique identification number assigned by CyberSource to the submitted request. | [optional]
8+
**_object** | **String** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional]
9+
**state** | **String** | Current state of the token. | [optional]
10+
**card** | [**InstrumentidentifiersCard**](InstrumentidentifiersCard.md) | | [optional]
11+
**bankAccount** | [**InstrumentidentifiersBankAccount**](InstrumentidentifiersBankAccount.md) | | [optional]
12+
**processingInformation** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional]
13+
**metadata** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional]
14+
15+
16+
<a name="ObjectEnum"></a>
17+
## Enum: ObjectEnum
18+
19+
20+
* `instrumentIdentifier` (value: `"instrumentIdentifier"`)
21+
22+
23+
24+
25+
<a name="StateEnum"></a>
26+
## Enum: StateEnum
27+
28+
29+
* `ACTIVE` (value: `"ACTIVE"`)
30+
31+
* `CLOSED` (value: `"CLOSED"`)
32+
33+
34+
35+

docs/Body1.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CyberSource.Body1
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**processingInformation** | [**InstrumentidentifiersProcessingInformation**](InstrumentidentifiersProcessingInformation.md) | | [optional]
7+
8+

docs/Body2.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# CyberSource.Body2
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional]
7+
**id** | **String** | Unique identification number assigned by CyberSource to the submitted request. | [optional]
8+
**_object** | **String** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional]
9+
**state** | **String** | Current state of the token. | [optional]
10+
**bankAccount** | [**PaymentinstrumentsBankAccount**](PaymentinstrumentsBankAccount.md) | | [optional]
11+
**card** | [**PaymentinstrumentsCard**](PaymentinstrumentsCard.md) | | [optional]
12+
**buyerInformation** | [**PaymentinstrumentsBuyerInformation**](PaymentinstrumentsBuyerInformation.md) | | [optional]
13+
**billTo** | [**PaymentinstrumentsBillTo**](PaymentinstrumentsBillTo.md) | | [optional]
14+
**processingInformation** | [**PaymentinstrumentsProcessingInformation**](PaymentinstrumentsProcessingInformation.md) | | [optional]
15+
**merchantInformation** | [**PaymentinstrumentsMerchantInformation**](PaymentinstrumentsMerchantInformation.md) | | [optional]
16+
**metaData** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional]
17+
**instrumentIdentifier** | [**PaymentinstrumentsInstrumentIdentifier**](PaymentinstrumentsInstrumentIdentifier.md) | | [optional]
18+
19+
20+
<a name="ObjectEnum"></a>
21+
## Enum: ObjectEnum
22+
23+
24+
* `paymentInstrument` (value: `"paymentInstrument"`)
25+
26+
27+
28+
29+
<a name="StateEnum"></a>
30+
## Enum: StateEnum
31+
32+
33+
* `ACTIVE` (value: `"ACTIVE"`)
34+
35+
* `CLOSED` (value: `"CLOSED"`)
36+
37+
38+
39+

docs/Body3.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# CyberSource.Body3
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**links** | [**InstrumentidentifiersLinks**](InstrumentidentifiersLinks.md) | | [optional]
7+
**id** | **String** | Unique identification number assigned by CyberSource to the submitted request. | [optional]
8+
**_object** | **String** | Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier. | [optional]
9+
**state** | **String** | Current state of the token. | [optional]
10+
**bankAccount** | [**PaymentinstrumentsBankAccount**](PaymentinstrumentsBankAccount.md) | | [optional]
11+
**card** | [**PaymentinstrumentsCard**](PaymentinstrumentsCard.md) | | [optional]
12+
**buyerInformation** | [**PaymentinstrumentsBuyerInformation**](PaymentinstrumentsBuyerInformation.md) | | [optional]
13+
**billTo** | [**PaymentinstrumentsBillTo**](PaymentinstrumentsBillTo.md) | | [optional]
14+
**processingInformation** | [**PaymentinstrumentsProcessingInformation**](PaymentinstrumentsProcessingInformation.md) | | [optional]
15+
**merchantInformation** | [**PaymentinstrumentsMerchantInformation**](PaymentinstrumentsMerchantInformation.md) | | [optional]
16+
**metaData** | [**InstrumentidentifiersMetadata**](InstrumentidentifiersMetadata.md) | | [optional]
17+
**instrumentIdentifier** | [**PaymentinstrumentsInstrumentIdentifier**](PaymentinstrumentsInstrumentIdentifier.md) | | [optional]
18+
19+
20+
<a name="ObjectEnum"></a>
21+
## Enum: ObjectEnum
22+
23+
24+
* `paymentInstrument` (value: `"paymentInstrument"`)
25+
26+
27+
28+
29+
<a name="StateEnum"></a>
30+
## Enum: StateEnum
31+
32+
33+
* `ACTIVE` (value: `"ACTIVE"`)
34+
35+
* `CLOSED` (value: `"CLOSED"`)
36+
37+
38+
39+

docs/CaptureApi.md

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# CyberSource.CaptureApi
2+
3+
All URIs are relative to *https://api.cybersource.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**capturePayment**](CaptureApi.md#capturePayment) | **POST** /v2/payments/{id}/captures | Capture a Payment
8+
[**getCapture**](CaptureApi.md#getCapture) | **GET** /v2/captures/{id} | Retrieve a Capture
9+
10+
11+
<a name="capturePayment"></a>
12+
# **capturePayment**
13+
> InlineResponse2012 capturePayment(capturePaymentRequest, id)
14+
15+
Capture a Payment
16+
17+
Include the payment ID in the POST request to capture the payment amount.
18+
19+
### Example
20+
```javascript
21+
var CyberSource = require('CyberSource');
22+
23+
var apiInstance = new CyberSource.CaptureApi();
24+
25+
var capturePaymentRequest = new CyberSource.CapturePaymentRequest(); // CapturePaymentRequest |
26+
27+
var id = "id_example"; // String | The payment ID returned from a previous payment request. This ID links the capture to the payment.
28+
29+
30+
var callback = function(error, data, response) {
31+
if (error) {
32+
console.error(error);
33+
} else {
34+
console.log('API called successfully. Returned data: ' + data);
35+
}
36+
};
37+
apiInstance.capturePayment(capturePaymentRequest, id, callback);
38+
```
39+
40+
### Parameters
41+
42+
Name | Type | Description | Notes
43+
------------- | ------------- | ------------- | -------------
44+
**capturePaymentRequest** | [**CapturePaymentRequest**](CapturePaymentRequest.md)| |
45+
**id** | **String**| The payment ID returned from a previous payment request. This ID links the capture to the payment. |
46+
47+
### Return type
48+
49+
[**InlineResponse2012**](InlineResponse2012.md)
50+
51+
### Authorization
52+
53+
No authorization required
54+
55+
### HTTP request headers
56+
57+
- **Content-Type**: Not defined
58+
- **Accept**: application/json
59+
60+
<a name="getCapture"></a>
61+
# **getCapture**
62+
> InlineResponse2004 getCapture(id)
63+
64+
Retrieve a Capture
65+
66+
Include the capture ID in the GET request to retrieve the capture details.
67+
68+
### Example
69+
```javascript
70+
var CyberSource = require('CyberSource');
71+
72+
var apiInstance = new CyberSource.CaptureApi();
73+
74+
var id = "id_example"; // String | The capture ID returned from a previous capture request.
75+
76+
77+
var callback = function(error, data, response) {
78+
if (error) {
79+
console.error(error);
80+
} else {
81+
console.log('API called successfully. Returned data: ' + data);
82+
}
83+
};
84+
apiInstance.getCapture(id, callback);
85+
```
86+
87+
### Parameters
88+
89+
Name | Type | Description | Notes
90+
------------- | ------------- | ------------- | -------------
91+
**id** | **String**| The capture ID returned from a previous capture request. |
92+
93+
### Return type
94+
95+
[**InlineResponse2004**](InlineResponse2004.md)
96+
97+
### Authorization
98+
99+
No authorization required
100+
101+
### HTTP request headers
102+
103+
- **Content-Type**: Not defined
104+
- **Accept**: application/json
105+

docs/CapturePaymentRequest.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CyberSource.CapturePaymentRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**clientReferenceInformation** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional]
7+
**processingInformation** | [**V2paymentsidcapturesProcessingInformation**](V2paymentsidcapturesProcessingInformation.md) | | [optional]
8+
**paymentInformation** | [**V2paymentsidcapturesPaymentInformation**](V2paymentsidcapturesPaymentInformation.md) | | [optional]
9+
**orderInformation** | [**V2paymentsidcapturesOrderInformation**](V2paymentsidcapturesOrderInformation.md) | | [optional]
10+
**buyerInformation** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional]
11+
**deviceInformation** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional]
12+
**merchantInformation** | [**V2paymentsidcapturesMerchantInformation**](V2paymentsidcapturesMerchantInformation.md) | | [optional]
13+
**aggregatorInformation** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional]
14+
**pointOfSaleInformation** | [**V2paymentsidcapturesPointOfSaleInformation**](V2paymentsidcapturesPointOfSaleInformation.md) | | [optional]
15+
**merchantDefinedInformation** | [**[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional]
16+
17+

docs/CardInfo.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CyberSource.CardInfo
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**cardNumber** | **String** | Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request. | [optional]
7+
**cardExpirationMonth** | **String** | Two digit expiration month | [optional]
8+
**cardExpirationYear** | **String** | Four digit expiration year | [optional]
9+
**cardType** | **String** | Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types. | [optional]
10+
11+

docs/CreateCreditRequest.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CyberSource.CreateCreditRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**clientReferenceInformation** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional]
7+
**processingInformation** | [**V2creditsProcessingInformation**](V2creditsProcessingInformation.md) | | [optional]
8+
**paymentInformation** | [**V2paymentsidrefundsPaymentInformation**](V2paymentsidrefundsPaymentInformation.md) | | [optional]
9+
**orderInformation** | [**V2paymentsidrefundsOrderInformation**](V2paymentsidrefundsOrderInformation.md) | | [optional]
10+
**buyerInformation** | [**V2paymentsidcapturesBuyerInformation**](V2paymentsidcapturesBuyerInformation.md) | | [optional]
11+
**deviceInformation** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional]
12+
**merchantInformation** | [**V2paymentsidrefundsMerchantInformation**](V2paymentsidrefundsMerchantInformation.md) | | [optional]
13+
**aggregatorInformation** | [**V2paymentsidcapturesAggregatorInformation**](V2paymentsidcapturesAggregatorInformation.md) | | [optional]
14+
**pointOfSaleInformation** | [**V2creditsPointOfSaleInformation**](V2creditsPointOfSaleInformation.md) | | [optional]
15+
**merchantDefinedInformation** | [**[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional]
16+
17+

docs/CreatePaymentRequest.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CyberSource.CreatePaymentRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**clientReferenceInformation** | [**V2paymentsClientReferenceInformation**](V2paymentsClientReferenceInformation.md) | | [optional]
7+
**processingInformation** | [**V2paymentsProcessingInformation**](V2paymentsProcessingInformation.md) | | [optional]
8+
**paymentInformation** | [**V2paymentsPaymentInformation**](V2paymentsPaymentInformation.md) | | [optional]
9+
**orderInformation** | [**V2paymentsOrderInformation**](V2paymentsOrderInformation.md) | | [optional]
10+
**buyerInformation** | [**V2paymentsBuyerInformation**](V2paymentsBuyerInformation.md) | | [optional]
11+
**recipientInformation** | [**V2paymentsRecipientInformation**](V2paymentsRecipientInformation.md) | | [optional]
12+
**deviceInformation** | [**V2paymentsDeviceInformation**](V2paymentsDeviceInformation.md) | | [optional]
13+
**merchantInformation** | [**V2paymentsMerchantInformation**](V2paymentsMerchantInformation.md) | | [optional]
14+
**aggregatorInformation** | [**V2paymentsAggregatorInformation**](V2paymentsAggregatorInformation.md) | | [optional]
15+
**consumerAuthenticationInformation** | [**V2paymentsConsumerAuthenticationInformation**](V2paymentsConsumerAuthenticationInformation.md) | | [optional]
16+
**pointOfSaleInformation** | [**V2paymentsPointOfSaleInformation**](V2paymentsPointOfSaleInformation.md) | | [optional]
17+
**merchantDefinedInformation** | [**[V2paymentsMerchantDefinedInformation]**](V2paymentsMerchantDefinedInformation.md) | TBD | [optional]
18+
19+

0 commit comments

Comments
 (0)