Skip to content

Commit 548cfae

Browse files
committed
+ Fixing TMS issues with header fields
1 parent 2314fdc commit 548cfae

10 files changed

+376
-124
lines changed

Api/InstrumentIdentifierApi.cs

Lines changed: 130 additions & 50 deletions
Large diffs are not rendered by default.

Api/PaymentInstrumentApi.cs

Lines changed: 104 additions & 40 deletions
Large diffs are not rendered by default.

cybersource-rest-client-dotnet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OpenAPI spec version: 0.0.1
1212

1313
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1414
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
15-
<ProjectGuid>{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}</ProjectGuid>
15+
<ProjectGuid>{E3B10255-3545-45E4-9BEA-6F1C3D19749A}</ProjectGuid>
1616
<OutputType>Library</OutputType>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
1818
<RootNamespace>CyberSource</RootNamespace>

cybersource-rest-client-dotnet.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet", "cybersource-rest-client-dotnet.csproj", "{E3B10255-3545-45E4-9BEA-6F1C3D19749A}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cybersource-rest-client-dotnet.Test", "test\cybersource-rest-client-dotnet.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Debug|Any CPU = Debug|Any CPU
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{BCA5ACAA-101A-492D-BFBF-A27E5B4B0823}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{E3B10255-3545-45E4-9BEA-6F1C3D19749A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{E3B10255-3545-45E4-9BEA-6F1C3D19749A}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{E3B10255-3545-45E4-9BEA-6F1C3D19749A}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{E3B10255-3545-45E4-9BEA-6F1C3D19749A}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

docs/InstrumentIdentifierApi.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313

1414
<a name="createinstrumentidentifier"></a>
1515
# **CreateInstrumentIdentifier**
16-
> TmsV1InstrumentIdentifiersPost200Response CreateInstrumentIdentifier (CreateInstrumentIdentifierRequest createInstrumentIdentifierRequest)
16+
> TmsV1InstrumentIdentifiersPost200Response CreateInstrumentIdentifier (string profileId, CreateInstrumentIdentifierRequest createInstrumentIdentifierRequest)
1717
1818
Create an Instrument Identifier
1919

@@ -32,12 +32,13 @@ namespace Example
3232
public void main()
3333
{
3434
var apiInstance = new InstrumentIdentifierApi();
35+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
3536
var createInstrumentIdentifierRequest = new CreateInstrumentIdentifierRequest(); // CreateInstrumentIdentifierRequest | Please specify either a Card, Bank Account or Enrollable Card
3637
3738
try
3839
{
3940
// Create an Instrument Identifier
40-
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.CreateInstrumentIdentifier(createInstrumentIdentifierRequest);
41+
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.CreateInstrumentIdentifier(profileId, createInstrumentIdentifierRequest);
4142
Debug.WriteLine(result);
4243
}
4344
catch (Exception e)
@@ -53,6 +54,7 @@ namespace Example
5354

5455
Name | Type | Description | Notes
5556
------------- | ------------- | ------------- | -------------
57+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
5658
**createInstrumentIdentifierRequest** | [**CreateInstrumentIdentifierRequest**](CreateInstrumentIdentifierRequest.md)| Please specify either a Card, Bank Account or Enrollable Card |
5759

5860
### Return type
@@ -72,7 +74,7 @@ No authorization required
7274

7375
<a name="deleteinstrumentidentifier"></a>
7476
# **DeleteInstrumentIdentifier**
75-
> void DeleteInstrumentIdentifier (string tokenId)
77+
> void DeleteInstrumentIdentifier (string profileId, string tokenId)
7678
7779
Delete an Instrument Identifier
7880

@@ -91,12 +93,13 @@ namespace Example
9193
public void main()
9294
{
9395
var apiInstance = new InstrumentIdentifierApi();
96+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
9497
var tokenId = tokenId_example; // string | The TokenId of an Instrument Identifier.
9598
9699
try
97100
{
98101
// Delete an Instrument Identifier
99-
apiInstance.DeleteInstrumentIdentifier(tokenId);
102+
apiInstance.DeleteInstrumentIdentifier(profileId, tokenId);
100103
}
101104
catch (Exception e)
102105
{
@@ -111,6 +114,7 @@ namespace Example
111114

112115
Name | Type | Description | Notes
113116
------------- | ------------- | ------------- | -------------
117+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
114118
**tokenId** | **string**| The TokenId of an Instrument Identifier. |
115119

116120
### Return type
@@ -130,7 +134,7 @@ No authorization required
130134

131135
<a name="getallpaymentinstruments"></a>
132136
# **GetAllPaymentInstruments**
133-
> TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response GetAllPaymentInstruments (string tokenId, long? offset = null, long? limit = null)
137+
> TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response GetAllPaymentInstruments (string profileId, string tokenId, long? offset = null, long? limit = null)
134138
135139
Retrieve all Payment Instruments associated with an Instrument Identifier
136140

@@ -149,14 +153,15 @@ namespace Example
149153
public void main()
150154
{
151155
var apiInstance = new InstrumentIdentifierApi();
156+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
152157
var tokenId = tokenId_example; // string | The TokenId of an Instrument Identifier.
153158
var offset = 789; // long? | Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional) (default to 0)
154159
var limit = 789; // long? | The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional) (default to 20)
155160
156161
try
157162
{
158163
// Retrieve all Payment Instruments associated with an Instrument Identifier
159-
TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response result = apiInstance.GetAllPaymentInstruments(tokenId, offset, limit);
164+
TmsV1InstrumentIdentifiersPaymentInstrumentsGet200Response result = apiInstance.GetAllPaymentInstruments(profileId, tokenId, offset, limit);
160165
Debug.WriteLine(result);
161166
}
162167
catch (Exception e)
@@ -172,6 +177,7 @@ namespace Example
172177

173178
Name | Type | Description | Notes
174179
------------- | ------------- | ------------- | -------------
180+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
175181
**tokenId** | **string**| The TokenId of an Instrument Identifier. |
176182
**offset** | **long?**| Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. | [optional] [default to 0]
177183
**limit** | **long?**| The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. | [optional] [default to 20]
@@ -193,7 +199,7 @@ No authorization required
193199

194200
<a name="getinstrumentidentifier"></a>
195201
# **GetInstrumentIdentifier**
196-
> TmsV1InstrumentIdentifiersPost200Response GetInstrumentIdentifier (string tokenId)
202+
> TmsV1InstrumentIdentifiersPost200Response GetInstrumentIdentifier (string profileId, string tokenId)
197203
198204
Retrieve an Instrument Identifier
199205

@@ -212,12 +218,13 @@ namespace Example
212218
public void main()
213219
{
214220
var apiInstance = new InstrumentIdentifierApi();
221+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
215222
var tokenId = tokenId_example; // string | The TokenId of an Instrument Identifier.
216223
217224
try
218225
{
219226
// Retrieve an Instrument Identifier
220-
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.GetInstrumentIdentifier(tokenId);
227+
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.GetInstrumentIdentifier(profileId, tokenId);
221228
Debug.WriteLine(result);
222229
}
223230
catch (Exception e)
@@ -233,6 +240,7 @@ namespace Example
233240

234241
Name | Type | Description | Notes
235242
------------- | ------------- | ------------- | -------------
243+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
236244
**tokenId** | **string**| The TokenId of an Instrument Identifier. |
237245

238246
### Return type
@@ -252,7 +260,7 @@ No authorization required
252260

253261
<a name="updateinstrumentidentifier"></a>
254262
# **UpdateInstrumentIdentifier**
255-
> TmsV1InstrumentIdentifiersPost200Response UpdateInstrumentIdentifier (string tokenId, UpdateInstrumentIdentifierRequest updateInstrumentIdentifierRequest)
263+
> TmsV1InstrumentIdentifiersPost200Response UpdateInstrumentIdentifier (string profileId, string tokenId, UpdateInstrumentIdentifierRequest updateInstrumentIdentifierRequest)
256264
257265
Update a Instrument Identifier
258266

@@ -271,13 +279,14 @@ namespace Example
271279
public void main()
272280
{
273281
var apiInstance = new InstrumentIdentifierApi();
282+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
274283
var tokenId = tokenId_example; // string | The TokenId of an Instrument Identifier.
275284
var updateInstrumentIdentifierRequest = new UpdateInstrumentIdentifierRequest(); // UpdateInstrumentIdentifierRequest | Specify the previous transaction ID to update.
276285
277286
try
278287
{
279288
// Update a Instrument Identifier
280-
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.UpdateInstrumentIdentifier(tokenId, updateInstrumentIdentifierRequest);
289+
TmsV1InstrumentIdentifiersPost200Response result = apiInstance.UpdateInstrumentIdentifier(profileId, tokenId, updateInstrumentIdentifierRequest);
281290
Debug.WriteLine(result);
282291
}
283292
catch (Exception e)
@@ -293,6 +302,7 @@ namespace Example
293302

294303
Name | Type | Description | Notes
295304
------------- | ------------- | ------------- | -------------
305+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
296306
**tokenId** | **string**| The TokenId of an Instrument Identifier. |
297307
**updateInstrumentIdentifierRequest** | [**UpdateInstrumentIdentifierRequest**](UpdateInstrumentIdentifierRequest.md)| Specify the previous transaction ID to update. |
298308

docs/PaymentInstrumentApi.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313
<a name="createpaymentinstrument"></a>
1414
# **CreatePaymentInstrument**
15-
> TmsV1PaymentinstrumentsPatch200Response CreatePaymentInstrument (CreatePaymentInstrumentRequest createPaymentInstrumentRequest)
15+
> TmsV1PaymentinstrumentsPatch200Response CreatePaymentInstrument (string profileId, CreatePaymentInstrumentRequest createPaymentInstrumentRequest)
1616
1717
Create a Payment Instrument
1818

@@ -31,12 +31,13 @@ namespace Example
3131
public void main()
3232
{
3333
var apiInstance = new PaymentInstrumentApi();
34+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
3435
var createPaymentInstrumentRequest = new CreatePaymentInstrumentRequest(); // CreatePaymentInstrumentRequest | Specify the customer's payment details for card or bank account.
3536
3637
try
3738
{
3839
// Create a Payment Instrument
39-
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.CreatePaymentInstrument(createPaymentInstrumentRequest);
40+
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.CreatePaymentInstrument(profileId, createPaymentInstrumentRequest);
4041
Debug.WriteLine(result);
4142
}
4243
catch (Exception e)
@@ -52,6 +53,7 @@ namespace Example
5253

5354
Name | Type | Description | Notes
5455
------------- | ------------- | ------------- | -------------
56+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
5557
**createPaymentInstrumentRequest** | [**CreatePaymentInstrumentRequest**](CreatePaymentInstrumentRequest.md)| Specify the customer&#39;s payment details for card or bank account. |
5658

5759
### Return type
@@ -71,7 +73,7 @@ No authorization required
7173

7274
<a name="deletepaymentinstrument"></a>
7375
# **DeletePaymentInstrument**
74-
> void DeletePaymentInstrument (string tokenId)
76+
> void DeletePaymentInstrument (string profileId, string tokenId)
7577
7678
Delete a Payment Instrument
7779

@@ -90,12 +92,13 @@ namespace Example
9092
public void main()
9193
{
9294
var apiInstance = new PaymentInstrumentApi();
95+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
9396
var tokenId = tokenId_example; // string | The TokenId of a Payment Instrument.
9497
9598
try
9699
{
97100
// Delete a Payment Instrument
98-
apiInstance.DeletePaymentInstrument(tokenId);
101+
apiInstance.DeletePaymentInstrument(profileId, tokenId);
99102
}
100103
catch (Exception e)
101104
{
@@ -110,6 +113,7 @@ namespace Example
110113

111114
Name | Type | Description | Notes
112115
------------- | ------------- | ------------- | -------------
116+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
113117
**tokenId** | **string**| The TokenId of a Payment Instrument. |
114118

115119
### Return type
@@ -129,7 +133,7 @@ No authorization required
129133

130134
<a name="getpaymentinstrument"></a>
131135
# **GetPaymentInstrument**
132-
> TmsV1PaymentinstrumentsPatch200Response GetPaymentInstrument (string tokenId)
136+
> TmsV1PaymentinstrumentsPatch200Response GetPaymentInstrument (string profileId, string tokenId)
133137
134138
Retrieve a Payment Instrument
135139

@@ -148,12 +152,13 @@ namespace Example
148152
public void main()
149153
{
150154
var apiInstance = new PaymentInstrumentApi();
155+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
151156
var tokenId = tokenId_example; // string | The TokenId of a Payment Instrument.
152157
153158
try
154159
{
155160
// Retrieve a Payment Instrument
156-
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.GetPaymentInstrument(tokenId);
161+
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.GetPaymentInstrument(profileId, tokenId);
157162
Debug.WriteLine(result);
158163
}
159164
catch (Exception e)
@@ -169,6 +174,7 @@ namespace Example
169174

170175
Name | Type | Description | Notes
171176
------------- | ------------- | ------------- | -------------
177+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
172178
**tokenId** | **string**| The TokenId of a Payment Instrument. |
173179

174180
### Return type
@@ -188,7 +194,7 @@ No authorization required
188194

189195
<a name="updatepaymentinstrument"></a>
190196
# **UpdatePaymentInstrument**
191-
> TmsV1PaymentinstrumentsPatch200Response UpdatePaymentInstrument (string tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest)
197+
> TmsV1PaymentinstrumentsPatch200Response UpdatePaymentInstrument (string profileId, string tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest)
192198
193199
Update a Payment Instrument
194200

@@ -207,13 +213,14 @@ namespace Example
207213
public void main()
208214
{
209215
var apiInstance = new PaymentInstrumentApi();
216+
var profileId = profileId_example; // string | The id of a profile containing user specific TMS configuration.
210217
var tokenId = tokenId_example; // string | The TokenId of a Payment Instrument.
211218
var updatePaymentInstrumentRequest = new UpdatePaymentInstrumentRequest(); // UpdatePaymentInstrumentRequest | Specify the customer's payment details.
212219
213220
try
214221
{
215222
// Update a Payment Instrument
216-
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.UpdatePaymentInstrument(tokenId, updatePaymentInstrumentRequest);
223+
TmsV1PaymentinstrumentsPatch200Response result = apiInstance.UpdatePaymentInstrument(profileId, tokenId, updatePaymentInstrumentRequest);
217224
Debug.WriteLine(result);
218225
}
219226
catch (Exception e)
@@ -229,6 +236,7 @@ namespace Example
229236

230237
Name | Type | Description | Notes
231238
------------- | ------------- | ------------- | -------------
239+
**profileId** | **string**| The id of a profile containing user specific TMS configuration. |
232240
**tokenId** | **string**| The TokenId of a Payment Instrument. |
233241
**updatePaymentInstrumentRequest** | [**UpdatePaymentInstrumentRequest**](UpdatePaymentInstrumentRequest.md)| Specify the customer&#39;s payment details. |
234242

0 commit comments

Comments
 (0)