Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Dec 8, 2023
1 parent 3151a52 commit 32d5730
Show file tree
Hide file tree
Showing 36 changed files with 293 additions and 193 deletions.
46 changes: 46 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,56 @@

**History changes**

<details>
<summary>Added Type(s)</summary>

- added type `AttributeLocalizedEnumValue`
- added type `AttributePlainEnumValue`
- added type `ChannelRoleEnum`
- added type `StateRoleEnum`
- added type `StateTypeEnum`
</details>


<details>
<summary>Removed Type(s)</summary>

- :warning: removed type `ChannelRole`
- :warning: removed type `StateRole`
- :warning: removed type `StateType`
</details>


<details>
<summary>Removed Property(s)</summary>

- :warning: removed property `previousValue` from type `AddAddressChange`
- :warning: removed property `previousValue` from type `AddLocationChange`
- :warning: removed property `nextValue` from type `RemoveLocationChange`
- :warning: removed property `nextValue` from type `RemoveTaxRateChange`
</details>


<details>
<summary>Changed Property(s)</summary>

- :warning: changed property `previousValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `nextValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `nextValue` of type `AddLocalizedEnumValueChange` from type `LocalizedEnumValue` to `AttributeLocalizedEnumValue`
- :warning: changed property `nextValue` of type `AddPlainEnumValueChange` from type `EnumValue` to `AttributePlainEnumValue`
- :warning: changed property `previousValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
- :warning: changed property `nextValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
- :warning: changed property `previousValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum`
- :warning: changed property `nextValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum`
- :warning: changed property `previousValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `nextValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `previousValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
- :warning: changed property `nextValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
- :warning: changed property `previousValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `nextValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string`
- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string`
- :warning: changed property `previousValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
- :warning: changed property `nextValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public partial class AddAddressChange : IAddAddressChange

public string Change { get; set; }

public IAddress PreviousValue { get; set; }

public IAddress NextValue { get; set; }
public AddAddressChange()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public partial class AddChannelRolesChange : IAddChannelRolesChange

public string Change { get; set; }

public IList<IChannelRole> PreviousValue { get; set; }
public IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
public IList<IChannelRoleEnum> PreviousValue { get; set; }
public IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


public IList<IChannelRole> NextValue { get; set; }
public IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
public IList<IChannelRoleEnum> NextValue { get; set; }
public IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }

public AddChannelRolesChange()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using commercetools.Sdk.HistoryApi.Models.ChangeValues;
using commercetools.Sdk.HistoryApi.Models.Common;


namespace commercetools.Sdk.HistoryApi.Models.Changes
Expand All @@ -10,7 +10,7 @@ public partial class AddLocalizedEnumValueChange : IAddLocalizedEnumValueChange

public string Change { get; set; }

public ILocalizedEnumValue NextValue { get; set; }
public IAttributeLocalizedEnumValue NextValue { get; set; }

public string FieldName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public partial class AddLocationChange : IAddLocationChange

public string Change { get; set; }

public ILocation PreviousValue { get; set; }

public ILocation NextValue { get; set; }
public AddLocationChange()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using commercetools.Sdk.HistoryApi.Models.ChangeValues;
using commercetools.Sdk.HistoryApi.Models.Common;


namespace commercetools.Sdk.HistoryApi.Models.Changes
Expand All @@ -10,7 +10,7 @@ public partial class AddPlainEnumValueChange : IAddPlainEnumValueChange

public string Change { get; set; }

public IEnumValue NextValue { get; set; }
public IAttributePlainEnumValue NextValue { get; set; }

public string AttributeName { get; set; }
public AddPlainEnumValueChange()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public partial class AddStateRolesChange : IAddStateRolesChange

public string Change { get; set; }

public IList<IStateRole> PreviousValue { get; set; }
public IEnumerable<IStateRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
public IList<IStateRoleEnum> PreviousValue { get; set; }
public IEnumerable<IStateRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


public IList<IStateRole> NextValue { get; set; }
public IEnumerable<IStateRole> NextValueEnumerable { set => NextValue = value.ToList(); }
public IList<IStateRoleEnum> NextValue { get; set; }
public IEnumerable<IStateRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }

public AddStateRolesChange()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public partial class ChangeStateTypeChange : IChangeStateTypeChange

public string Change { get; set; }

public IStateType PreviousValue { get; set; }
public IStateTypeEnum PreviousValue { get; set; }

