Skip to content

Commit d12ecc0

Browse files
committed
Updated API specification (csharp)
1 parent 873545c commit d12ecc0

7 files changed

Lines changed: 31 additions & 46 deletions

File tree

csharp/Acme.App.MastercardApi.Client/Model/TokenDetailDataGetTokenOnly.cs

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ public partial class TokenDetailDataGetTokenOnly : IEquatable<TokenDetailDataGet
3737
/// <param name="tokenNumber">The Token Primary Account Number of the Card. .</param>
3838
/// <param name="expiryMonth">The month of the token expiration date. .</param>
3939
/// <param name="expiryYear">The year of the token expiration date. .</param>
40-
/// <param name="accountHolderData">accountHolderData.</param>
4140
/// <param name="paymentAccountReference">The unique account reference assigned to the PAN. Conditionally returned if the Token Requestor has opted to receive PAR and providing PAR is assigned by Mastercard or the Issuer provides PAR in the authorization message response. .</param>
42-
/// <param name="cardAccountData">cardAccountData.</param>
43-
public TokenDetailDataGetTokenOnly(string tokenNumber = default(string), string expiryMonth = default(string), string expiryYear = default(string), AccountHolderDataOutbound accountHolderData = default(AccountHolderDataOutbound), string paymentAccountReference = default(string), CardAccountDataOutbound cardAccountData = default(CardAccountDataOutbound))
41+
public TokenDetailDataGetTokenOnly(string tokenNumber = default(string), string expiryMonth = default(string), string expiryYear = default(string), string paymentAccountReference = default(string))
4442
{
4543
this.TokenNumber = tokenNumber;
4644
this.ExpiryMonth = expiryMonth;
4745
this.ExpiryYear = expiryYear;
48-
this.AccountHolderData = accountHolderData;
4946
this.PaymentAccountReference = paymentAccountReference;
50-
this.CardAccountData = cardAccountData;
5147
}
5248

5349
/// <summary>
@@ -71,25 +67,13 @@ public partial class TokenDetailDataGetTokenOnly : IEquatable<TokenDetailDataGet
7167
[DataMember(Name = "expiryYear", EmitDefaultValue = false)]
7268
public string ExpiryYear { get; set; }
7369

74-
/// <summary>
75-
/// Gets or Sets AccountHolderData
76-
/// </summary>
77-
[DataMember(Name = "accountHolderData", EmitDefaultValue = false)]
78-
public AccountHolderDataOutbound AccountHolderData { get; set; }
79-
8070
/// <summary>
8171
/// The unique account reference assigned to the PAN. Conditionally returned if the Token Requestor has opted to receive PAR and providing PAR is assigned by Mastercard or the Issuer provides PAR in the authorization message response.
8272
/// </summary>
8373
/// <value>The unique account reference assigned to the PAN. Conditionally returned if the Token Requestor has opted to receive PAR and providing PAR is assigned by Mastercard or the Issuer provides PAR in the authorization message response. </value>
8474
[DataMember(Name = "paymentAccountReference", EmitDefaultValue = false)]
8575
public string PaymentAccountReference { get; set; }
8676

