Skip to content

Commit 28f14c5

Browse files
authored
Merge pull request #207 from CyberSource/release/may25
Release/may25
2 parents 60361e5 + e5eeac7 commit 28f14c5

File tree

331 files changed

+14078
-2513
lines changed

Some content is hidden

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

331 files changed

+14078
-2513
lines changed

Api/BatchesApi.cs

Lines changed: 107 additions & 71 deletions
Large diffs are not rendered by default.

Api/BillingAgreementsApi.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -384,8 +385,7 @@ public ApiResponse< PtsV2ModifyBillingAgreementPost201Response > BillingAgreemen
384385
{
385386
localVarPostBody = modifyBillingAgreement; // byte array
386387
}
387-
388-
388+
389389
bool isMLESupportedByCybsForApi = true;
390390
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
391391
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "BillingAgreementsDeRegistration,BillingAgreementsDeRegistrationAsync,BillingAgreementsDeRegistrationWithHttpInfo,BillingAgreementsDeRegistrationAsyncWithHttpInfo"))
@@ -627,8 +627,7 @@ public ApiResponse< PtsV2CreditsPost201Response1 > BillingAgreementsIntimationWi
627627
{
628628
localVarPostBody = intimateBillingAgreement; // byte array
629629
}
630-
631-
630+
632631
bool isMLESupportedByCybsForApi = true;
633632
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
634633
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "BillingAgreementsIntimation,BillingAgreementsIntimationAsync,BillingAgreementsIntimationWithHttpInfo,BillingAgreementsIntimationAsyncWithHttpInfo"))
@@ -857,8 +856,7 @@ public ApiResponse< PtsV2CreateBillingAgreementPost201Response > BillingAgreemen
857856
{
858857
localVarPostBody = createBillingAgreement; // byte array
859858
}
860-
861-
859+
862860
bool isMLESupportedByCybsForApi = true;
863861
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
864862
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "BillingAgreementsRegistration,BillingAgreementsRegistrationAsync,BillingAgreementsRegistrationWithHttpInfo,BillingAgreementsRegistrationAsyncWithHttpInfo"))

Api/BinLookupApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -280,8 +281,7 @@ public ApiResponse< InlineResponse2011 > GetAccountInfoWithHttpInfo (CreateBinLo
280281
{
281282
localVarPostBody = createBinLookupRequest; // byte array
282283
}
283-
284-
284+
285285
bool isMLESupportedByCybsForApi = false;
286286
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
287287
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetAccountInfo,GetAccountInfoAsync,GetAccountInfoWithHttpInfo,GetAccountInfoAsyncWithHttpInfo"))

Api/CaptureApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -296,8 +297,7 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt
296297
{
297298
localVarPostBody = capturePaymentRequest; // byte array
298299
}
299-
300-
300+
301301
bool isMLESupportedByCybsForApi = true;
302302
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
303303
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "CapturePayment,CapturePaymentAsync,CapturePaymentWithHttpInfo,CapturePaymentAsyncWithHttpInfo"))

Api/ChargebackDetailsApi.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -311,7 +312,13 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe
311312
{
312313
localVarPostBody = null;
313314
}
314-
315+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
316+
if(null!= filePostBodyAndDelimiter)
317+
{
318+
localVarPostBody = filePostBodyAndDelimiter[0];
319+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
320+
}
321+
315322
bool isMLESupportedByCybsForApi = false;
316323
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
317324
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetChargebackDetails,GetChargebackDetailsAsync,GetChargebackDetailsWithHttpInfo,GetChargebackDetailsAsyncWithHttpInfo"))
@@ -443,6 +450,12 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackDetail
443450
{
444451
localVarPostBody = null;
445452
}
453+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
454+
if(null!= filePostBodyAndDelimiter)
455+
{
456+
localVarPostBody = filePostBodyAndDelimiter[0];
457+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
458+
}
446459

447460
bool isMLESupportedByCybsForApi = false;
448461
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);