public IStateType NextValue { get; set; }
public IStateTypeEnum NextValue { get; set; }
public ChangeStateTypeChange()
{
this.Type = "ChangeStateTypeChange";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public partial interface IAddAddressChange : IChange

new string Type { get; set; }

IAddress PreviousValue { get; set; }

IAddress NextValue { get; set; }

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface IAddChannelRolesChange : IChange

new string Change { get; set; }

IList<IChannelRole> PreviousValue { get; set; }
IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IChannelRoleEnum> PreviousValue { get; set; }
IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IChannelRole> NextValue { get; set; }
IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IChannelRoleEnum> NextValue { get; set; }
IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using commercetools.Sdk.HistoryApi.Models.ChangeValues;
using commercetools.Sdk.HistoryApi.Models.Common;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
Expand All @@ -11,7 +11,7 @@ public partial interface IAddLocalizedEnumValueChange : IChange

new string Change { get; set; }

ILocalizedEnumValue NextValue { get; set; }
IAttributeLocalizedEnumValue NextValue { get; set; }

string FieldName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public partial interface IAddLocationChange : IChange

new string Change { get; set; }

ILocation PreviousValue { get; set; }

ILocation NextValue { get; set; }

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using commercetools.Sdk.HistoryApi.Models.ChangeValues;
using commercetools.Sdk.HistoryApi.Models.Common;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
Expand All @@ -11,7 +11,7 @@ public partial interface IAddPlainEnumValueChange : IChange

new string Change { get; set; }

IEnumValue NextValue { get; set; }
IAttributePlainEnumValue NextValue { get; set; }

string AttributeName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface IAddStateRolesChange : IChange

new string Change { get; set; }

IList<IStateRole> PreviousValue { get; set; }
IEnumerable<IStateRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IStateRoleEnum> PreviousValue { get; set; }
IEnumerable<IStateRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IStateRole> NextValue { get; set; }
IEnumerable<IStateRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IStateRoleEnum> NextValue { get; set; }
IEnumerable<IStateRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public partial interface IChangeStateTypeChange : IChange

new string Change { get; set; }

IStateType PreviousValue { get; set; }
IStateTypeEnum PreviousValue { get; set; }

IStateType NextValue { get; set; }
IStateTypeEnum NextValue { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface IRemoveChannelRolesChange : IChange

new string Change { get; set; }

IList<IChannelRole> PreviousValue { get; set; }
IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IChannelRoleEnum> PreviousValue { get; set; }
IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IChannelRole> NextValue { get; set; }
IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IChannelRoleEnum> NextValue { get; set; }
IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ public partial interface IRemoveLocationChange : IChange

ILocation PreviousValue { get; set; }

ILocation NextValue { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface IRemoveStateRolesChange : IChange

new string Change { get; set; }

IList<IStateRole> PreviousValue { get; set; }
IEnumerable<IStateRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IStateRoleEnum> PreviousValue { get; set; }
IEnumerable<IStateRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IStateRole> NextValue { get; set; }
IEnumerable<IStateRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IStateRoleEnum> NextValue { get; set; }
IEnumerable<IStateRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@ public partial interface IRemoveTaxRateChange : IChange

ITaxRate PreviousValue { get; set; }

ITaxRate NextValue { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface ISetChannelRolesChange : IChange

new string Change { get; set; }

IList<IChannelRole> PreviousValue { get; set; }
IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IChannelRoleEnum> PreviousValue { get; set; }
IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IChannelRole> NextValue { get; set; }
IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IChannelRoleEnum> NextValue { get; set; }
IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public partial interface ISetStateRolesChange : IChange

new string Change { get; set; }

IList<IStateRole> PreviousValue { get; set; }
IEnumerable<IStateRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
IList<IStateRoleEnum> PreviousValue { get; set; }
IEnumerable<IStateRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


IList<IStateRole> NextValue { get; set; }
IEnumerable<IStateRole> NextValueEnumerable { set => NextValue = value.ToList(); }
IList<IStateRoleEnum> NextValue { get; set; }
IEnumerable<IStateRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public partial class RemoveChannelRolesChange : IRemoveChannelRolesChange

public string Change { get; set; }

public IList<IChannelRole> PreviousValue { get; set; }
public IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
public IList<IChannelRoleEnum> PreviousValue { get; set; }
public IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


public IList<IChannelRole> NextValue { get; set; }
public IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
public IList<IChannelRoleEnum> NextValue { get; set; }
public IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }

public RemoveChannelRolesChange()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public partial class RemoveLocationChange : IRemoveLocationChange
public string Change { get; set; }

public ILocation PreviousValue { get; set; }

public ILocation NextValue { get; set; }
public RemoveLocationChange()
{
this.Type = "RemoveLocationChange";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public partial class RemoveStateRolesChange : IRemoveStateRolesChange

public string Change { get; set; }

public IList<IStateRole> PreviousValue { get; set; }
public IEnumerable<IStateRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
public IList<IStateRoleEnum> PreviousValue { get; set; }
public IEnumerable<IStateRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


public IList<IStateRole> NextValue { get; set; }
public IEnumerable<IStateRole> NextValueEnumerable { set => NextValue = value.ToList(); }
public IList<IStateRoleEnum> NextValue { get; set; }
public IEnumerable<IStateRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }

public RemoveStateRolesChange()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ public partial class RemoveTaxRateChange : IRemoveTaxRateChange
public string Change { get; set; }

public ITaxRate PreviousValue { get; set; }

public ITaxRate NextValue { get; set; }
public RemoveTaxRateChange()
{
this.Type = "RemoveTaxRateChange";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public partial class SetChannelRolesChange : ISetChannelRolesChange

public string Change { get; set; }

public IList<IChannelRole> PreviousValue { get; set; }
public IEnumerable<IChannelRole> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }
public IList<IChannelRoleEnum> PreviousValue { get; set; }
public IEnumerable<IChannelRoleEnum> PreviousValueEnumerable { set => PreviousValue = value.ToList(); }


public IList<IChannelRole> NextValue { get; set; }
public IEnumerable<IChannelRole> NextValueEnumerable { set => NextValue = value.ToList(); }
public IList<IChannelRoleEnum> NextValue { get; set; }
public IEnumerable<IChannelRoleEnum> NextValueEnumerable { set => NextValue = value.ToList(); }

public SetChannelRolesChange()
{
Expand Down
Loading

0 comments on commit 32d5730

Please sign in to comment.