87-
/// <summary>
88-
/// Gets or Sets CardAccountData
89-
/// </summary>
90-
[DataMember(Name = "cardAccountData", EmitDefaultValue = false)]
91-
public CardAccountDataOutbound CardAccountData { get; set; }
92-
9377
/// <summary>
9478
/// Returns the string presentation of the object
9579
/// </summary>
@@ -101,9 +85,7 @@ public override string ToString()
10185
sb.Append(" TokenNumber: ").Append(TokenNumber).Append("\n");
10286
sb.Append(" ExpiryMonth: ").Append(ExpiryMonth).Append("\n");
10387
sb.Append(" ExpiryYear: ").Append(ExpiryYear).Append("\n");
104-
sb.Append(" AccountHolderData: ").Append(AccountHolderData).Append("\n");
10588
sb.Append(" PaymentAccountReference: ").Append(PaymentAccountReference).Append("\n");
106-
sb.Append(" CardAccountData: ").Append(CardAccountData).Append("\n");
10789
sb.Append("}\n");
10890
return sb.ToString();
10991
}
@@ -153,20 +135,10 @@ public bool Equals(TokenDetailDataGetTokenOnly input)
153135
(this.ExpiryYear != null &&
154136
this.ExpiryYear.Equals(input.ExpiryYear))
155137
) &&
156-
(
157-
this.AccountHolderData == input.AccountHolderData ||
158-
(this.AccountHolderData != null &&
159-
this.AccountHolderData.Equals(input.AccountHolderData))
160-
) &&
161138
(
162139
this.PaymentAccountReference == input.PaymentAccountReference ||
163140
(this.PaymentAccountReference != null &&
164141
this.PaymentAccountReference.Equals(input.PaymentAccountReference))
165-
) &&
166-
(
167-
this.CardAccountData == input.CardAccountData ||
168-
(this.CardAccountData != null &&
169-
this.CardAccountData.Equals(input.CardAccountData))
170142
);
171143
}
172144

@@ -185,12 +157,8 @@ public override int GetHashCode()
185157
hashCode = hashCode * 59 + this.ExpiryMonth.GetHashCode();
186158
if (this.ExpiryYear != null)
187159
hashCode = hashCode * 59 + this.ExpiryYear.GetHashCode();
188-
if (this.AccountHolderData != null)
189-
hashCode = hashCode * 59 + this.AccountHolderData.GetHashCode();
190160
if (this.PaymentAccountReference != null)
191161
hashCode = hashCode * 59 + this.PaymentAccountReference.GetHashCode();
192-
if (this.CardAccountData != null)
193-
hashCode = hashCode * 59 + this.CardAccountData.GetHashCode();
194162
return hashCode;
195163
}
196164
}

csharp/Acme.App.MastercardApi.Client/Model/TokenizeResponseSchema.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public partial class TokenizeResponseSchema : IEquatable<TokenizeResponseSchema>
4343
/// <param name="productConfig">productConfig.</param>
4444
/// <param name="tokenInfo">tokenInfo.</param>
4545
/// <param name="tokenDetail">tokenDetail.</param>
46-
public TokenizeResponseSchema(string responseHost = default(string), string responseId = default(string), string decision = default(string), List<AuthenticationMethods> authenticationMethods = default(List<AuthenticationMethods>), string tokenUniqueReference = default(string), string panUniqueReference = default(string), ProductConfig productConfig = default(ProductConfig), TokenInfo tokenInfo = default(TokenInfo), TokenDetail tokenDetail = default(TokenDetail))
46+
/// <param name="supportsAuthentication">(required)Flag to indicate if the issuer supports authentication of the cardholder on the token. Must be one of: - TRUE - FALSE .</param>
47+
public TokenizeResponseSchema(string responseHost = default(string), string responseId = default(string), string decision = default(string), List<AuthenticationMethods> authenticationMethods = default(List<AuthenticationMethods>), string tokenUniqueReference = default(string), string panUniqueReference = default(string), ProductConfig productConfig = default(ProductConfig), TokenInfo tokenInfo = default(TokenInfo), TokenDetail tokenDetail = default(TokenDetail), bool supportsAuthentication = default(bool))
4748
{
4849
this.ResponseHost = responseHost;
4950
this.ResponseId = responseId;
@@ -54,6 +55,7 @@ public partial class TokenizeResponseSchema : IEquatable<TokenizeResponseSchema>
5455
this.ProductConfig = productConfig;
5556
this.TokenInfo = tokenInfo;
5657
this.TokenDetail = tokenDetail;
58+
this.SupportsAuthentication = supportsAuthentication;
5759
}
5860

