Skip to content

Commit 166ded5

Browse files
committed
+ Fixing issues in DM API specs
1 parent 37e7d91 commit 166ded5

File tree

5 files changed

+54
-38
lines changed

5 files changed

+54
-38
lines changed

docs/DecisionManagerApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ No authorization required
4949

5050
### HTTP request headers
5151

52-
- **Content-Type**: application/json;charset=utf-8
53-
- **Accept**: application/json;charset=utf-8
52+
- **Content-Type**: application/hal+json;charset=utf-8
53+
- **Accept**: application/hal+json;charset=utf-8
5454

docs/PtsV2PaymentsPost201ResponseErrorInformation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**reason** | [**ReasonEnum**](#ReasonEnum) | 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION | [optional]
7+
**reason** | [**ReasonEnum**](#ReasonEnum) | 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD | [optional]
88
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
99
**details** | [**List<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional]
1010

@@ -28,6 +28,8 @@ INVALID_CVN | "INVALID_CVN"
2828
PAYMENT_REFUSED | "PAYMENT_REFUSED"
2929
INVALID_ACCOUNT | "INVALID_ACCOUNT"
3030
GENERAL_DECLINE | "GENERAL_DECLINE"
31+
DECISION_PROFILE_REJECT | "DECISION_PROFILE_REJECT"
32+
SCORE_EXCEEDS_THRESHOLD | "SCORE_EXCEEDS_THRESHOLD"
3133

3234

3335

generator/cybersource-rest-spec.json

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@
23892389
"properties": {
23902390
"reason": {
23912391
"type": "string",
2392-
"description": "The reason of the status.\n\nPossible values:\n - AVS_FAILED\n - CONTACT_PROCESSOR\n - EXPIRED_CARD\n - PROCESSOR_DECLINED\n - INSUFFICIENT_FUND\n - STOLEN_LOST_CARD\n - ISSUER_UNAVAILABLE\n - UNAUTHORIZED_CARD\n - CVN_NOT_MATCH\n - EXCEEDS_CREDIT_LIMIT\n - INVALID_CVN\n - DECLINED_CHECK\n - BLACKLISTED_CUSTOMER\n - SUSPENDED_ACCOUNT\n - PAYMENT_REFUSED\n - CV_FAILED\n - INVALID_ACCOUNT\n - GENERAL_DECLINE\n - INVALID_MERCHANT_CONFIGURATION\n",
2392+
"description": "The reason of the status.\n\nPossible values:\n - AVS_FAILED\n - CONTACT_PROCESSOR\n - EXPIRED_CARD\n - PROCESSOR_DECLINED\n - INSUFFICIENT_FUND\n - STOLEN_LOST_CARD\n - ISSUER_UNAVAILABLE\n - UNAUTHORIZED_CARD\n - CVN_NOT_MATCH\n - EXCEEDS_CREDIT_LIMIT\n - INVALID_CVN\n - DECLINED_CHECK\n - BLACKLISTED_CUSTOMER\n - SUSPENDED_ACCOUNT\n - PAYMENT_REFUSED\n - CV_FAILED\n - INVALID_ACCOUNT\n - GENERAL_DECLINE\n - INVALID_MERCHANT_CONFIGURATION\n - DECISION_PROFILE_REJECT\n - SCORE_EXCEEDS_THRESHOLD\n",
23932393
"enum": [
23942394
"AVS_FAILED",
23952395
"CONTACT_PROCESSOR",
@@ -2405,7 +2405,9 @@
24052405
"INVALID_CVN",
24062406
"PAYMENT_REFUSED",
24072407
"INVALID_ACCOUNT",
2408-
"GENERAL_DECLINE"
2408+
"GENERAL_DECLINE",
2409+
"DECISION_PROFILE_REJECT",
2410+
"SCORE_EXCEEDS_THRESHOLD"
24092411
]
24102412
},
24112413
"message": {
@@ -17954,6 +17956,12 @@
1795417956
"x-devcenter-metaData": {
1795517957
"categoryTag": "Decision_Manager"
1795617958
},
17959+
"consumes": [
17960+
"application/hal+json;charset=utf-8"
17961+
],
17962+
"produces": [
17963+
"application/hal+json;charset=utf-8"
17964+
],
1795717965
"parameters": [
1795817966
{
1795917967
"name": "createDecisionManagerCaseRequest",
@@ -18805,7 +18813,7 @@
1880518813
"properties": {
1880618814
"reason": {
1880718815
"type": "string",
18808-
"description": "The reason of the status.\n\nPossible values:\n - AVS_FAILED\n - CONTACT_PROCESSOR\n - EXPIRED_CARD\n - PROCESSOR_DECLINED\n - INSUFFICIENT_FUND\n - STOLEN_LOST_CARD\n - ISSUER_UNAVAILABLE\n - UNAUTHORIZED_CARD\n - CVN_NOT_MATCH\n - EXCEEDS_CREDIT_LIMIT\n - INVALID_CVN\n - DECLINED_CHECK\n - BLACKLISTED_CUSTOMER\n - SUSPENDED_ACCOUNT\n - PAYMENT_REFUSED\n - CV_FAILED\n - INVALID_ACCOUNT\n - GENERAL_DECLINE\n - INVALID_MERCHANT_CONFIGURATION\n",
18816+
"description": "The reason of the status.\n\nPossible values:\n - AVS_FAILED\n - CONTACT_PROCESSOR\n - EXPIRED_CARD\n - PROCESSOR_DECLINED\n - INSUFFICIENT_FUND\n - STOLEN_LOST_CARD\n - ISSUER_UNAVAILABLE\n - UNAUTHORIZED_CARD\n - CVN_NOT_MATCH\n - EXCEEDS_CREDIT_LIMIT\n - INVALID_CVN\n - DECLINED_CHECK\n - BLACKLISTED_CUSTOMER\n - SUSPENDED_ACCOUNT\n - PAYMENT_REFUSED\n - CV_FAILED\n - INVALID_ACCOUNT\n - GENERAL_DECLINE\n - INVALID_MERCHANT_CONFIGURATION\n - DECISION_PROFILE_REJECT\n - SCORE_EXCEEDS_THRESHOLD\n",
1880918817
"enum": [
1881018818
"AVS_FAILED",
1881118819
"CONTACT_PROCESSOR",
@@ -18821,7 +18829,9 @@
1882118829
"INVALID_CVN",
1882218830
"PAYMENT_REFUSED",
1882318831
"INVALID_ACCOUNT",
18824-
"GENERAL_DECLINE"
18832+
"GENERAL_DECLINE",
18833+
"DECISION_PROFILE_REJECT",
18834+
"SCORE_EXCEEDS_THRESHOLD"
1882518835
]
1882618836
},
1882718837
"message": {
@@ -19331,18 +19341,18 @@
1933119341
"amountDetails": {
1933219342
"currency": "USD",
1933319343
"totalAmount": "144.14"
19334-
}
19335-
},
19336-
"shipTo": {
19337-
"address1": "96, powers street",
19338-
"address2": "",
19339-
"locality": "Clearwater milford",
19340-
"country": "INDIA",
19341-
"firstName": "James",
19342-
"lastName": "Smith",
19343-
"phoneNumber": "7606160717",
19344-
"administrativeArea": "KA",
19345-
"postalCode": "560056"
19344+
},
19345+
"shipTo": {
19346+
"address1": "96, powers street",
19347+
"address2": "",
19348+
"locality": "Clearwater milford",
19349+
"country": "INDIA",
19350+
"firstName": "James",
19351+
"lastName": "Smith",
19352+
"phoneNumber": "7606160717",
19353+
"administrativeArea": "KA",
19354+
"postalCode": "560056"
19355+
}
1934619356
}
1934719357
},
1934819358
"responseValue": {
@@ -19417,18 +19427,18 @@
1941719427
"amountDetails": {
1941819428
"currency": "USD",
1941919429
"totalAmount": "144.14"
19420-
}
19421-
},
19422-
"shipTo": {
19423-
"address1": "96, powers street",
19424-
"address2": "",
19425-
"locality": "Clearwater milford",
19426-
"country": "INDIA",
19427-
"firstName": "James",
19428-
"lastName": "Smith",
19429-
"phoneNumber": "7606160717",
19430-
"administrativeArea": "KA",
19431-
"postalCode": "560056"
19430+
},
19431+
"shipTo": {
19432+
"address1": "96, powers street",
19433+
"address2": "",
19434+
"locality": "Clearwater milford",
19435+
"country": "INDIA",
19436+
"firstName": "James",
19437+
"lastName": "Smith",
19438+
"phoneNumber": "7606160717",
19439+
"administrativeArea": "KA",
19440+
"postalCode": "560056"
19441+
}
1943219442
}
1943319443
},
1943419444
"responseValue": {
@@ -27915,7 +27925,7 @@
2791527925
"type": "string",
2791627926
"description": "The status of the submitted transaction."
2791727927
},
27918-
"submitTimeUTC": {
27928+
"submitTimeUtc": {
2791927929
"type": "string",
2792027930
"description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\nExample `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\ntime. The `Z` indicates UTC.\n"
2792127931
},

src/main/java/Api/DecisionManagerApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ public com.squareup.okhttp.Call createDecisionManagerCaseCall(CreateDecisionMana
7878
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
7979

8080
final String[] localVarAccepts = {
81-
"application/json;charset=utf-8"
81+
"application/hal+json;charset=utf-8"
8282
};
8383
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
8484
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
8585

8686
final String[] localVarContentTypes = {
87-
"application/json;charset=utf-8"
87+
"application/hal+json;charset=utf-8"
8888
};
8989
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
9090
localVarHeaderParams.put("Content-Type", localVarContentType);

src/main/java/Model/PtsV2PaymentsPost201ResponseErrorInformation.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-05-07T15:32:29.568+05:30")
3333
public class PtsV2PaymentsPost201ResponseErrorInformation {
3434
/**
35-
* 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION
35+
* 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
3636
*/
3737
@JsonAdapter(ReasonEnum.Adapter.class)
3838
public enum ReasonEnum {
@@ -64,7 +64,11 @@ public enum ReasonEnum {
6464

6565
INVALID_ACCOUNT("INVALID_ACCOUNT"),
6666

67-
GENERAL_DECLINE("GENERAL_DECLINE");
67+
GENERAL_DECLINE("GENERAL_DECLINE"),
68+
69+
DECISION_PROFILE_REJECT("DECISION_PROFILE_REJECT"),
70+
71+
SCORE_EXCEEDS_THRESHOLD("SCORE_EXCEEDS_THRESHOLD");
6872

6973
private String value;
7074

@@ -119,10 +123,10 @@ public PtsV2PaymentsPost201ResponseErrorInformation reason(ReasonEnum reason) {
119123
}
120124

121125
/**
122-
* 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION
126+
* 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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
123127
* @return reason
124128
**/
125-
@ApiModelProperty(value = "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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION ")
129+
@ApiModelProperty(value = "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 - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD ")
126130
public ReasonEnum getReason() {
127131
return reason;
128132
}

0 commit comments

Comments
 (0)