Skip to content

Commit

Permalink
TASK: Updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Oct 6, 2023
1 parent aa4d5b6 commit 721a116
Show file tree
Hide file tree
Showing 19 changed files with 543 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
- added type `CartDiscountTotalPriceTarget`
- added type `DiscountOnTotalPrice`
- added type `DiscountedTotalPricePortion`
- added type `CustomerEmailTokenCreatedMessage`
- added type `CustomerPasswordTokenCreatedMessage`
- added type `CustomerEmailTokenCreatedMessagePayload`
- added type `CustomerPasswordTokenCreatedMessagePayload`
</details>

**Import changes**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using commercetools.Sdk.Api.Models.Common;
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class CustomerEmailTokenCreatedMessage : ICustomerEmailTokenCreatedMessage
{
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 string CustomerId { get; set; }

public DateTime ExpiresAt { get; set; }
public CustomerEmailTokenCreatedMessage()
{
this.Type = "CustomerEmailTokenCreated";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class CustomerEmailTokenCreatedMessagePayload : ICustomerEmailTokenCreatedMessagePayload
{
public string Type { get; set; }

public string CustomerId { get; set; }

public DateTime ExpiresAt { get; set; }
public CustomerEmailTokenCreatedMessagePayload()
{
this.Type = "CustomerEmailTokenCreated";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using commercetools.Sdk.Api.Models.Common;
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class CustomerPasswordTokenCreatedMessage : ICustomerPasswordTokenCreatedMessage
{
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 string CustomerId { get; set; }

public DateTime ExpiresAt { get; set; }
public CustomerPasswordTokenCreatedMessage()
{
this.Type = "CustomerPasswordTokenCreated";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class CustomerPasswordTokenCreatedMessagePayload : ICustomerPasswordTokenCreatedMessagePayload
{
public string Type { get; set; }

public string CustomerId { get; set; }

public DateTime ExpiresAt { get; set; }
public CustomerPasswordTokenCreatedMessagePayload()
{
this.Type = "CustomerPasswordTokenCreated";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage))]
public partial interface ICustomerEmailTokenCreatedMessage : IMessage
{
string CustomerId { get; set; }

DateTime ExpiresAt { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload))]
public partial interface ICustomerEmailTokenCreatedMessagePayload : IMessagePayload
{
string CustomerId { get; set; }

DateTime ExpiresAt { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessage))]
public partial interface ICustomerPasswordTokenCreatedMessage : IMessage
{
string CustomerId { get; set; }

DateTime ExpiresAt { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessagePayload))]
public partial interface ICustomerPasswordTokenCreatedMessagePayload : IMessagePayload
{
string CustomerId { get; set; }

DateTime ExpiresAt { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("CustomerDateOfBirthSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerDateOfBirthSetMessage))]
[SubTypeDiscriminator("CustomerDeleted", typeof(commercetools.Sdk.Api.Models.Messages.CustomerDeletedMessage))]
[SubTypeDiscriminator("CustomerEmailChanged", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailChangedMessage))]
[SubTypeDiscriminator("CustomerEmailTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage))]
[SubTypeDiscriminator("CustomerEmailVerified", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessage))]
[SubTypeDiscriminator("CustomerFirstNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessage))]
[SubTypeDiscriminator("CustomerGroupCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessage))]
Expand All @@ -89,6 +90,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("CustomerGroupCustomTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomTypeSetMessage))]
[SubTypeDiscriminator("CustomerGroupSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupSetMessage))]
[SubTypeDiscriminator("CustomerLastNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerLastNameSetMessage))]
[SubTypeDiscriminator("CustomerPasswordTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessage))]
[SubTypeDiscriminator("CustomerPasswordUpdated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessage))]
[SubTypeDiscriminator("CustomerTitleSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerTitleSetMessage))]
[SubTypeDiscriminator("CustomLineItemStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.CustomLineItemStateTransitionMessage))]
Expand Down Expand Up @@ -680,6 +682,12 @@ static commercetools.Sdk.Api.Models.Messages.CustomerEmailChangedMessage Custome
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage CustomerEmailTokenCreated(Action<commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessage CustomerEmailVerified(Action<commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessage();
Expand Down Expand Up @@ -734,6 +742,12 @@ static commercetools.Sdk.Api.Models.Messages.CustomerLastNameSetMessage Customer
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessage CustomerPasswordTokenCreated(Action<commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessage CustomerPasswordUpdated(Action<commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("CustomerDateOfBirthSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerDateOfBirthSetMessagePayload))]
[SubTypeDiscriminator("CustomerDeleted", typeof(commercetools.Sdk.Api.Models.Messages.CustomerDeletedMessagePayload))]
[SubTypeDiscriminator("CustomerEmailChanged", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailChangedMessagePayload))]
[SubTypeDiscriminator("CustomerEmailTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload))]
[SubTypeDiscriminator("CustomerEmailVerified", typeof(commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessagePayload))]
[SubTypeDiscriminator("CustomerFirstNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerFirstNameSetMessagePayload))]
[SubTypeDiscriminator("CustomerGroupCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomFieldAddedMessagePayload))]
Expand All @@ -88,6 +89,7 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("CustomerGroupCustomTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupCustomTypeSetMessagePayload))]
[SubTypeDiscriminator("CustomerGroupSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerGroupSetMessagePayload))]
[SubTypeDiscriminator("CustomerLastNameSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerLastNameSetMessagePayload))]
[SubTypeDiscriminator("CustomerPasswordTokenCreated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessagePayload))]
[SubTypeDiscriminator("CustomerPasswordUpdated", typeof(commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessagePayload))]
[SubTypeDiscriminator("CustomerTitleSet", typeof(commercetools.Sdk.Api.Models.Messages.CustomerTitleSetMessagePayload))]
[SubTypeDiscriminator("CustomLineItemStateTransition", typeof(commercetools.Sdk.Api.Models.Messages.CustomLineItemStateTransitionMessagePayload))]
Expand Down Expand Up @@ -660,6 +662,12 @@ static commercetools.Sdk.Api.Models.Messages.CustomerEmailChangedMessagePayload
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload CustomerEmailTokenCreated(Action<commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerEmailTokenCreatedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessagePayload CustomerEmailVerified(Action<commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerEmailVerifiedMessagePayload();
Expand Down Expand Up @@ -714,6 +722,12 @@ static commercetools.Sdk.Api.Models.Messages.CustomerLastNameSetMessagePayload C
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessagePayload CustomerPasswordTokenCreated(Action<commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerPasswordTokenCreatedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessagePayload CustomerPasswordUpdated(Action<commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.CustomerPasswordUpdatedMessagePayload();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Predicates.Query.Messages
{

public partial class CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl
{
public CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl()
{
}

public static CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl Of()
{
return new CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl();
}

public IComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, string> Type()
{
return new ComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")),
p => new CombinationQueryPredicate<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl>(p, CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public IComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, string> CustomerId()
{
return new ComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("customerId")),
p => new CombinationQueryPredicate<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl>(p, CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public IComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, DateTime> ExpiresAt()
{
return new ComparisonPredicateBuilder<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl, DateTime>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("expiresAt")),
p => new CombinationQueryPredicate<CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl>(p, CustomerEmailTokenCreatedMessagePayloadQueryBuilderDsl.Of),
PredicateFormatter.Format);
}

}
}
Loading

0 comments on commit 721a116

Please sign in to comment.