Skip to content

Commit 8e2f5a8

Browse files
authored
Merge pull request #208 from CyberSource/june-2025-release
spec updated for june release
2 parents 28f14c5 + a6896d7 commit 8e2f5a8

File tree

141 files changed

+7073
-1569
lines changed

Some content is hidden

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

141 files changed

+7073
-1569
lines changed

Api/BatchesApi.cs

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

Api/DeviceDeAssociationV3Api.cs renamed to Api/DeviceDeAssociationApi.cs

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

Api/DeviceSearchApi.cs

Lines changed: 288 additions & 30 deletions
Large diffs are not rendered by default.

Api/SubscriptionsApi.cs

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,25 @@ public interface ISubscriptionsApi : IApiAccessor
3333
/// Activate a Subscription
3434
/// </summary>
3535
/// <remarks>
36-
/// Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
36+
/// Activate a &#x60;SUSPENDED&#x60; Subscription
3737
/// </remarks>
3838
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
3939
/// <param name="id">Subscription Id</param>
40+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
4041
/// <returns>ActivateSubscriptionResponse</returns>
41-
ActivateSubscriptionResponse ActivateSubscription (string id);
42+
ActivateSubscriptionResponse ActivateSubscription (string id, bool? processSkippedPayments = null);
4243

4344
/// <summary>
4445
/// Activate a Subscription
4546
/// </summary>
4647
/// <remarks>
47-
/// Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
48+
/// Activate a &#x60;SUSPENDED&#x60; Subscription
4849
/// </remarks>
4950
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
5051
/// <param name="id">Subscription Id</param>
52+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
5153
/// <returns>ApiResponse of ActivateSubscriptionResponse</returns>
52-
ApiResponse<ActivateSubscriptionResponse> ActivateSubscriptionWithHttpInfo (string id);
54+
ApiResponse<ActivateSubscriptionResponse> ActivateSubscriptionWithHttpInfo (string id, bool? processSkippedPayments = null);
5355
/// <summary>
5456
/// Cancel a Subscription
5557
/// </summary>
@@ -209,23 +211,25 @@ public interface ISubscriptionsApi : IApiAccessor
209211
/// Activate a Subscription
210212
/// </summary>
211213
/// <remarks>
212-
/// Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
214+
/// Activate a &#x60;SUSPENDED&#x60; Subscription
213215
/// </remarks>
214216
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
215217
/// <param name="id">Subscription Id</param>
218+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
216219
/// <returns>Task of ActivateSubscriptionResponse</returns>
217-
System.Threading.Tasks.Task<ActivateSubscriptionResponse> ActivateSubscriptionAsync (string id);
220+
System.Threading.Tasks.Task<ActivateSubscriptionResponse> ActivateSubscriptionAsync (string id, bool? processSkippedPayments = null);
218221

219222
/// <summary>
220223
/// Activate a Subscription
221224
/// </summary>
222225
/// <remarks>
223-
/// Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
226+
/// Activate a &#x60;SUSPENDED&#x60; Subscription
224227
/// </remarks>
225228
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
226229
/// <param name="id">Subscription Id</param>
230+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
227231
/// <returns>Task of ApiResponse (ActivateSubscriptionResponse)</returns>
228-
System.Threading.Tasks.Task<ApiResponse<ActivateSubscriptionResponse>> ActivateSubscriptionAsyncWithHttpInfo (string id);
232+
System.Threading.Tasks.Task<ApiResponse<ActivateSubscriptionResponse>> ActivateSubscriptionAsyncWithHttpInfo (string id, bool? processSkippedPayments = null);
229233
/// <summary>
230234
/// Cancel a Subscription
231235
/// </summary>
@@ -520,28 +524,30 @@ public void SetStatusCode(int? statusCode)
520524
}
521525

522526
/// <summary>
523-
/// Activate a Subscription Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
527+
/// Activate a Subscription Activate a &#x60;SUSPENDED&#x60; Subscription
524528
/// </summary>
525529
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
526530
/// <param name="id">Subscription Id</param>
531+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
527532
/// <returns>ActivateSubscriptionResponse</returns>
528-
public ActivateSubscriptionResponse ActivateSubscription (string id)
533+
public ActivateSubscriptionResponse ActivateSubscription (string id, bool? processSkippedPayments = null)
529534
{
530535
logger.Debug("CALLING API \"ActivateSubscription\" STARTED");
531536
this.SetStatusCode(null);
532-
ApiResponse<ActivateSubscriptionResponse> localVarResponse = ActivateSubscriptionWithHttpInfo(id);
537+
ApiResponse<ActivateSubscriptionResponse> localVarResponse = ActivateSubscriptionWithHttpInfo(id, processSkippedPayments);
533538
logger.Debug("CALLING API \"ActivateSubscription\" ENDED");
534539
this.SetStatusCode(localVarResponse.StatusCode);
535540
return localVarResponse.Data;
536541
}
537542

