cybersource-rest-client 0.0.47 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/PlansApi.md +12 -20
- package/docs/PtsV2PaymentsPost201Response.md +1 -0
- package/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md +12 -0
- package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md +10 -0
- package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md +10 -0
- package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md +10 -0
- package/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md +10 -0
- package/docs/Ptsv2paymentsProcessingInformation.md +1 -1
- package/docs/Ptsv2paymentsRecipientInformation.md +1 -0
- package/docs/SubscriptionsApi.md +14 -26
- package/docs/TssV2TransactionsGet200Response.md +1 -0
- package/docs/TssV2TransactionsPost201Response.md +0 -1
- package/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +2 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md +8 -0
- package/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +2 -0
- package/package.json +1 -1
- package/src/api/PlansApi.js +18 -18
- package/src/api/SubscriptionsApi.js +23 -23
- package/src/index.js +33 -3
- package/src/model/PtsV2PaymentsPost201Response.js +12 -4
- package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActions.js +114 -0
- package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.js +100 -0
- package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.js +100 -0
- package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.js +100 -0
- package/src/model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.js +100 -0
- package/src/model/Ptsv2paymentsProcessingInformation.js +1 -1
- package/src/model/Ptsv2paymentsRecipientInformation.js +9 -0
- package/src/model/TssV2TransactionsGet200Response.js +9 -0
- package/src/model/TssV2TransactionsPost201Response.js +0 -9
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.js +18 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.js +82 -0
- package/src/model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.js +21 -4
package/docs/PlansApi.md
CHANGED
|
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
|
16
16
|
|
|
17
17
|
<a name="activatePlan"></a>
|
|
18
18
|
# **activatePlan**
|
|
19
|
-
> InlineResponse2004 activatePlan(id
|
|
19
|
+
> InlineResponse2004 activatePlan(id)
|
|
20
20
|
|
|
21
21
|
Activate a Plan
|
|
22
22
|
|
|
@@ -30,9 +30,6 @@ var apiInstance = new CyberSource.PlansApi();
|
|
|
30
30
|
|
|
31
31
|
var id = "id_example"; // String | Plan Id
|
|
32
32
|
|
|
33
|
-
var opts = {
|
|
34
|
-
'activatePlanRequest': null // Object |
|
|
35
|
-
};
|
|
36
33
|
|
|
37
34
|
var callback = function(error, data, response) {
|
|
38
35
|
if (error) {
|
|
@@ -41,7 +38,7 @@ var callback = function(error, data, response) {
|
|
|
41
38
|
console.log('API called successfully. Returned data: ' + data);
|
|
42
39
|
}
|
|
43
40
|
};
|
|
44
|
-
apiInstance.activatePlan(id,
|
|
41
|
+
apiInstance.activatePlan(id, callback);
|
|
45
42
|
```
|
|
46
43
|
|
|
47
44
|
### Parameters
|
|
@@ -49,7 +46,6 @@ apiInstance.activatePlan(id, opts, callback);
|
|
|
49
46
|
Name | Type | Description | Notes
|
|
50
47
|
------------- | ------------- | ------------- | -------------
|
|
51
48
|
**id** | **String**| Plan Id |
|
|
52
|
-
**activatePlanRequest** | **Object**| | [optional]
|
|
53
49
|
|
|
54
50
|
### Return type
|
|
55
51
|
|
|
@@ -62,7 +58,7 @@ No authorization required
|
|
|
62
58
|
### HTTP request headers
|
|
63
59
|
|
|
64
60
|
- **Content-Type**: application/json;charset=utf-8
|
|
65
|
-
- **Accept**: application/
|
|
61
|
+
- **Accept**: application/json;charset=utf-8
|
|
66
62
|
|
|
67
63
|
<a name="createPlan"></a>
|
|
68
64
|
# **createPlan**
|
|
@@ -108,11 +104,11 @@ No authorization required
|
|
|
108
104
|
### HTTP request headers
|
|
109
105
|
|
|
110
106
|
- **Content-Type**: application/json;charset=utf-8
|
|
111
|
-
- **Accept**: application/
|
|
107
|
+
- **Accept**: application/json;charset=utf-8
|
|
112
108
|
|
|
113
109
|
<a name="deactivatePlan"></a>
|
|
114
110
|
# **deactivatePlan**
|
|
115
|
-
> InlineResponse2004 deactivatePlan(id
|
|
111
|
+
> InlineResponse2004 deactivatePlan(id)
|
|
116
112
|
|
|
117
113
|
Deactivate a Plan
|
|
118
114
|
|
|
@@ -126,9 +122,6 @@ var apiInstance = new CyberSource.PlansApi();
|
|
|
126
122
|
|
|
127
123
|
var id = "id_example"; // String | Plan Id
|
|
128
124
|
|
|
129
|
-
var opts = {
|
|
130
|
-
'deactivatePlanRequest': null // Object |
|
|
131
|
-
};
|
|
132
125
|
|
|
133
126
|
var callback = function(error, data, response) {
|
|
134
127
|
if (error) {
|
|
@@ -137,7 +130,7 @@ var callback = function(error, data, response) {
|
|
|
137
130
|
console.log('API called successfully. Returned data: ' + data);
|
|
138
131
|
}
|
|
139
132
|
};
|
|
140
|
-
apiInstance.deactivatePlan(id,
|
|
133
|
+
apiInstance.deactivatePlan(id, callback);
|
|
141
134
|
```
|
|
142
135
|
|
|
143
136
|
### Parameters
|
|
@@ -145,7 +138,6 @@ apiInstance.deactivatePlan(id, opts, callback);
|
|
|
145
138
|
Name | Type | Description | Notes
|
|
146
139
|
------------- | ------------- | ------------- | -------------
|
|
147
140
|
**id** | **String**| Plan Id |
|
|
148
|
-
**deactivatePlanRequest** | **Object**| | [optional]
|
|
149
141
|
|
|
150
142
|
### Return type
|
|
151
143
|
|
|
@@ -158,7 +150,7 @@ No authorization required
|
|
|
158
150
|
### HTTP request headers
|
|
159
151
|
|
|
160
152
|
- **Content-Type**: application/json;charset=utf-8
|
|
161
|
-
- **Accept**: application/
|
|
153
|
+
- **Accept**: application/json;charset=utf-8
|
|
162
154
|
|
|
163
155
|
<a name="deletePlan"></a>
|
|
164
156
|
# **deletePlan**
|
|
@@ -204,7 +196,7 @@ No authorization required
|
|
|
204
196
|
### HTTP request headers
|
|
205
197
|
|
|
206
198
|
- **Content-Type**: application/json;charset=utf-8
|
|
207
|
-
- **Accept**: application/
|
|
199
|
+
- **Accept**: application/json;charset=utf-8
|
|
208
200
|
|
|
209
201
|
<a name="getPlan"></a>
|
|
210
202
|
# **getPlan**
|
|
@@ -250,7 +242,7 @@ No authorization required
|
|
|
250
242
|
### HTTP request headers
|
|
251
243
|
|
|
252
244
|
- **Content-Type**: application/json;charset=utf-8
|
|
253
|
-
- **Accept**: application/
|
|
245
|
+
- **Accept**: application/json;charset=utf-8
|
|
254
246
|
|
|
255
247
|
<a name="getPlanCode"></a>
|
|
256
248
|
# **getPlanCode**
|
|
@@ -290,7 +282,7 @@ No authorization required
|
|
|
290
282
|
### HTTP request headers
|
|
291
283
|
|
|
292
284
|
- **Content-Type**: application/json;charset=utf-8
|
|
293
|
-
- **Accept**: application/
|
|
285
|
+
- **Accept**: application/json;charset=utf-8
|
|
294
286
|
|
|
295
287
|
<a name="getPlans"></a>
|
|
296
288
|
# **getPlans**
|
|
@@ -345,7 +337,7 @@ No authorization required
|
|
|
345
337
|
### HTTP request headers
|
|
346
338
|
|
|
347
339
|
- **Content-Type**: application/json;charset=utf-8
|
|
348
|
-
- **Accept**: application/
|
|
340
|
+
- **Accept**: application/json;charset=utf-8
|
|
349
341
|
|
|
350
342
|
<a name="updatePlan"></a>
|
|
351
343
|
# **updatePlan**
|
|
@@ -394,5 +386,5 @@ No authorization required
|
|
|
394
386
|
### HTTP request headers
|
|
395
387
|
|
|
396
388
|
- **Content-Type**: application/json;charset=utf-8
|
|
397
|
-
- **Accept**: application/
|
|
389
|
+
- **Accept**: application/json;charset=utf-8
|
|
398
390
|
|
|
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
|
|
23
23
|
**buyerInformation** | [**PtsV2PaymentsPost201ResponseBuyerInformation**](PtsV2PaymentsPost201ResponseBuyerInformation.md) | | [optional]
|
|
24
24
|
**riskInformation** | [**PtsV2PaymentsPost201ResponseRiskInformation**](PtsV2PaymentsPost201ResponseRiskInformation.md) | | [optional]
|
|
25
25
|
**consumerAuthenticationInformation** | [**PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation**](PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md) | | [optional]
|
|
26
|
+
**embeddedActions** | [**PtsV2PaymentsPost201ResponseEmbeddedActions**](PtsV2PaymentsPost201ResponseEmbeddedActions.md) | | [optional]
|
|
26
27
|
**watchlistScreeningInformation** | [**PtsV2PaymentsPost201ResponseWatchlistScreeningInformation**](PtsV2PaymentsPost201ResponseWatchlistScreeningInformation.md) | | [optional]
|
|
27
28
|
|
|
28
29
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActions
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**CAPTURE** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE**](PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md) | | [optional]
|
|
7
|
+
**DECISION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION**](PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md) | | [optional]
|
|
8
|
+
**CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional]
|
|
9
|
+
**VALIDATE_CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional]
|
|
10
|
+
**WATCHLIST_SCREENING** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING**](PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**status** | **String** | The status of the submitted transaction. Possible values: - PENDING | [optional]
|
|
7
|
+
**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED | [optional]
|
|
8
|
+
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional]
|
|
7
|
+
**reason** | **String** | The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` | [optional]
|
|
8
|
+
**message** | **String** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**status** | **String** | The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` | [optional]
|
|
7
|
+
**reason** | **String** | The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` | [optional]
|
|
8
|
+
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CyberSource.PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**status** | **String** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional]
|
|
7
|
+
**reason** | **String** | The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` | [optional]
|
|
8
|
+
**message** | **String** | The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**actionList** | **[String]** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer
|
|
6
|
+
**actionList** | **[String]** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional]
|
|
7
7
|
**enableEscrowOption** | **Boolean** | Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement. | [optional]
|
|
8
8
|
**actionTokenTypes** | **[String]** | CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress | [optional]
|
|
9
9
|
**binSource** | **String** | Bin Source File Identifier. Possible values: - itmx - rupay | [optional]
|
|
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**lastName** | **String** | Recipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional]
|
|
8
8
|
**middleName** | **String** | Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional]
|
|
9
9
|
**postalCode** | **String** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional]
|
|
10
|
+
**dateOfBirth** | **String** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional]
|
|
10
11
|
|
|
11
12
|
|
package/docs/SubscriptionsApi.md
CHANGED
|
@@ -16,7 +16,7 @@ Method | HTTP request | Description
|
|
|
16
16
|
|
|
17
17
|
<a name="activateSubscription"></a>
|
|
18
18
|
# **activateSubscription**
|
|
19
|
-
> InlineResponse2009 activateSubscription(id
|
|
19
|
+
> InlineResponse2009 activateSubscription(id)
|
|
20
20
|
|
|
21
21
|
Activate a Subscription
|
|
22
22
|
|
|
@@ -30,9 +30,6 @@ var apiInstance = new CyberSource.SubscriptionsApi();
|
|
|
30
30
|
|
|
31
31
|
var id = "id_example"; // String | Subscription Id
|
|
32
32
|
|
|
33
|
-
var opts = {
|
|
34
|
-
'activateSubscriptionRequest': null // Object |
|
|
35
|
-
};
|
|
36
33
|
|
|
37
34
|
var callback = function(error, data, response) {
|
|
38
35
|
if (error) {
|
|
@@ -41,7 +38,7 @@ var callback = function(error, data, response) {
|
|
|
41
38
|
console.log('API called successfully. Returned data: ' + data);
|
|
42
39
|
}
|
|
43
40
|
};
|
|
44
|
-
apiInstance.activateSubscription(id,
|
|
41
|
+
apiInstance.activateSubscription(id, callback);
|
|
45
42
|
```
|
|
46
43
|
|
|
47
44
|
### Parameters
|
|
@@ -49,7 +46,6 @@ apiInstance.activateSubscription(id, opts, callback);
|
|
|
49
46
|
Name | Type | Description | Notes
|
|
50
47
|
------------- | ------------- | ------------- | -------------
|
|
51
48
|
**id** | **String**| Subscription Id |
|
|
52
|
-
**activateSubscriptionRequest** | **Object**| | [optional]
|
|
53
49
|
|
|
54
50
|
### Return type
|
|
55
51
|
|
|
@@ -62,11 +58,11 @@ No authorization required
|
|
|
62
58
|
### HTTP request headers
|
|
63
59
|
|
|
64
60
|
- **Content-Type**: application/json;charset=utf-8
|
|
65
|
-
- **Accept**: application/
|
|
61
|
+
- **Accept**: application/json;charset=utf-8
|
|
66
62
|
|
|
67
63
|
<a name="cancelSubscription"></a>
|
|
68
64
|
# **cancelSubscription**
|
|
69
|
-
> InlineResponse202 cancelSubscription(id
|
|
65
|
+
> InlineResponse202 cancelSubscription(id)
|
|
70
66
|
|
|
71
67
|
Cancel a Subscription
|
|
72
68
|
|
|
@@ -80,9 +76,6 @@ var apiInstance = new CyberSource.SubscriptionsApi();
|
|
|
80
76
|
|
|
81
77
|
var id = "id_example"; // String | Subscription Id
|
|
82
78
|
|
|
83
|
-
var opts = {
|
|
84
|
-
'cancelSubscriptionRequest': null // Object |
|
|
85
|
-
};
|
|
86
79
|
|
|
87
80
|
var callback = function(error, data, response) {
|
|
88
81
|
if (error) {
|
|
@@ -91,7 +84,7 @@ var callback = function(error, data, response) {
|
|
|
91
84
|
console.log('API called successfully. Returned data: ' + data);
|
|
92
85
|
}
|
|
93
86
|
};
|
|
94
|
-
apiInstance.cancelSubscription(id,
|
|
87
|
+
apiInstance.cancelSubscription(id, callback);
|
|
95
88
|
```
|
|
96
89
|
|
|
97
90
|
### Parameters
|
|
@@ -99,7 +92,6 @@ apiInstance.cancelSubscription(id, opts, callback);
|
|
|
99
92
|
Name | Type | Description | Notes
|
|
100
93
|
------------- | ------------- | ------------- | -------------
|
|
101
94
|
**id** | **String**| Subscription Id |
|
|
102
|
-
**cancelSubscriptionRequest** | **Object**| | [optional]
|
|
103
95
|
|
|
104
96
|
### Return type
|
|
105
97
|
|
|
@@ -112,7 +104,7 @@ No authorization required
|
|
|
112
104
|
### HTTP request headers
|
|
113
105
|
|
|
114
106
|
- **Content-Type**: application/json;charset=utf-8
|
|
115
|
-
- **Accept**: application/
|
|
107
|
+
- **Accept**: application/json;charset=utf-8
|
|
116
108
|
|
|
117
109
|
<a name="createSubscription"></a>
|
|
118
110
|
# **createSubscription**
|
|
@@ -158,7 +150,7 @@ No authorization required
|
|
|
158
150
|
### HTTP request headers
|
|
159
151
|
|
|
160
152
|
- **Content-Type**: application/json;charset=utf-8
|
|
161
|
-
- **Accept**: application/
|
|
153
|
+
- **Accept**: application/json;charset=utf-8
|
|
162
154
|
|
|
163
155
|
<a name="getAllSubscriptions"></a>
|
|
164
156
|
# **getAllSubscriptions**
|
|
@@ -211,7 +203,7 @@ No authorization required
|
|
|
211
203
|
### HTTP request headers
|
|
212
204
|
|
|
213
205
|
- **Content-Type**: application/json;charset=utf-8
|
|
214
|
-
- **Accept**: application/
|
|
206
|
+
- **Accept**: application/json;charset=utf-8
|
|
215
207
|
|
|
216
208
|
<a name="getSubscription"></a>
|
|
217
209
|
# **getSubscription**
|
|
@@ -257,7 +249,7 @@ No authorization required
|
|
|
257
249
|
### HTTP request headers
|
|
258
250
|
|
|
259
251
|
- **Content-Type**: application/json;charset=utf-8
|
|
260
|
-
- **Accept**: application/
|
|
252
|
+
- **Accept**: application/json;charset=utf-8
|
|
261
253
|
|
|
262
254
|
<a name="getSubscriptionCode"></a>
|
|
263
255
|
# **getSubscriptionCode**
|
|
@@ -297,11 +289,11 @@ No authorization required
|
|
|
297
289
|
### HTTP request headers
|
|
298
290
|
|
|
299
291
|
- **Content-Type**: application/json;charset=utf-8
|
|
300
|
-
- **Accept**: application/
|
|
292
|
+
- **Accept**: application/json;charset=utf-8
|
|
301
293
|
|
|
302
294
|
<a name="suspendSubscription"></a>
|
|
303
295
|
# **suspendSubscription**
|
|
304
|
-
> InlineResponse2021 suspendSubscription(id
|
|
296
|
+
> InlineResponse2021 suspendSubscription(id)
|
|
305
297
|
|
|
306
298
|
Suspend a Subscription
|
|
307
299
|
|
|
@@ -315,9 +307,6 @@ var apiInstance = new CyberSource.SubscriptionsApi();
|
|
|
315
307
|
|
|
316
308
|
var id = "id_example"; // String | Subscription Id
|
|
317
309
|
|
|
318
|
-
var opts = {
|
|
319
|
-
'suspendSubscriptionRequest': null // Object |
|
|
320
|
-
};
|
|
321
310
|
|
|
322
311
|
var callback = function(error, data, response) {
|
|
323
312
|
if (error) {
|
|
@@ -326,7 +315,7 @@ var callback = function(error, data, response) {
|
|
|
326
315
|
console.log('API called successfully. Returned data: ' + data);
|
|
327
316
|
}
|
|
328
317
|
};
|
|
329
|
-
apiInstance.suspendSubscription(id,
|
|
318
|
+
apiInstance.suspendSubscription(id, callback);
|
|
330
319
|
```
|
|
331
320
|
|
|
332
321
|
### Parameters
|
|
@@ -334,7 +323,6 @@ apiInstance.suspendSubscription(id, opts, callback);
|
|
|
334
323
|
Name | Type | Description | Notes
|
|
335
324
|
------------- | ------------- | ------------- | -------------
|
|
336
325
|
**id** | **String**| Subscription Id |
|
|
337
|
-
**suspendSubscriptionRequest** | **Object**| | [optional]
|
|
338
326
|
|
|
339
327
|
### Return type
|
|
340
328
|
|
|
@@ -347,7 +335,7 @@ No authorization required
|
|
|
347
335
|
### HTTP request headers
|
|
348
336
|
|
|
349
337
|
- **Content-Type**: application/json;charset=utf-8
|
|
350
|
-
- **Accept**: application/
|
|
338
|
+
- **Accept**: application/json;charset=utf-8
|
|
351
339
|
|
|
352
340
|
<a name="updateSubscription"></a>
|
|
353
341
|
# **updateSubscription**
|
|
@@ -396,5 +384,5 @@ No authorization required
|
|
|
396
384
|
### HTTP request headers
|
|
397
385
|
|
|
398
386
|
- **Content-Type**: application/json;charset=utf-8
|
|
399
|
-
- **Accept**: application/
|
|
387
|
+
- **Accept**: application/json;charset=utf-8
|
|
400
388
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**reconciliationId** | **String** | Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. | [optional]
|
|
9
9
|
**merchantId** | **String** | Your CyberSource merchant ID. | [optional]
|
|
10
10
|
**submitTimeUTC** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional]
|
|
11
|
+
**status** | **String** | The status of the submitted transaction. | [optional]
|
|
11
12
|
**applicationInformation** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional]
|
|
12
13
|
**buyerInformation** | [**TssV2TransactionsGet200ResponseBuyerInformation**](TssV2TransactionsGet200ResponseBuyerInformation.md) | | [optional]
|
|
13
14
|
**clientReferenceInformation** | [**TssV2TransactionsGet200ResponseClientReferenceInformation**](TssV2TransactionsGet200ResponseClientReferenceInformation.md) | | [optional]
|
|
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional]
|
|
14
14
|
**count** | **Number** | Results for this page, this could be below the limit. | [optional]
|
|
15
15
|
**totalCount** | **Number** | Total number of results. | [optional]
|
|
16
|
-
**status** | **String** | The status of the submitted transaction. | [optional]
|
|
17
16
|
**submitTimeUtc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional]
|
|
18
17
|
**embedded** | [**TssV2TransactionsPost201ResponseEmbedded**](TssV2TransactionsPost201ResponseEmbedded.md) | | [optional]
|
|
19
18
|
**links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional]
|
|
@@ -5,6 +5,8 @@ Name | Type | Description | Notes
|
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**name** | **String** | The name of the CyberSource transaction type (such as CC settlement or CC authorization) that the merchant wants to process in a transaction request. More than one transaction type can included in a transaction request. Each transaction type separately returns their own status, reasonCode, rCode, and rFlag messages. | [optional]
|
|
7
7
|
**reasonCode** | **String** | 3-digit reason code that indicates why the customer profile payment succeeded or failed. | [optional]
|
|
8
|
+
**status** | **String** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional]
|
|
9
|
+
**reason** | **String** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional]
|
|
8
10
|
**rCode** | **String** | Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. | [optional]
|
|
9
11
|
**rFlag** | **String** | One-word description of the result of the application. | [optional]
|
|
10
12
|
**reconciliationId** | **String** | Reference number that you use to reconcile your CyberSource reports with your processor reports. | [optional]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# CyberSource.TssV2TransactionsPost201ResponseEmbeddedErrorInformation
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**reason** | **String** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional]
|
|
7
|
+
|
|
8
|
+
|
|
@@ -6,11 +6,13 @@ Name | Type | Description | Notes
|
|
|
6
6
|
**id** | **String** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional]
|
|
7
7
|
**submitTimeUtc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional]
|
|
8
8
|
**merchantId** | **String** | Your CyberSource merchant ID. | [optional]
|
|
9
|
+
**status** | **String** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional]
|
|
9
10
|
**applicationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedApplicationInformation**](TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.md) | | [optional]
|
|
10
11
|
**buyerInformation** | [**TssV2TransactionsPost201ResponseEmbeddedBuyerInformation**](TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) | | [optional]
|
|
11
12
|
**clientReferenceInformation** | [**TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation**](TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) | | [optional]
|
|
12
13
|
**consumerAuthenticationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation**](TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) | | [optional]
|
|
13
14
|
**deviceInformation** | [**Riskv1authenticationresultsDeviceInformation**](Riskv1authenticationresultsDeviceInformation.md) | | [optional]
|
|
15
|
+
**errorInformation** | [**TssV2TransactionsPost201ResponseEmbeddedErrorInformation**](TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md) | | [optional]
|
|
14
16
|
**fraudMarkingInformation** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional]
|
|
15
17
|
**merchantDefinedInformation** | [**[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | The object containing the custom data that the merchant defines. | [optional]
|
|
16
18
|
**merchantInformation** | [**TssV2TransactionsPost201ResponseEmbeddedMerchantInformation**](TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) | | [optional]
|
package/package.json
CHANGED
package/src/api/PlansApi.js
CHANGED
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
* Activate a Plan
|
|
62
62
|
* Activate a Plan
|
|
63
63
|
* @param {String} id Plan Id
|
|
64
|
-
* @param {Object} opts Optional parameters
|
|
65
|
-
* @param {Object} opts.activatePlanRequest
|
|
66
64
|
* @param {module:api/PlansApi~activatePlanCallback} callback The callback function, accepting three arguments: error, data, response
|
|
67
65
|
* data is of type: {@link module:model/InlineResponse2004}
|
|
68
66
|
*/
|
|
69
|
-
this.activatePlan = function(id,
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
this.activatePlan = function(id, callback) {
|
|
68
|
+
var postBody = null;
|
|
69
|
+
if ('POST' == 'POST') {
|
|
70
|
+
postBody = '{}';
|
|
71
|
+
}
|
|
72
72
|
|
|
73
73
|
// verify the required parameter 'id' is set
|
|
74
74
|
if (id === undefined || id === null) {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
|
|
89
89
|
var authNames = [];
|
|
90
90
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
91
|
-
var accepts = ['application/
|
|
91
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
92
92
|
var returnType = InlineResponse2004;
|
|
93
93
|
|
|
94
94
|
return this.apiClient.callApi(
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
|
|
134
134
|
var authNames = [];
|
|
135
135
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
136
|
-
var accepts = ['application/
|
|
136
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
137
137
|
var returnType = InlineResponse201;
|
|
138
138
|
|
|
139
139
|
return this.apiClient.callApi(
|
|
@@ -155,14 +155,14 @@
|
|
|
155
155
|
* Deactivate a Plan
|
|
156
156
|
* Deactivate a Plan
|
|
157
157
|
* @param {String} id Plan Id
|
|
158
|
-
* @param {Object} opts Optional parameters
|
|
159
|
-
* @param {Object} opts.deactivatePlanRequest
|
|
160
158
|
* @param {module:api/PlansApi~deactivatePlanCallback} callback The callback function, accepting three arguments: error, data, response
|
|
161
159
|
* data is of type: {@link module:model/InlineResponse2004}
|
|
162
160
|
*/
|
|
163
|
-
this.deactivatePlan = function(id,
|
|
164
|
-
|
|
165
|
-
|
|
161
|
+
this.deactivatePlan = function(id, callback) {
|
|
162
|
+
var postBody = null;
|
|
163
|
+
if ('POST' == 'POST') {
|
|
164
|
+
postBody = '{}';
|
|
165
|
+
}
|
|
166
166
|
|
|
167
167
|
// verify the required parameter 'id' is set
|
|
168
168
|
if (id === undefined || id === null) {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
var authNames = [];
|
|
184
184
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
185
|
-
var accepts = ['application/
|
|
185
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
186
186
|
var returnType = InlineResponse2004;
|
|
187
187
|
|
|
188
188
|
return this.apiClient.callApi(
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
|
|
232
232
|
var authNames = [];
|
|
233
233
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
234
|
-
var accepts = ['application/
|
|
234
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
235
235
|
var returnType = InlineResponse2002;
|
|
236
236
|
|
|
237
237
|
return this.apiClient.callApi(
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
|
|
281
281
|
var authNames = [];
|
|
282
282
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
283
|
-
var accepts = ['application/
|
|
283
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
284
284
|
var returnType = InlineResponse2001;
|
|
285
285
|
|
|
286
286
|
return this.apiClient.callApi(
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
|
|
323
323
|
var authNames = [];
|
|
324
324
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
325
|
-
var accepts = ['application/
|
|
325
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
326
326
|
var returnType = InlineResponse2005;
|
|
327
327
|
|
|
328
328
|
return this.apiClient.callApi(
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
|
|
377
377
|
var authNames = [];
|
|
378
378
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
379
|
-
var accepts = ['application/
|
|
379
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
380
380
|
var returnType = InlineResponse200;
|
|
381
381
|
|
|
382
382
|
return this.apiClient.callApi(
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
|
|
429
429
|
var authNames = [];
|
|
430
430
|
var contentTypes = ['application/json;charset=utf-8'];
|
|
431
|
-
var accepts = ['application/
|
|
431
|
+
var accepts = ['application/json;charset=utf-8'];
|
|
432
432
|
var returnType = InlineResponse2003;
|
|
433
433
|
|
|
434
434
|
return this.apiClient.callApi(
|