Api/ChargebackSummariesApi.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -311,7 +312,13 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback
311312
{
312313
localVarPostBody = null;
313314
}
314-
315+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
316+
if(null!= filePostBodyAndDelimiter)
317+
{
318+
localVarPostBody = filePostBodyAndDelimiter[0];
319+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
320+
}
321+
315322
bool isMLESupportedByCybsForApi = false;
316323
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
317324
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetChargebackSummaries,GetChargebackSummariesAsync,GetChargebackSummariesWithHttpInfo,GetChargebackSummariesAsyncWithHttpInfo"))
@@ -443,6 +450,12 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackSummar
443450
{
444451
localVarPostBody = null;
445452
}
453+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
454+
if(null!= filePostBodyAndDelimiter)
455+
{
456+
localVarPostBody = filePostBodyAndDelimiter[0];
457+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
458+
}
446459

447460
bool isMLESupportedByCybsForApi = false;
448461
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);

Api/ConversionDetailsApi.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -311,7 +312,13 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe
311312
{
312313
localVarPostBody = null;
313314
}
314-
315+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
316+
if(null!= filePostBodyAndDelimiter)
317+
{
318+
localVarPostBody = filePostBodyAndDelimiter[0];
319+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
320+
}
321+
315322
bool isMLESupportedByCybsForApi = false;
316323
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
317324
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetConversionDetail,GetConversionDetailAsync,GetConversionDetailWithHttpInfo,GetConversionDetailAsyncWithHttpInfo"))
@@ -443,6 +450,12 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ConversionDetail
443450
{
444451
localVarPostBody = null;
445452
}
453+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
454+
if(null!= filePostBodyAndDelimiter)
455+
{
456+
localVarPostBody = filePostBodyAndDelimiter[0];
457+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
458+
}
446459

447460
bool isMLESupportedByCybsForApi = false;
448461
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);

Api/CreateNewWebhooksApi.cs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -378,7 +379,13 @@ public ApiResponse< List<InlineResponse2003> > FindProductsToSubscribeWithHttpIn
378379
{
379380
localVarPostBody = null;
380381
}
381-
382+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
383+
if(null!= filePostBodyAndDelimiter)
384+
{
385+
localVarPostBody = filePostBodyAndDelimiter[0];
386+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
387+
}
388+
382389
bool isMLESupportedByCybsForApi = false;
383390
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
384391
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "FindProductsToSubscribe,FindProductsToSubscribeAsync,FindProductsToSubscribeWithHttpInfo,FindProductsToSubscribeAsyncWithHttpInfo"))
@@ -489,6 +496,12 @@ public async System.Threading.Tasks.Task<ApiResponse<List<InlineResponse2003>>>
489496
{
490497
localVarPostBody = null;
491498
}
499+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
500+
if(null!= filePostBodyAndDelimiter)
501+
{
502+
localVarPostBody = filePostBodyAndDelimiter[0];
503+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
504+
}
492505

493506
bool isMLESupportedByCybsForApi = false;
494507
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
@@ -589,8 +602,7 @@ public ApiResponse< InlineResponse2014 > NotificationSubscriptionsV2WebhooksPost
589602
{
590603
localVarPostBody = createWebhook; // byte array
591604
}
592-
593-
605+
594606
bool isMLESupportedByCybsForApi = false;
595607
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
596608
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "NotificationSubscriptionsV2WebhooksPost,NotificationSubscriptionsV2WebhooksPostAsync,NotificationSubscriptionsV2WebhooksPostWithHttpInfo,NotificationSubscriptionsV2WebhooksPostAsyncWithHttpInfo"))
@@ -824,8 +836,7 @@ public ApiResponse< InlineResponse2013 > SaveSymEgressKeyWithHttpInfo (string vC
824836
{
825837
localVarPostBody = saveSymEgressKey; // byte array
826838
}
827-
828-
839+
829840
bool isMLESupportedByCybsForApi = false;
830841
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
831842
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "SaveSymEgressKey,SaveSymEgressKeyAsync,SaveSymEgressKeyWithHttpInfo,SaveSymEgressKeyAsyncWithHttpInfo"))