538543
/// <summary>
539-
/// Activate a Subscription Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
544+
/// Activate a Subscription Activate a &#x60;SUSPENDED&#x60; Subscription
540545
/// </summary>
541546
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
542547
/// <param name="id">Subscription Id</param>
548+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
543549
/// <returns>ApiResponse of ActivateSubscriptionResponse</returns>
544-
public ApiResponse< ActivateSubscriptionResponse > ActivateSubscriptionWithHttpInfo (string id)
550+
public ApiResponse< ActivateSubscriptionResponse > ActivateSubscriptionWithHttpInfo (string id, bool? processSkippedPayments = null)
545551
{
546552
LogUtility logUtility = new LogUtility();
547553

@@ -584,6 +590,11 @@ public ApiResponse< ActivateSubscriptionResponse > ActivateSubscriptionWithHttpI
584590
localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter
585591
}
586592
logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}");
593+
if (processSkippedPayments != null)
594+
{
595+
localVarQueryParams.Add("processSkippedPayments", Configuration.ApiClient.ParameterToString(processSkippedPayments)); // query parameter
596+
}
597+
logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}");
587598
if (Method.Post == Method.Post)
588599
{
589600
localVarPostBody = "{}";
@@ -639,29 +650,31 @@ public ApiResponse< ActivateSubscriptionResponse > ActivateSubscriptionWithHttpI
639650
}
640651

641652
/// <summary>
642-
/// Activate a Subscription Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
653+
/// Activate a Subscription Activate a &#x60;SUSPENDED&#x60; Subscription
643654
/// </summary>
644655
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
645656
/// <param name="id">Subscription Id</param>
657+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
646658
/// <returns>Task of ActivateSubscriptionResponse</returns>
647-
public async System.Threading.Tasks.Task<ActivateSubscriptionResponse> ActivateSubscriptionAsync (string id)
659+
public async System.Threading.Tasks.Task<ActivateSubscriptionResponse> ActivateSubscriptionAsync (string id, bool? processSkippedPayments = null)
648660
{
649661
logger.Debug("CALLING API \"ActivateSubscriptionAsync\" STARTED");
650662
this.SetStatusCode(null);
651-
ApiResponse<ActivateSubscriptionResponse> localVarResponse = await ActivateSubscriptionAsyncWithHttpInfo(id);
663+
ApiResponse<ActivateSubscriptionResponse> localVarResponse = await ActivateSubscriptionAsyncWithHttpInfo(id, processSkippedPayments);
652664
logger.Debug("CALLING API \"ActivateSubscriptionAsync\" ENDED");
653665
this.SetStatusCode(localVarResponse.StatusCode);
654666
return localVarResponse.Data;
655667

656668
}
657669