5961
/// <summary>
@@ -115,6 +117,13 @@ public partial class TokenizeResponseSchema : IEquatable<TokenizeResponseSchema>
115117
[DataMember(Name = "tokenDetail", EmitDefaultValue = false)]
116118
public TokenDetail TokenDetail { get; set; }
117119

120+
/// <summary>
121+
/// (required)Flag to indicate if the issuer supports authentication of the cardholder on the token. Must be one of: - TRUE - FALSE
122+
/// </summary>
123+
/// <value>(required)Flag to indicate if the issuer supports authentication of the cardholder on the token. Must be one of: - TRUE - FALSE </value>
124+
[DataMember(Name = "supportsAuthentication", EmitDefaultValue = true)]
125+
public bool SupportsAuthentication { get; set; }
126+
118127
/// <summary>
119128
/// Returns the string presentation of the object
120129
/// </summary>
@@ -132,6 +141,7 @@ public override string ToString()
132141
sb.Append(" ProductConfig: ").Append(ProductConfig).Append("\n");
133142
sb.Append(" TokenInfo: ").Append(TokenInfo).Append("\n");
134143
sb.Append(" TokenDetail: ").Append(TokenDetail).Append("\n");
144+
sb.Append(" SupportsAuthentication: ").Append(SupportsAuthentication).Append("\n");
135145
sb.Append("}\n");
136146
return sb.ToString();
137147
}
@@ -211,6 +221,10 @@ public bool Equals(TokenizeResponseSchema input)
211221
this.TokenDetail == input.TokenDetail ||
212222
(this.TokenDetail != null &&
213223
this.TokenDetail.Equals(input.TokenDetail))
224+
) &&
225+
(
226+
this.SupportsAuthentication == input.SupportsAuthentication ||
227+
this.SupportsAuthentication.Equals(input.SupportsAuthentication)
214228
);
215229
}
216230

@@ -241,6 +255,7 @@ public override int GetHashCode()
241255
hashCode = hashCode * 59 + this.TokenInfo.GetHashCode();
242256
if (this.TokenDetail != null)
243257
hashCode = hashCode * 59 + this.TokenDetail.GetHashCode();
258+
hashCode = hashCode * 59 + this.SupportsAuthentication.GetHashCode();
244259
return hashCode;
245260
}
246261
}