Api/CreditApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -279,8 +280,7 @@ public ApiResponse< PtsV2CreditsPost201Response > CreateCreditWithHttpInfo (Crea
279280
{
280281
localVarPostBody = createCreditRequest; // byte array
281282
}
282-
283-
283+
284284
bool isMLESupportedByCybsForApi = true;
285285
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
286286
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "CreateCredit,CreateCreditAsync,CreateCreditWithHttpInfo,CreateCreditAsyncWithHttpInfo"))

Api/CustomerApi.cs

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using AuthenticationSdk.util;
2020
using CyberSource.Utilities.Tracking;
2121
using AuthenticationSdk.core;
22+
using CyberSource.Utilities;
2223

2324
namespace CyberSource.Api
2425
{
@@ -435,7 +436,13 @@ public ApiResponse<Object> DeleteCustomerWithHttpInfo (string customerId, string
435436
{
436437
localVarPostBody = null;
437438
}
438-
439+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
440+
if(null!= filePostBodyAndDelimiter)
441+
{
442+
localVarPostBody = filePostBodyAndDelimiter[0];
443+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
444+
}
445+
439446
bool isMLESupportedByCybsForApi = false;
440447
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
441448
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "DeleteCustomer,DeleteCustomerAsync,DeleteCustomerWithHttpInfo,DeleteCustomerAsyncWithHttpInfo"))
@@ -550,6 +557,12 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCustomerAsyn
550557
{
551558
localVarPostBody = null;
552559
}
560+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
561+
if(null!= filePostBodyAndDelimiter)
562+
{
563+
localVarPostBody = filePostBodyAndDelimiter[0];
564+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
565+
}
553566

554567
bool isMLESupportedByCybsForApi = false;
555568
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
@@ -666,7 +679,13 @@ public ApiResponse< PostCustomerRequest > GetCustomerWithHttpInfo (string custom
666679
{
667680
localVarPostBody = null;
668681
}
669-
682+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
683+
if(null!= filePostBodyAndDelimiter)
684+
{
685+
localVarPostBody = filePostBodyAndDelimiter[0];
686+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
687+
}
688+
670689
bool isMLESupportedByCybsForApi = false;
671690
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
672691
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "GetCustomer,GetCustomerAsync,GetCustomerWithHttpInfo,GetCustomerAsyncWithHttpInfo"))
@@ -783,6 +802,12 @@ public async System.Threading.Tasks.Task<ApiResponse<PostCustomerRequest>> GetCu
783802
{
784803
localVarPostBody = null;
785804
}
805+
String[] filePostBodyAndDelimiter = MultipartHelpers.BuildPostBodyForFiles(localVarFileParams);
806+
if(null!= filePostBodyAndDelimiter)
807+
{
808+
localVarPostBody = filePostBodyAndDelimiter[0];
809+
localVarHttpContentType = "multipart/form-data; boundary=" + filePostBodyAndDelimiter[1];
810+
}
786811

787812
bool isMLESupportedByCybsForApi = false;
788813
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
@@ -914,8 +939,7 @@ public ApiResponse< PatchCustomerRequest > PatchCustomerWithHttpInfo (string cus
914939
{
915940
localVarPostBody = patchCustomerRequest; // byte array
916941
}
917-
918-
942+
919943
bool isMLESupportedByCybsForApi = false;
920944
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
921945
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "PatchCustomer,PatchCustomerAsync,PatchCustomerWithHttpInfo,PatchCustomerAsyncWithHttpInfo"))
@@ -1162,8 +1186,7 @@ public ApiResponse< PostCustomerRequest > PostCustomerWithHttpInfo (PostCustomer
11621186
{
11631187
localVarPostBody = postCustomerRequest; // byte array
11641188
}
1165-
1166-
1189+
11671190
bool isMLESupportedByCybsForApi = false;
11681191
MerchantConfig merchantConfig = new MerchantConfig(Configuration.MerchantConfigDictionaryObj, Configuration.MapToControlMLEonAPI);
11691192
if (MLEUtility.CheckIsMLEForAPI(merchantConfig, isMLESupportedByCybsForApi, "PostCustomer,PostCustomerAsync,PostCustomerWithHttpInfo,PostCustomerAsyncWithHttpInfo"))

0 commit comments

Comments
 (0)