-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
36 changed files
with
482 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
....Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitApprovalRuleMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using commercetools.Base.CustomAttributes; | ||
using commercetools.Base.Models; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.BusinessUnits | ||
{ | ||
public enum BusinessUnitApprovalRuleMode | ||
{ | ||
[Description("Explicit")] | ||
Explicit, | ||
|
||
[Description("ExplicitAndFromParent")] | ||
ExplicitAndFromParent | ||
} | ||
|
||
public class BusinessUnitApprovalRuleModeWrapper : IBusinessUnitApprovalRuleMode | ||
{ | ||
public string JsonName { get; internal set; } | ||
public BusinessUnitApprovalRuleMode? Value { get; internal set; } | ||
public override string ToString() | ||
{ | ||
return JsonName; | ||
} | ||
|
||
IEnumerator IEnumerable.GetEnumerator() | ||
{ | ||
return GetEnumerator(); | ||
} | ||
|
||
public new IEnumerator<char> GetEnumerator() | ||
{ | ||
return JsonName.GetEnumerator(); | ||
} | ||
} | ||
|
||
[EnumInterfaceCreator(typeof(IBusinessUnitApprovalRuleMode), "FindEnum")] | ||
public interface IBusinessUnitApprovalRuleMode : IJsonName, IEnumerable<char> | ||
{ | ||
public static IBusinessUnitApprovalRuleMode Explicit = new BusinessUnitApprovalRuleModeWrapper | ||
{ Value = BusinessUnitApprovalRuleMode.Explicit, JsonName = "Explicit" }; | ||
|
||
public static IBusinessUnitApprovalRuleMode ExplicitAndFromParent = new BusinessUnitApprovalRuleModeWrapper | ||
{ Value = BusinessUnitApprovalRuleMode.ExplicitAndFromParent, JsonName = "ExplicitAndFromParent" }; | ||
|
||
BusinessUnitApprovalRuleMode? Value { get; } | ||
|
||
static IBusinessUnitApprovalRuleMode[] Values() | ||
{ | ||
return new[] | ||
{ | ||
Explicit , | ||
ExplicitAndFromParent | ||
}; | ||
} | ||
static IBusinessUnitApprovalRuleMode FindEnum(string value) | ||
{ | ||
return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new BusinessUnitApprovalRuleModeWrapper() { JsonName = value }; | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...etools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitChangeApprovalRuleModeAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace commercetools.Sdk.Api.Models.BusinessUnits | ||
{ | ||
|
||
public partial class BusinessUnitChangeApprovalRuleModeAction : IBusinessUnitChangeApprovalRuleModeAction | ||
{ | ||
public string Action { get; set; } | ||
|
||
public IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
public BusinessUnitChangeApprovalRuleModeAction() | ||
{ | ||
this.Action = "changeApprovalRuleMode"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...tools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnitChangeApprovalRuleModeAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using commercetools.Base.CustomAttributes; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.BusinessUnits | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitChangeApprovalRuleModeAction))] | ||
public partial interface IBusinessUnitChangeApprovalRuleModeAction : IBusinessUnitUpdateAction | ||
{ | ||
IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ercetools.Sdk.Api/Generated/Models/Messages/BusinessUnitApprovalRuleModeChangedMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using commercetools.Sdk.Api.Models.BusinessUnits; | ||
using commercetools.Sdk.Api.Models.Common; | ||
using System; | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
|
||
public partial class BusinessUnitApprovalRuleModeChangedMessage : IBusinessUnitApprovalRuleModeChangedMessage | ||
{ | ||
public string Id { get; set; } | ||
|
||
public long Version { get; set; } | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public DateTime LastModifiedAt { get; set; } | ||
|
||
public ILastModifiedBy LastModifiedBy { get; set; } | ||
|
||
public ICreatedBy CreatedBy { get; set; } | ||
|
||
public long SequenceNumber { get; set; } | ||
|
||
public IReference Resource { get; set; } | ||
|
||
public long ResourceVersion { get; set; } | ||
|
||
public string Type { get; set; } | ||
|
||
public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } | ||
|
||
public IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
|
||
public IBusinessUnitApprovalRuleMode OldApprovalRuleMode { get; set; } | ||
public BusinessUnitApprovalRuleModeChangedMessage() | ||
{ | ||
this.Type = "BusinessUnitApprovalRuleModeChanged"; | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ls.Sdk.Api/Generated/Models/Messages/BusinessUnitApprovalRuleModeChangedMessagePayload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using commercetools.Sdk.Api.Models.BusinessUnits; | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
|
||
public partial class BusinessUnitApprovalRuleModeChangedMessagePayload : IBusinessUnitApprovalRuleModeChangedMessagePayload | ||
{ | ||
public string Type { get; set; } | ||
|
||
public IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
|
||
public IBusinessUnitApprovalRuleMode OldApprovalRuleMode { get; set; } | ||
public BusinessUnitApprovalRuleModeChangedMessagePayload() | ||
{ | ||
this.Type = "BusinessUnitApprovalRuleModeChanged"; | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...rcetools.Sdk.Api/Generated/Models/Messages/IBusinessUnitApprovalRuleModeChangedMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using commercetools.Sdk.Api.Models.BusinessUnits; | ||
using commercetools.Base.CustomAttributes; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitApprovalRuleModeChangedMessage))] | ||
public partial interface IBusinessUnitApprovalRuleModeChangedMessage : IMessage | ||
{ | ||
IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
|
||
IBusinessUnitApprovalRuleMode OldApprovalRuleMode { get; set; } | ||
|
||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...s.Sdk.Api/Generated/Models/Messages/IBusinessUnitApprovalRuleModeChangedMessagePayload.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using commercetools.Sdk.Api.Models.BusinessUnits; | ||
using commercetools.Base.CustomAttributes; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.Messages | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitApprovalRuleModeChangedMessagePayload))] | ||
public partial interface IBusinessUnitApprovalRuleModeChangedMessagePayload : IMessagePayload | ||
{ | ||
IBusinessUnitApprovalRuleMode ApprovalRuleMode { get; set; } | ||
|
||
IBusinessUnitApprovalRuleMode OldApprovalRuleMode { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.