658670
/// <summary>
659-
/// Activate a Subscription Activate a &#x60;CANCELLED&#x60; Or &#x60;SUSPENDED&#x60; Subscription
671+
/// Activate a Subscription Activate a &#x60;SUSPENDED&#x60; Subscription
660672
/// </summary>
661673
/// <exception cref="CyberSource.Client.ApiException">Thrown when fails to make API call</exception>
662674
/// <param name="id">Subscription Id</param>
675+
/// <param name="processSkippedPayments">Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (optional, default to true)</param>
663676
/// <returns>Task of ApiResponse (ActivateSubscriptionResponse)</returns>
664-
public async System.Threading.Tasks.Task<ApiResponse<ActivateSubscriptionResponse>> ActivateSubscriptionAsyncWithHttpInfo (string id)
677+
public async System.Threading.Tasks.Task<ApiResponse<ActivateSubscriptionResponse>> ActivateSubscriptionAsyncWithHttpInfo (string id, bool? processSkippedPayments = null)
665678
{
666679
LogUtility logUtility = new LogUtility();
667680

@@ -704,6 +717,11 @@ public async System.Threading.Tasks.Task<ApiResponse<ActivateSubscriptionRespons
704717
localVarPathParams.Add("id", Configuration.ApiClient.ParameterToString(id)); // path parameter
705718
}
706719
logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarPathParams)}");
720+
if (processSkippedPayments != null)
721+
{
722+
localVarQueryParams.Add("processSkippedPayments", Configuration.ApiClient.ParameterToString(processSkippedPayments)); // query parameter
723+
}
724+
logger.Debug($"HTTP Request Body :\n{logUtility.ConvertDictionaryToString(localVarQueryParams)}");
707725
if (Method.Post == Method.Post)
708726
{
709727
localVarPostBody = "{}";

Model/DeAssociationRequestBody.cs

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.Linq;
13+
using System.IO;
14+
using System.Text;
15+
using System.Text.RegularExpressions;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Collections.ObjectModel;
19+
using System.Runtime.Serialization;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using System.ComponentModel.DataAnnotations;
23+
using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter;
24+
25+
namespace CyberSource.Model
26+
{
27+
/// <summary>
28+
/// DeAssociationRequestBody
29+
/// </summary>
30+
[DataContract]
31+
public partial class DeAssociationRequestBody : IEquatable<DeAssociationRequestBody>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="DeAssociationRequestBody" /> class.
35+
/// </summary>
36+
/// <param name="DeviceId">UUID of the device which needs to be de-associated.</param>
37+
public DeAssociationRequestBody(string DeviceId = default(string))
38+
{
39+
this.DeviceId = DeviceId;
40+
}
41+
42+
/// <summary>
43+
/// UUID of the device which needs to be de-associated
44+
/// </summary>
45+
/// <value>UUID of the device which needs to be de-associated</value>
46+
[DataMember(Name="deviceId", EmitDefaultValue=false)]
47+
public string DeviceId { get; set; }
48+
49+
/// <summary>
50+
/// Returns the string presentation of the object
51+
/// </summary>
52+
/// <returns>String presentation of the object</returns>
53+
public override string ToString()
54+
{
55+
var sb = new StringBuilder();
56+
sb.Append("class DeAssociationRequestBody {\n");
57+
if (DeviceId != null) sb.Append(" DeviceId: ").Append(DeviceId).Append("\n");
58+
sb.Append("}\n");
59+
return sb.ToString();
60+
}
61+
62+
/// <summary>
63+
/// Returns the JSON string presentation of the object
64+
/// </summary>
65+
/// <returns>JSON string presentation of the object</returns>
66+
public string ToJson()
67+
{
68+
return JsonConvert.SerializeObject(this, Formatting.Indented);
69+
}
70+
71+
/// <summary>
72+
/// Returns true if objects are equal
73+
/// </summary>
74+
/// <param name="obj">Object to be compared</param>
75+
/// <returns>Boolean</returns>
76+
public override bool Equals(object obj)
77+
{
78+
// credit: http://stackoverflow.com/a/10454552/677735
79+
return this.Equals(obj as DeAssociationRequestBody);
80+
}
81+
82+
/// <summary>
83+
/// Returns true if DeAssociationRequestBody instances are equal
84+
/// </summary>
85+
/// <param name="other">Instance of DeAssociationRequestBody to be compared</param>
86+
/// <returns>Boolean</returns>
87+
public bool Equals(DeAssociationRequestBody other)
88+
{
89+
// credit: http://stackoverflow.com/a/10454552/677735
90+
if (other == null)
91+
return false;
92+
93+
return
94+
(
95+
this.DeviceId == other.DeviceId ||
96+
this.DeviceId != null &&
97+
this.DeviceId.Equals(other.DeviceId)
98+
);
99+
}
100+
101+
/// <summary>
102+
/// Gets the hash code
103+
/// </summary>
104+
/// <returns>Hash code</returns>
105+
public override int GetHashCode()
106+
{
107+
// credit: http://stackoverflow.com/a/263416/677735
108+
unchecked // Overflow is fine, just wrap
109+
{
110+
int hash = 41;
111+
// Suitable nullity checks etc, of course :)
112+
if (this.DeviceId != null)
113+
hash = hash * 59 + this.DeviceId.GetHashCode();
114+
return hash;
115+
}
116+
}
117+
118+
/// <summary>
119+
/// To validate all properties of the instance
120+
/// </summary>
121+
/// <param name="validationContext">Validation context</param>
122+
/// <returns>Validation Result</returns>
123+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
124+
{
125+
yield break;
126+
}
127+
}
128+
129+
}

0 commit comments

Comments
 (0)