Checks if an API Client exists for a given id. Returns a 200 OK status if the API Client exists or a 404 Not Found otherwise.
Checks if an API Client exists with the provided id. Returns a 200 OK status if the API Client exists or a 404 Not Found otherwise.
Checks if an API Client exists for a given Query Predicate. Returns a 200 OK status if any API Clients match the Query Predicate or a 404 Not Found otherwise.
Checks if an API Client exists for the provided query predicate. Returns a 200 OK status if any API Clients match the query predicate, or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.
Checks if a Cart exists with the provided id. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or a 404 Not Found otherwise.
Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.
Checks if a Cart exists with the provided key. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.
Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a 404 Not Found otherwise.
Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a ShoppingList exists for a given id. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.
Checks if a ShoppingList exists with the provided id. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.
Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK if any ShoppingLists match the Query Predicate; otherwise, returns a ResourceNotFound error.
Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK if any ShoppingLists match the Query Predicate; otherwise, returns a ResourceNotFound error.
Checks if a ShoppingList exists for a given key. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.
Checks if a ShoppingList exists with the provided key. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.
Checks if an AssociateRole exists for a given id. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.
Checks if an AssociateRole exists with the provided id. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.
Checks if an AssociateRole exists for a given Query Predicate. Returns a 200 OK status if any AssociateRole match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more AssociateRoles exist for the provided query predicate. Returns a 200 OK status if any AssociateRole match the query predicate, or a 404 Not Found otherwise.
Checks if an AssociateRole exists for a given key. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.
Checks if an AssociateRole exists with the provided key. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.
Checks if an AttributeGroup exists for a given id. Returns a 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.
Checks if an AttributeGroup exists with the provided id. Returns a 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.
Checks if an AttributeGroup exists for a given Query Predicate. Returns 200 OK status if any AttributeGroups match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more AttributeGroups exist for the provided query predicate. Returns 200 OK status if any AttributeGroups match the query predicate, or a 404 Not Found otherwise.
Checks if an AttributeGroup exists for a given key. Returns 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.
Checks if an AttributeGroup exists with the provided key. Returns 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists with the provided id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more CartDiscounts exist for the provided query predicate. Returns a 200 OK status if any CartDiscounts match the query predicate, or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists with the provided key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a Cart exists for the provided id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.
Checks if a Cart exists for the provided id. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if a Cart exists for a Customer. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.
Checks if a Cart exists for a Customer. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or a 404 Not Found otherwise.
Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or Not Found otherwise.
Checks if a Cart exists for the provided key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.
Checks if a Cart exists with the provided key. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if a Category exists for a given id. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.
Checks if a Category exists with the provided id. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.
Checks if a Category exists for on a given Query Predicate. Returns a 200 OK status if any Categories match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Categories exist for the provided query predicate. Returns a 200 OK status if any Categories match the query predicate, or a 404 Not Found otherwise.
Checks if a Category exists for a given key. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.
Checks if a Category exists with the provided key. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.
Checks if a Channel exists for a given id. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.
Checks if a Channel exists with the provided id. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.
Checks if a Channel exists for a given Query Predicate. Returns a 200 OK status if any Channels match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Channels exist for the provided query predicate. Returns a 200 OK status if any Channels match the query predicate, or a 404 Not Found otherwise.
Checks if a Channel exists for a given key. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.
Checks if a Channel exists with the provided key. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.
Checks if a CustomObject exists for a given Query Predicate. Returns a 200 OK status if any CustomObjects match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more CustomObjects exist for the provided query predicate. Returns a 200 OK status if any CustomObjects match the query predicate, or a 404 Not Found otherwise.
Checks if a CustomerGroup exists for a given id. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.
Checks if a CustomerGroup exists with the provided id. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.
Checks if a CustomerGroup exists for a given Query Predicate. Returns a 200 OK status if any CustomerGroup match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more CustomerGroups exist for the provided query predicate. Returns a 200 OK status if any CustomerGroup match the query predicate, or a 404 Not Found otherwise.
Checks if a CustomerGroup exists for a given key. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.
Checks if a CustomerGroup exists with the provided key. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.
Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists with the provided id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more Customers exist for the provided query predicate. Returns a 200 OK status if any Customers match the query predicate, or a 404 Not Found otherwise.
Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists with the provided key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a DiscountCode exists for a given id. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.
Checks if a DiscountCode exists with the provided id. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.
Checks if a DiscountCode exists for a given Query Predicate. Returns a 200 OK status if any DiscountCodes match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more DiscountCodes exist for the provided query predicate. Returns a 200 OK status if any DiscountCodes match the query predicate, or a 404 Not Found otherwise.
Checks if a DiscountCode exists for a given key. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.
Checks if a DiscountCode exists with the provided key. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.
Checks if an Extension exists for a given id. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.
Checks if an Extension exists with the provided id. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.
Checks if an Extension exists for a given Query Predicate. Returns a 200 OK status if any Extensions match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Extensions exist for the provided query predicate. Returns a 200 OK status if any Extensions match the query predicate, or a 404 Not Found otherwise.
Checks if an Extension exists for a given key. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.
Checks if an Extension exists with the provided key. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists with the provided id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more CartDiscounts exist for the provided query predicate. Returns a 200 OK status if any CartDiscounts match the query predicate, or a 404 Not Found otherwise.
Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a CartDiscount exists with the provided key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.
Checks if a Cart exists for the provided id in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.
Checks if a Cart exists for the provided id in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if one or more Carts exist for a Customer in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.
Checks if one or more Carts exist for a Customer in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if one or more Carts exist for the provided query predicate in a Store. Returns a 200 OK status if any Carts match the query predicate or a ResourceNotFound error otherwise.
Checks if one or more Carts exist for the provided query predicate in a Store. Returns a 200 OK status if any Carts match the query predicate, or Not Found otherwise.
Checks if a Cart exists for the provided key in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.
Checks if a Cart exists with the provided key in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.
Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists with the provided id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more Customers exist for the provided query predicate. Returns a 200 OK status if any Customers match the query predicate, or Not Found otherwise.
Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Customer exists with the provided key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.
Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId or anonymousId. Returns a 200 OK status if any Carts match these conditions, or a ResourceNotFound error otherwise.
Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId or anonymousId. Returns a 200 OK status if any Carts match these conditions, or Not Found otherwise.
Checks if an Order exists for a given id in a Store. Returns a 200 OK status if successful.
Checks if an Order exists with the provided id in a Store. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.Checks if an Order exists for a given Query Predicate in a Store. Returns a 200 OK status if successful.
Checks if one or more Orders exist for the provided query predicate in a Store. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*Checks if a ShoppingList exists for a given id in a Store. Returns a 200 OK status if successful.
Checks if a ShoppingList exists with the provided id in a Store. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id in a Store.Checks if a ShoppingList exists for a given key in a Store. Returns a 200 OK status if successful.
Checks if a ShoppingList exists with the provided key in a Store. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*key in a Store.Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a ResourceNotFound error otherwise.
Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or Not Found otherwise.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or Not Found otherwise.
Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a ResourceNotFound error otherwise.
Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or Not Found otherwise.
Checks if the current or staged representations of a Product exists for a given id in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representations of a Product exists with the provided id in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representations of a Product exists for a given key in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representations of a Product exists with the provided key in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or Not Found otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or Not Found otherwise.
Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or Not Found otherwise.
Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or Not Found otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or Not Found otherwise.
Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or Not Found otherwise.
Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if the ShoppingList exists or Not Found otherwise.
Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK status if any ShoppingLists match the query predicate, or Not Found otherwise.
Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if the ShoppingList exists or Not Found otherwise.
Checks if a StagedQuote exists for a given id. Returns a 200 OK status if the StagedQuote exists or a ResourceNotFound error otherwise.
Checks if a StagedQuote exists with the provided id. Returns a 200 OK status if the StagedQuote exists or Not Found otherwise.
Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK status if any StagedQuotes match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 OK status if any StagedQuotes match the query predicate, or Not Found otherwise.
Checks if a StagedQuote exists for a given key. Returns a 200 OK status if the StagedQuote exists or a ResourceNotFound error otherwise.
Checks if a StagedQuote exists with the provided key. Returns a 200 OK status if the StagedQuote exists or Not Found otherwise.
Checks if an InventoryEntry exists for a given id. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.
Checks if an InventoryEntry exists with the provided id. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.
Checks if an InventoryEntry exists for a given Query Predicate. Returns a 200 OK status if any Inventory Entries match the Query Predicate, a 404 Not Found otherwise.
Checks if one or more InventoryEntries exist for the provided query predicate. Returns a 200 OK status if any Inventory Entries match the Query Predicate, a 404 Not Found otherwise.
Checks if an InventoryEntry exists for a given key. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.
Checks if an InventoryEntry exists with the provided key. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.
Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists and the Customer has access to it, or a ResourceNotFound error otherwise.
Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists and the Customer has access to it, or a ResourceNotFound error otherwise.
Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate and the Customer has access to them, or a ResourceNotFound error otherwise.
Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate and the Customer has access to them, or a ResourceNotFound error otherwise.
Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.
Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.
Deletes the Cart for a given id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.id.customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.Returns a Cart for a given id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.id.customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists.
Checks if a Cart exists with the provided id. Returns a 200 OK status if the Cart exists.
A ResourceNotFound error is returned in the following scenarios:
*id.id.customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.Updates the Cart for a given id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.id.customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.Updates the Cart for a given id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.id.customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.Checks if an Order exists for a given id. Returns a 200 OK status if successful.
Checks if an Order exists with the provided id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if successful.
Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a Payment exists with the provided id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.
Checks if a Payment exists for the provided query predicate. Returns a 200 OK status if any Payments match the query predicate, or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a ResourceNotFound error otherwise.
Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists for a given id. Returns a 200 OK status if successful.
Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*id.Checks if a ShoppingList exists for a given key. Returns a 200 OK status if successful.
Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if successful.
A ResourceNotFound error is returned in the following scenarios:
*key.Checks if a Message exists for a given id. Returns a 200 OK status if the Message exists or a 404 Not Found otherwise.
Checks if a Message exists with the provided id. Returns a 200 OK status if the Message exists or a 404 Not Found otherwise.
Checks if a Message exists for a given Query Predicate. Returns a 200 OK status if any Messages match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Messages exist for the provided query predicate. Returns a 200 OK status if any Messages match the query predicate, or a 404 Not Found otherwise.
Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.
Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.
Checks if an OrderEdit exists for a given id. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.
Checks if an OrderEdit exists with the provided id. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.
Checks if an OrderEdit exists for a given Query Predicate. Returns a 200 OK status if any OrderEdits match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more OrderEdits exist for the provided query predicate. Returns a 200 OK status if any OrderEdits match the query predicate, or a 404 Not Found otherwise.
Checks if an OrderEdit exists for a given key. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.
Checks if an OrderEdit exists with the provided key. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or a 404 Not Found otherwise.
Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a Payment exists with the provided id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Payments exist for the provided query predicate. Returns a 200 OK status if any Payments match the query predicate, or a 404 Not Found otherwise.
Checks if a Payment exists for a given key. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a Payment exists with the provided key. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.
Checks if a ProductDiscount exists for a given id. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.
Checks if a ProductDiscount exists with the provided id. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.
Checks if a ProductDiscount exists for a given Query Predicate. Returns a 200 OK status if any ProductDiscounts match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more ProductDiscounts exist for the provided query predicate. Returns a 200 OK status if any ProductDiscounts match the query predicate, or a 404 Not Found otherwise.
Checks if a ProductDiscount exists for a given key. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.
Checks if a ProductDiscount exists with the provided key. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists for a given id. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists with the provided id. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists for a given Query Predicate. Returns a 200 OK status if any ProductProjections match the Query Predicate or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists for the provided query predicate. Returns a 200 OK status if any ProductProjections match the query predicate, or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists for a given key. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if the current or staged representation of a Product exists with the provided key. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.
Checks if a ProductSelection exists for a given id. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.
Checks if a ProductSelection exists with the provided id. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.
Checks if a ProductSelection exists for a given Query Predicate. Returns a 200 OK status if any ProductSelections match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more ProductSelections exist for the provided query predicate. Returns a 200 OK status if any ProductSelections match the query predicate, or a 404 Not Found otherwise.
Checks if a ProductSelection exists for a given key. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.
Checks if a ProductSelection exists with the provided key. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.
Checks if a ProductTailoring exists for a given Query Predicate. Returns a 200 OK status if any ProductTailoring match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more ProductTailorings exist for the provided query predicate. Returns a 200 OK status if any ProductTailoring match the query predicate, or a 404 Not Found otherwise.
Checks if a ProductType exists for a given id. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.
Checks if a ProductType exists with the provided id. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.
Checks if a ProductType exists for a given Query Predicate. Returns a 200 OK status if any ProductTypes match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more ProductTypes exist for the provided query predicate. Returns a 200 OK status if any ProductTypes match the query predicate, or a 404 Not Found otherwise.
Checks if a ProductType exists for a given key. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.
Checks if a ProductType exists with the provided key. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.
Checks if a Product exists for a given id. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.
Checks if a Product exists with the provided id. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.
Checks if a Product exists for a given Query Predicate. Returns a 200 OK status if any Products match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Products exist for the provided query predicate. Returns a 200 OK status if any Products match the query predicate, or a 404 Not Found otherwise.
Checks if a Product exists for a given key. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.
Checks if a Product exists with the provided key. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a 404 Not Found otherwise.
Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.
Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a 404 Not Found otherwise.
Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.
Checks if a Review exists for a given id. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.
Checks if a Review exists with the provided id. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.
Checks if a Review exists for a given Query Predicate. Returns a 200 OK status if any Reviews match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Reviews exist for the provided query predicate. Returns a 200 OK status if any Reviews match the query predicate, or a 404 Not Found otherwise.
Checks if a Review exists for a given key. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.
Checks if a Review exists with the provided key. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.
Checks if a ShippingMethod exists for a given id. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.
Checks if a ShippingMethod exists with the provided id. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.
Checks if a ShippingMethod exists for a given Query Predicate. Returns a 200 OK status if any ShippingMethods match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more ShippingMethods exist for the provided query predicate. Returns a 200 OK status if any ShippingMethods match the query predicate, or a 404 Not Found otherwise.
Checks if a ShippingMethod exists for a given key. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.
Checks if a ShippingMethod exists with the provided key. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.
Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.
Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.
Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK status if any ShoppingLists match the query predicate, or a 404 Not Found otherwise.
Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.
Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.
Checks if a StagedQuote exists for a given id. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.
Checks if a StagedQuote exists with the provided id. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.
Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK status if any StagedQuotes match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 OK status if any StagedQuotes match the query predicate, or a 404 Not Found otherwise.
Checks if a StagedQuote exists for a given key. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.
Checks if a StagedQuote exists with the provided key. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.
Checks if a StandalonePrice exists for a given id. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.
Checks if a StandalonePrice exists with the provided id. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.
Checks if a StandalonePrice exists for a given Query Predicate. Returns a 200 OK status if any StandalonePrices match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more StandalonePrices exist for the provided query predicate. Returns a 200 OK status if any StandalonePrices match the query predicate, or a 404 Not Found otherwise.
Checks if a StandalonePrice exists for a given key. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.
Checks if a StandalonePrice exists with the provided key. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.
Checks if a State exists for a given id. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.
Checks if a State exists with the provided id. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.
Checks if a State exists for a given Query Predicate. Returns a 200 OK status if any States match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more States exist for the provided query predicate. Returns a 200 OK status if any States match the query predicate, or a 404 Not Found otherwise.
Checks if a State exists for a given key. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.
Checks if a State exists with the provided key. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.
Checks if a Store exists for a given id. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.
Checks if a Store exists with the provided id. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.
Checks if a Store exists for a given Query Predicate. Returns a 200 OK status if any Stores match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Stores exist for the provided query predicate. Returns a 200 OK status if any Stores match the query predicate, or a 404 Not Found otherwise.
Checks if a Store exists for a given key. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.
Checks if a Store exists with the provided key. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.
Checks if a Subscription exists for a given id. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.
Checks if a Subscription exists with the provided id. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.
Checks if a Subscription exists for a given Query Predicate. Returns a 200 OK status if any Subscriptions match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Subscriptions exist for the provided query predicate. Returns a 200 OK status if any Subscriptions match the query predicate, or a 404 Not Found otherwise.
Checks if a Subscription exists for a given key. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.
Checks if a Subscription exists with the provided key. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.
Checks if a TaxCategory exists for a given id. Returns a 200 OK status if the TaxCategory exists or a 404 Not Found otherwise.
Checks if a TaxCategory exists with the provided id. Returns a 200 OK status if the TaxCategory exists or a 404 Not Found otherwise.
Checks if a TaxCategory exists for a given Query Predicate. Returns a 200 OK status if any TaxCategories match the Query Predicate, or a 404 Not Found otherwise.
Checks if one or more Tax Categories exist for the provided query predicate. Returns a 200 OK status if any TaxCategories match the query predicate, or a 404 Not Found otherwise.
Checks if a TaxCategory exists for a given key. Returns a 200 OK status if the Tax Category exists or a 404 Not Found otherwise.
Checks if a TaxCategory exists with the provided key. Returns a 200 OK status if the Tax Category exists or a 404 Not Found otherwise.
Checks if a Type exists for a given id. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.
Checks if a Type exists with the provided id. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.
Checks if a Type exists for a given Query Predicate. Returns a 200 OK status if any Types match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Types exist for the provided query predicate. Returns a 200 OK status if any Types match the query predicate, or a 404 Not Found otherwise.
Checks if a Type exists for a given key. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.
Checks if a Type exists with the provided key. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.
Checks if a Zone exists for a given id. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.
Checks if a Zone exists with the provided id. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.
Checks if a Zone exists for a given Query Predicate. Returns a 200 OK status if any Zones match the Query Predicate or a 404 Not Found otherwise.
Checks if one or more Zones exist for the provided query predicate. Returns a 200 OK status if any Zones match the query predicate, or a 404 Not Found otherwise.
Checks if a Zone exists for a given key. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.
Checks if a Zone exists with the provided key. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.
Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.
+ *This action generates a BusinessUnitParentChanged Message.
* *New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.
+ *This action generates a BusinessUnitParentChanged Message.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class BusinessUnitChangeParentUnitActionImpl implements BusinessUnitChangeParentUnitAction, ModelBase { @@ -52,7 +52,8 @@ public String getAction() { } /** - *New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.
+ *New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.
+ *The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.
This action generates a BusinessUnitTypeSet Message.
+ * + *
+ * BusinessUnitSetUnitTypeAction businessUnitSetUnitTypeAction = BusinessUnitSetUnitTypeAction.builder()
+ * .unitType(BusinessUnitType.COMPANY)
+ * .build()
+ *
+ * New type of the Business Unit.
+ *If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.
New parent unit for the Business Unit, if unitType="Division".
New type of the Business Unit.
+ *If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.
New parent unit for the Business Unit, if unitType="Division".
+ * BusinessUnitSetUnitTypeAction businessUnitSetUnitTypeAction = BusinessUnitSetUnitTypeAction.builder()
+ * .unitType(BusinessUnitType.COMPANY)
+ * .build()
+ *
+ * New type of the Business Unit.
+ *If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.
New parent unit for the Business Unit, if unitType="Division".
New parent unit for the Business Unit, if unitType="Division".
New parent unit for the Business Unit, if unitType="Division".
New type of the Business Unit.
+ *If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.
New parent unit for the Business Unit, if unitType="Division".
This action generates a BusinessUnitTypeSet Message.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSetUnitTypeActionImpl implements BusinessUnitSetUnitTypeAction, ModelBase { + + private String action; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSetUnitTypeActionImpl( + @JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType, + @JsonProperty("parentUnit") final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { + this.unitType = unitType; + this.parentUnit = parentUnit; + this.action = SET_UNIT_TYPE; + } + + /** + * create empty instance + */ + public BusinessUnitSetUnitTypeActionImpl() { + this.action = SET_UNIT_TYPE; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *New type of the Business Unit.
+ *If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.
New parent unit for the Business Unit, if unitType="Division".
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
- *It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.
You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.
Base representation of an Event containing common fields to all Event Types.
+ * + *
+ * BaseEvent baseEvent = BaseEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .type(EventType.IMPORT_CONTAINER_CREATED)
+ * .data(dataBuilder -> dataBuilder)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + * + * @return notificationType + */ + @NotNull + @JsonProperty("notificationType") + public String getNotificationType(); + + /** + *The type of resource targeted by the Event.
+ * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *The type of Event that has occurred.
+ * @return type + */ + @NotNull + @JsonProperty("type") + public EventType getType(); + + /** + *An object containing details related to the Event.
+ * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public Object getData(); + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *Unique identifier of the Event.
+ * @param id value to be set + */ + + public void setId(final String id); + + /** + * set notificationType + * @param notificationType value to be set + */ + + public void setNotificationType(final String notificationType); + + /** + *The type of resource targeted by the Event.
+ * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *The type of Event that has occurred.
+ * @param type value to be set + */ + + public void setType(final EventType type); + + /** + *An object containing details related to the Event.
+ * @param data value to be set + */ + + public void setData(final Object data); + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + * factory method + * @return instance of BaseEvent + */ + public static BaseEvent of() { + return new BaseEventImpl(); + } + + /** + * factory method to create a shallow copy BaseEvent + * @param template instance to be copied + * @return copy instance + */ + public static BaseEvent of(final BaseEvent template) { + BaseEventImpl instance = new BaseEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setType(template.getType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * factory method to create a deep copy of BaseEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BaseEvent deepCopy(@Nullable final BaseEvent template) { + if (template == null) { + return null; + } + BaseEventImpl instance = new BaseEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setType(template.getType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * builder factory method for BaseEvent + * @return builder + */ + public static BaseEventBuilder builder() { + return BaseEventBuilder.of(); + } + + /** + * create builder for BaseEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BaseEventBuilder builder(final BaseEvent template) { + return BaseEventBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * BaseEvent baseEvent = BaseEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .type(EventType.IMPORT_CONTAINER_CREATED)
+ * .data(dataBuilder -> dataBuilder)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @param id value to be set + * @return Builder + */ + + public BaseEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public BaseEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + *The type of resource targeted by the Event.
+ * @param resourceType value to be set + * @return Builder + */ + + public BaseEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *The type of Event that has occurred.
+ * @param type value to be set + * @return Builder + */ + + public BaseEventBuilder type(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + return this; + } + + /** + *An object containing details related to the Event.
+ * @param data value to be set + * @return Builder + */ + + public BaseEventBuilder data(final java.lang.Object data) { + this.data = data; + return this; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public BaseEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Unique identifier of the Event.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *The type of resource targeted by the Event.
+ * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ * @return type + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *An object containing details related to the Event.
+ * @return data + */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + * builds BaseEvent with checking for non-null required values + * @return BaseEvent + */ + public BaseEvent build() { + Objects.requireNonNull(id, BaseEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, BaseEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, BaseEvent.class + ": resourceType is missing"); + Objects.requireNonNull(type, BaseEvent.class + ": type is missing"); + Objects.requireNonNull(data, BaseEvent.class + ": data is missing"); + Objects.requireNonNull(createdAt, BaseEvent.class + ": createdAt is missing"); + return new BaseEventImpl(id, notificationType, resourceType, type, data, createdAt); + } + + /** + * builds BaseEvent without checking for non-null required values + * @return BaseEvent + */ + public BaseEvent buildUnchecked() { + return new BaseEventImpl(id, notificationType, resourceType, type, data, createdAt); + } + + /** + * factory method for an instance of BaseEventBuilder + * @return builder + */ + public static BaseEventBuilder of() { + return new BaseEventBuilder(); + } + + /** + * create builder for BaseEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BaseEventBuilder of(final BaseEvent template) { + BaseEventBuilder builder = new BaseEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.type = template.getType(); + builder.data = template.getData(); + builder.createdAt = template.getCreatedAt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java new file mode 100644 index 00000000000..4465961ccc6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java @@ -0,0 +1,180 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Base representation of an Event containing common fields to all Event Types.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BaseEventImpl implements BaseEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.lang.Object data; + + private java.time.ZonedDateTime createdAt; + + /** + * create instance with all properties + */ + @JsonCreator + BaseEventImpl(@JsonProperty("id") final String id, @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("type") final com.commercetools.api.models.subscription.EventType type, + @JsonProperty("data") final java.lang.Object data, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.type = type; + this.data = data; + this.createdAt = createdAt; + } + + /** + * create empty instance + */ + public BaseEventImpl() { + } + + /** + *Unique identifier of the Event.
+ */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *The type of resource targeted by the Event.
+ */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *An object containing details related to the Event.
+ */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *Date and time (UTC) the Event was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setType(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + } + + public void setData(final java.lang.Object data) { + this.data = data; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BaseEventImpl that = (BaseEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(data, that.data) + .append(createdAt, that.createdAt) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(data, that.data) + .append(createdAt, that.createdAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(data) + .append(createdAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("data", data) + .append("createdAt", createdAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java new file mode 100644 index 00000000000..c6b8cf4e5f8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java @@ -0,0 +1,229 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; + +/** + *Base representation of an Event containing common fields to all Event Types.
+ * + *
+ * Event event = Event.importContainerCreatedBuilder()
+ * id("{id}")
+ * notificationType("{notificationType}")
+ * resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + * + * @return notificationType + */ + @NotNull + @JsonProperty("notificationType") + public String getNotificationType(); + + /** + *The type of resource targeted by the Event.
+ * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *The type of Event that has occurred.
+ * @return type + */ + @NotNull + @JsonProperty("type") + public EventType getType(); + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *Unique identifier of the Event.
+ * @param id value to be set + */ + + public void setId(final String id); + + /** + * set notificationType + * @param notificationType value to be set + */ + + public void setNotificationType(final String notificationType); + + /** + *The type of resource targeted by the Event.
+ * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + * factory method to create a deep copy of Event + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static Event deepCopy(@Nullable final Event template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.event.ImportContainerCreatedEvent) { + return com.commercetools.api.models.event.ImportContainerCreatedEvent + .deepCopy((com.commercetools.api.models.event.ImportContainerCreatedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportContainerDeletedEvent) { + return com.commercetools.api.models.event.ImportContainerDeletedEvent + .deepCopy((com.commercetools.api.models.event.ImportContainerDeletedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportOperationRejectedEvent) { + return com.commercetools.api.models.event.ImportOperationRejectedEvent + .deepCopy((com.commercetools.api.models.event.ImportOperationRejectedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportUnresolvedEvent) { + return com.commercetools.api.models.event.ImportUnresolvedEvent + .deepCopy((com.commercetools.api.models.event.ImportUnresolvedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportValidationFailedEvent) { + return com.commercetools.api.models.event.ImportValidationFailedEvent + .deepCopy((com.commercetools.api.models.event.ImportValidationFailedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportWaitForMasterVariantEvent) { + return com.commercetools.api.models.event.ImportWaitForMasterVariantEvent + .deepCopy((com.commercetools.api.models.event.ImportWaitForMasterVariantEvent) template); + } + EventImpl instance = new EventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * builder for importContainerCreated subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportContainerCreatedEventBuilder importContainerCreatedBuilder() { + return com.commercetools.api.models.event.ImportContainerCreatedEventBuilder.of(); + } + + /** + * builder for importContainerDeleted subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportContainerDeletedEventBuilder importContainerDeletedBuilder() { + return com.commercetools.api.models.event.ImportContainerDeletedEventBuilder.of(); + } + + /** + * builder for importOperationRejected subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportOperationRejectedEventBuilder importOperationRejectedBuilder() { + return com.commercetools.api.models.event.ImportOperationRejectedEventBuilder.of(); + } + + /** + * builder for importUnresolved subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportUnresolvedEventBuilder importUnresolvedBuilder() { + return com.commercetools.api.models.event.ImportUnresolvedEventBuilder.of(); + } + + /** + * builder for importValidationFailed subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportValidationFailedEventBuilder importValidationFailedBuilder() { + return com.commercetools.api.models.event.ImportValidationFailedEventBuilder.of(); + } + + /** + * builder for importWaitForMasterVariant subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder importWaitForMasterVariantBuilder() { + return com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder.of(); + } + + /** + * accessor map function + * @paramBase representation of an Event containing common fields to all Event Types.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventImpl implements Event, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + /** + * create instance with all properties + */ + @JsonCreator + EventImpl(@JsonProperty("id") final String id, @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("type") final com.commercetools.api.models.subscription.EventType type, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.type = type; + this.createdAt = createdAt; + } + + /** + * create empty instance + */ + public EventImpl() { + } + + /** + *Unique identifier of the Event.
+ */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *The type of resource targeted by the Event.
+ */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *Date and time (UTC) the Event was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + EventImpl that = (EventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java new file mode 100644 index 00000000000..777d6c7e677 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated when an Import Container is created.
+ * + *
+ * ImportContainerCreatedEvent importContainerCreatedEvent = ImportContainerCreatedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * An object containing details of the created Import Container.
+ * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportContainerCreatedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *An object containing details of the created Import Container.
+ * @param data value to be set + */ + + public void setData(final ImportContainerCreatedEventData data); + + /** + * factory method + * @return instance of ImportContainerCreatedEvent + */ + public static ImportContainerCreatedEvent of() { + return new ImportContainerCreatedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerCreatedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerCreatedEvent of(final ImportContainerCreatedEvent template) { + ImportContainerCreatedEventImpl instance = new ImportContainerCreatedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerCreatedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerCreatedEvent deepCopy(@Nullable final ImportContainerCreatedEvent template) { + if (template == null) { + return null; + } + ImportContainerCreatedEventImpl instance = new ImportContainerCreatedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportContainerCreatedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportContainerCreatedEvent + * @return builder + */ + public static ImportContainerCreatedEventBuilder builder() { + return ImportContainerCreatedEventBuilder.of(); + } + + /** + * create builder for ImportContainerCreatedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventBuilder builder(final ImportContainerCreatedEvent template) { + return ImportContainerCreatedEventBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ImportContainerCreatedEvent importContainerCreatedEvent = ImportContainerCreatedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @param id value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *An object containing details of the created Import Container.
+ * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerCreatedEventBuilder data( + FunctionAn object containing details of the created Import Container.
+ * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerCreatedEventBuilder withData( + FunctionAn object containing details of the created Import Container.
+ * @param data value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder data( + final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.data = data; + return this; + } + + /** + *Unique identifier of the Event.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the created Import Container.
+ * @return data + */ + + public com.commercetools.api.models.event.ImportContainerCreatedEventData getData() { + return this.data; + } + + /** + * builds ImportContainerCreatedEvent with checking for non-null required values + * @return ImportContainerCreatedEvent + */ + public ImportContainerCreatedEvent build() { + Objects.requireNonNull(id, ImportContainerCreatedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportContainerCreatedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportContainerCreatedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportContainerCreatedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportContainerCreatedEvent.class + ": data is missing"); + return new ImportContainerCreatedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportContainerCreatedEvent without checking for non-null required values + * @return ImportContainerCreatedEvent + */ + public ImportContainerCreatedEvent buildUnchecked() { + return new ImportContainerCreatedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportContainerCreatedEventBuilder + * @return builder + */ + public static ImportContainerCreatedEventBuilder of() { + return new ImportContainerCreatedEventBuilder(); + } + + /** + * create builder for ImportContainerCreatedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventBuilder of(final ImportContainerCreatedEvent template) { + ImportContainerCreatedEventBuilder builder = new ImportContainerCreatedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java new file mode 100644 index 00000000000..7b16c8cbcde --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; + +/** + *The data of the Import Container Created Event.
+ * ImportContainerCreatedEventData importContainerCreatedEventData = ImportContainerCreatedEventData.builder()
+ * .key("{key}")
+ * .version(1)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * The key of the created Import Container.
The version of the created Import Container.
Date and time (UTC) the Import Container was created.
+ * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *Date and time (UTC) the Import Container was last updated.
+ * @return lastModifiedAt + */ + @NotNull + @JsonProperty("lastModifiedAt") + public ZonedDateTime getLastModifiedAt(); + + /** + *The key of the created Import Container.
The version of the created Import Container.
Date and time (UTC) the Import Container was created.
+ * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + *Date and time (UTC) the Import Container was last updated.
+ * @param lastModifiedAt value to be set + */ + + public void setLastModifiedAt(final ZonedDateTime lastModifiedAt); + + /** + * factory method + * @return instance of ImportContainerCreatedEventData + */ + public static ImportContainerCreatedEventData of() { + return new ImportContainerCreatedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerCreatedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerCreatedEventData of(final ImportContainerCreatedEventData template) { + ImportContainerCreatedEventDataImpl instance = new ImportContainerCreatedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerCreatedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerCreatedEventData deepCopy(@Nullable final ImportContainerCreatedEventData template) { + if (template == null) { + return null; + } + ImportContainerCreatedEventDataImpl instance = new ImportContainerCreatedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + return instance; + } + + /** + * builder factory method for ImportContainerCreatedEventData + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder builder() { + return ImportContainerCreatedEventDataBuilder.of(); + } + + /** + * create builder for ImportContainerCreatedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder builder(final ImportContainerCreatedEventData template) { + return ImportContainerCreatedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ImportContainerCreatedEventData importContainerCreatedEventData = ImportContainerCreatedEventData.builder()
+ * .key("{key}")
+ * .version(1)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .build()
+ *
+ * The key of the created Import Container.
The version of the created Import Container.
Date and time (UTC) the Import Container was created.
+ * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *Date and time (UTC) the Import Container was last updated.
+ * @param lastModifiedAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *The key of the created Import Container.
The version of the created Import Container.
Date and time (UTC) the Import Container was created.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Date and time (UTC) the Import Container was last updated.
+ * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + * builds ImportContainerCreatedEventData with checking for non-null required values + * @return ImportContainerCreatedEventData + */ + public ImportContainerCreatedEventData build() { + Objects.requireNonNull(key, ImportContainerCreatedEventData.class + ": key is missing"); + Objects.requireNonNull(version, ImportContainerCreatedEventData.class + ": version is missing"); + Objects.requireNonNull(createdAt, ImportContainerCreatedEventData.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, ImportContainerCreatedEventData.class + ": lastModifiedAt is missing"); + return new ImportContainerCreatedEventDataImpl(key, version, createdAt, lastModifiedAt); + } + + /** + * builds ImportContainerCreatedEventData without checking for non-null required values + * @return ImportContainerCreatedEventData + */ + public ImportContainerCreatedEventData buildUnchecked() { + return new ImportContainerCreatedEventDataImpl(key, version, createdAt, lastModifiedAt); + } + + /** + * factory method for an instance of ImportContainerCreatedEventDataBuilder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder of() { + return new ImportContainerCreatedEventDataBuilder(); + } + + /** + * create builder for ImportContainerCreatedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder of(final ImportContainerCreatedEventData template) { + ImportContainerCreatedEventDataBuilder builder = new ImportContainerCreatedEventDataBuilder(); + builder.key = template.getKey(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java new file mode 100644 index 00000000000..9a8284eb9dc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *The data of the Import Container Created Event.
The key of the created Import Container.
The version of the created Import Container.
Date and time (UTC) the Import Container was created.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *Date and time (UTC) the Import Container was last updated.
+ */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerCreatedEventDataImpl that = (ImportContainerCreatedEventDataImpl) o; + + return new EqualsBuilder().append(key, that.key) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(key, that.key) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(key) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java new file mode 100644 index 00000000000..6c21c8f312b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *Generated when an Import Container is created.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerCreatedEventImpl implements ImportContainerCreatedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerCreatedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerCreatedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportContainerCreated"); + } + + /** + * create empty instance + */ + public ImportContainerCreatedEventImpl() { + this.type = EventType.findEnum("ImportContainerCreated"); + } + + /** + *Unique identifier of the Event.
+ */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *Date and time (UTC) the Event was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the created Import Container.
+ */ + + public com.commercetools.api.models.event.ImportContainerCreatedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerCreatedEventImpl that = (ImportContainerCreatedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java new file mode 100644 index 00000000000..cf55c509ce5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated when an Import Container is deleted.
+ * + *
+ * ImportContainerDeletedEvent importContainerDeletedEvent = ImportContainerDeletedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * An object containing details of the deleted Import Container.
+ * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportContainerDeletedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *An object containing details of the deleted Import Container.
+ * @param data value to be set + */ + + public void setData(final ImportContainerDeletedEventData data); + + /** + * factory method + * @return instance of ImportContainerDeletedEvent + */ + public static ImportContainerDeletedEvent of() { + return new ImportContainerDeletedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerDeletedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerDeletedEvent of(final ImportContainerDeletedEvent template) { + ImportContainerDeletedEventImpl instance = new ImportContainerDeletedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerDeletedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerDeletedEvent deepCopy(@Nullable final ImportContainerDeletedEvent template) { + if (template == null) { + return null; + } + ImportContainerDeletedEventImpl instance = new ImportContainerDeletedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportContainerDeletedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportContainerDeletedEvent + * @return builder + */ + public static ImportContainerDeletedEventBuilder builder() { + return ImportContainerDeletedEventBuilder.of(); + } + + /** + * create builder for ImportContainerDeletedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventBuilder builder(final ImportContainerDeletedEvent template) { + return ImportContainerDeletedEventBuilder.of(template); + } + + /** + * accessor map function + * @param
+ * ImportContainerDeletedEvent importContainerDeletedEvent = ImportContainerDeletedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @param id value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *An object containing details of the deleted Import Container.
+ * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerDeletedEventBuilder data( + FunctionAn object containing details of the deleted Import Container.
+ * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerDeletedEventBuilder withData( + FunctionAn object containing details of the deleted Import Container.
+ * @param data value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder data( + final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.data = data; + return this; + } + + /** + *Unique identifier of the Event.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the deleted Import Container.
+ * @return data + */ + + public com.commercetools.api.models.event.ImportContainerDeletedEventData getData() { + return this.data; + } + + /** + * builds ImportContainerDeletedEvent with checking for non-null required values + * @return ImportContainerDeletedEvent + */ + public ImportContainerDeletedEvent build() { + Objects.requireNonNull(id, ImportContainerDeletedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportContainerDeletedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportContainerDeletedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportContainerDeletedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportContainerDeletedEvent.class + ": data is missing"); + return new ImportContainerDeletedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportContainerDeletedEvent without checking for non-null required values + * @return ImportContainerDeletedEvent + */ + public ImportContainerDeletedEvent buildUnchecked() { + return new ImportContainerDeletedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportContainerDeletedEventBuilder + * @return builder + */ + public static ImportContainerDeletedEventBuilder of() { + return new ImportContainerDeletedEventBuilder(); + } + + /** + * create builder for ImportContainerDeletedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventBuilder of(final ImportContainerDeletedEvent template) { + ImportContainerDeletedEventBuilder builder = new ImportContainerDeletedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java new file mode 100644 index 00000000000..b745ae3f95f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; + +/** + *The data of the Import Container Deleted Event.
+ * ImportContainerDeletedEventData importContainerDeletedEventData = ImportContainerDeletedEventData.builder()
+ * .key("{key}")
+ * .version(1)
+ * .build()
+ *
+ * The key of the deleted Import Container.
The version of the deleted Import Container.
The key of the deleted Import Container.
The version of the deleted Import Container.
+ * ImportContainerDeletedEventData importContainerDeletedEventData = ImportContainerDeletedEventData.builder()
+ * .key("{key}")
+ * .version(1)
+ * .build()
+ *
+ * The key of the deleted Import Container.
The version of the deleted Import Container.
The key of the deleted Import Container.
The version of the deleted Import Container.
The data of the Import Container Deleted Event.
The key of the deleted Import Container.
The version of the deleted Import Container.
Generated when an Import Container is deleted.
+ */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerDeletedEventImpl implements ImportContainerDeletedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerDeletedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerDeletedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportContainerDeleted"); + } + + /** + * create empty instance + */ + public ImportContainerDeletedEventImpl() { + this.type = EventType.findEnum("ImportContainerDeleted"); + } + + /** + *Unique identifier of the Event.
+ */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *Date and time (UTC) the Event was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the deleted Import Container.
+ */ + + public com.commercetools.api.models.event.ImportContainerDeletedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerDeletedEventImpl that = (ImportContainerDeletedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java new file mode 100644 index 00000000000..2c25b44144d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *Generated when an Import Operation has the rejected ProcessingState.
+ * ImportOperationRejectedEvent importOperationRejectedEvent = ImportOperationRejectedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * An object containing details of the Import Operation with the rejected state.
An object containing details of the Import Operation with the rejected state.
+ * ImportOperationRejectedEvent importOperationRejectedEvent = ImportOperationRejectedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @param id value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *An object containing details of the Import Operation with the rejected state.
An object containing details of the Import Operation with the rejected state.
An object containing details of the Import Operation with the rejected state.
Unique identifier of the Event.
+ * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the Import Operation with the rejected state.
The data of the Import Operation Rejected Event.
+ * ImportOperationRejectedEventData importOperationRejectedEventData = ImportOperationRejectedEventData.builder()
+ * .id("{id}")
+ * .build()
+ *
+ * The id of the Import Operation with the rejected state.
The id of the Import Operation with the rejected state.
+ * ImportOperationRejectedEventData importOperationRejectedEventData = ImportOperationRejectedEventData.builder()
+ * .id("{id}")
+ * .build()
+ *
+ * The id of the Import Operation with the rejected state.
The id of the Import Operation with the rejected state.
The data of the Import Operation Rejected Event.
The id of the Import Operation with the rejected state.
Generated when an Import Operation has the rejected ProcessingState.
Unique identifier of the Event.
+ */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *The type of Event that has occurred.
+ */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *Date and time (UTC) the Event was generated.
+ */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *An object containing details of the Import Operation with the rejected state.
Generated when an Import Operation has the unresolved ProcessingState.
+ * ImportUnresolvedEvent importUnresolvedEvent = ImportUnresolvedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * An object containing details of the Import Operation with the unresolved state.
An object containing details of the Import Operation with the unresolved state.
+ * ImportUnresolvedEvent importUnresolvedEvent = ImportUnresolvedEvent.builder()
+ * .id("{id}")
+ * .notificationType("{notificationType}")
+ * .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
+ * .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
+ * .data(dataBuilder -> dataBuilder)
+ * .build()
+ *
+ * Unique identifier of the Event.
+ * @param id value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *Date and time (UTC) the Event was generated.
+ * @param createdAt value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *An object containing details of the Import Operation with the unresolved state.
An object containing details of the Import Operation with the