csharp/Acme.App.MastercardApi.Client/Model/TransactRequestSchema.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected TransactRequestSchema() { }
4242
/// <param name="responseHost">The host that originated the request. Future calls in the same conversation may be routed to this host. .</param>
4343
/// <param name="requestId">Unique identifier for the request. (required).</param>
4444
/// <param name="tokenUniqueReference">Globally unique identifier for the Token, as assigned by MDES. (required).</param>
45-
/// <param name="dsrpType">What type of DSRP cryptogram to create. Must be either UCAF or M_CHIP. (required).</param>
45+
/// <param name="dsrpType">What type of DSRP cryptogram to create. Must be UCAF. (required).</param>
4646
/// <param name="unpredictableNumber">HEX Encoded data (case sensitive) provided by the merchant to provide variability and uniqueness to the generation of a cryptogram. .</param>
4747
public TransactRequestSchema(string responseHost = default(string), string requestId = default(string), string tokenUniqueReference = default(string), string dsrpType = default(string), string unpredictableNumber = default(string))
4848
{
@@ -78,9 +78,9 @@ protected TransactRequestSchema() { }
7878
public string TokenUniqueReference { get; set; }
7979

8080
/// <summary>
81-
/// What type of DSRP cryptogram to create. Must be either UCAF or M_CHIP.
81+
/// What type of DSRP cryptogram to create. Must be UCAF.
8282
/// </summary>
83-
/// <value>What type of DSRP cryptogram to create. Must be either UCAF or M_CHIP. </value>
83+
/// <value>What type of DSRP cryptogram to create. Must be UCAF. </value>
8484
[DataMember(Name = "dsrpType", IsRequired = true, EmitDefaultValue = false)]
8585
public string DsrpType { get; set; }
8686

csharp/MDES_Digital_Enablement.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,14 @@ components:
591591
$ref: "#/components/schemas/tokenInfo"
592592
tokenDetail:
593593
$ref: "#/components/schemas/tokenDetail"
594+
supportsAuthentication:
595+
type: boolean
596+
description: >
597+
(required)Flag to indicate if the issuer supports authentication of the cardholder on the token. Must be one of:
598+
- TRUE
599+
- FALSE
600+
maxLength: 5
601+
example: true
594602
AssetResponseSchema:
595603
properties:
596604
mediaContents:
@@ -1113,8 +1121,7 @@ components:
11131121
dsrpType:
11141122
type: string
11151123
description: >
1116-
What type of DSRP cryptogram to create. Must be either UCAF or
1117-
M_CHIP.
1124+
What type of DSRP cryptogram to create. Must be UCAF.
11181125
maxLength: 64
11191126
example: UCAF
11201127
unpredictableNumber:
@@ -2088,8 +2095,6 @@ components:
20882095
description: |
20892096
The year of the token expiration date.
20902097
maxLength: 2
2091-
accountHolderData:
2092-
$ref: "#/components/schemas/accountHolderData_outbound"
20932098
paymentAccountReference:
20942099
type: string
20952100
description: >
@@ -2099,8 +2104,6 @@ components:
20992104
in the authorization message response.
21002105
maxLength: 29
21012106
example: 5001a9f027e5629d11e3949a0800a
2102-
cardAccountData:
2103-
$ref: "#/components/schemas/CardAccountData_outbound"
21042107
tokenDetailData_PAR_Only:
21052108
properties:
21062109
paymentAccountReference:

csharp/docs/TokenDetailDataGetTokenOnly.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Name | Type | Description | Notes
77
**TokenNumber** | **string** | The Token Primary Account Number of the Card. | [optional]
88
**ExpiryMonth** | **string** | The month of the token expiration date. | [optional]
99
**ExpiryYear** | **string** | The year of the token expiration date. | [optional]
10-
**AccountHolderData** | [**AccountHolderDataOutbound**](AccountHolderDataOutbound.md) | | [optional]
1110
**PaymentAccountReference** | **string** | The unique account reference assigned to the PAN. Conditionally returned if the Token Requestor has opted to receive PAR and providing PAR is assigned by Mastercard or the Issuer provides PAR in the authorization message response. | [optional]
12-
**CardAccountData** | [**CardAccountDataOutbound**](CardAccountDataOutbound.md) | | [optional]
1311

1412
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1513

csharp/docs/TokenizeResponseSchema.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**ProductConfig** | [**ProductConfig**](ProductConfig.md) | | [optional]
1414
**TokenInfo** | [**TokenInfo**](TokenInfo.md) | | [optional]
1515
**TokenDetail** | [**TokenDetail**](TokenDetail.md) | | [optional]
16+
**SupportsAuthentication** | **bool** | (required)Flag to indicate if the issuer supports authentication of the cardholder on the token. Must be one of: - TRUE - FALSE | [optional]
1617

1718
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1819

csharp/docs/TransactRequestSchema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**ResponseHost** | **string** | The host that originated the request. Future calls in the same conversation may be routed to this host. | [optional]
88
**RequestId** | **string** | Unique identifier for the request. |
99
**TokenUniqueReference** | **string** | Globally unique identifier for the Token, as assigned by MDES. |
10-
**DsrpType** | **string** | What type of DSRP cryptogram to create. Must be either UCAF or M_CHIP. |
10+
**DsrpType** | **string** | What type of DSRP cryptogram to create. Must be UCAF. |
1111
**UnpredictableNumber** | **string** | HEX Encoded data (case sensitive) provided by the merchant to provide variability and uniqueness to the generation of a cryptogram. | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

0 commit comments

Comments
 (0)