Interface BaseResource
- All Known Subinterfaces:
ApprovalFlow
,ApprovalFlowApprovedMessage
,ApprovalFlowCompletedMessage
,ApprovalFlowCreatedMessage
,ApprovalFlowRejectedMessage
,ApprovalRule
,ApprovalRuleApproversSetMessage
,ApprovalRuleCreatedMessage
,ApprovalRuleDescriptionSetMessage
,ApprovalRuleKeySetMessage
,ApprovalRuleNameSetMessage
,ApprovalRulePredicateSetMessage
,ApprovalRuleRequestersSetMessage
,ApprovalRuleStatusSetMessage
,AssociateRole
,AssociateRoleBuyerAssignableChangedMessage
,AssociateRoleCreatedMessage
,AssociateRoleDeletedMessage
,AssociateRoleNameChangedMessage
,AssociateRolePermissionAddedMessage
,AssociateRolePermissionRemovedMessage
,AssociateRolePermissionsSetMessage
,AttributeGroup
,BusinessUnit
,BusinessUnitAddressAddedMessage
,BusinessUnitAddressChangedMessage
,BusinessUnitAddressCustomFieldAddedMessage
,BusinessUnitAddressCustomFieldChangedMessage
,BusinessUnitAddressCustomFieldRemovedMessage
,BusinessUnitAddressCustomTypeRemovedMessage
,BusinessUnitAddressCustomTypeSetMessage
,BusinessUnitAddressRemovedMessage
,BusinessUnitApprovalRuleModeChangedMessage
,BusinessUnitAssociateAddedMessage
,BusinessUnitAssociateChangedMessage
,BusinessUnitAssociateModeChangedMessage
,BusinessUnitAssociateRemovedMessage
,BusinessUnitAssociatesSetMessage
,BusinessUnitBillingAddressAddedMessage
,BusinessUnitBillingAddressRemovedMessage
,BusinessUnitContactEmailSetMessage
,BusinessUnitCreatedMessage
,BusinessUnitCustomFieldAddedMessage
,BusinessUnitCustomFieldChangedMessage
,BusinessUnitCustomFieldRemovedMessage
,BusinessUnitCustomTypeRemovedMessage
,BusinessUnitCustomTypeSetMessage
,BusinessUnitDefaultBillingAddressSetMessage
,BusinessUnitDefaultShippingAddressSetMessage
,BusinessUnitDeletedMessage
,BusinessUnitNameChangedMessage
,BusinessUnitParentChangedMessage
,BusinessUnitShippingAddressAddedMessage
,BusinessUnitShippingAddressRemovedMessage
,BusinessUnitStatusChangedMessage
,BusinessUnitStoreAddedMessage
,BusinessUnitStoreModeChangedMessage
,BusinessUnitStoreRemovedMessage
,BusinessUnitStoresSetMessage
,Cart
,CartDiscount
,CartDiscountCreatedMessage
,CartDiscountDeletedMessage
,CartDiscountStoreAddedMessage
,CartDiscountStoreRemovedMessage
,CartDiscountStoresSetMessage
,Category
,CategoryCreatedMessage
,CategorySlugChangedMessage
,Channel
,Company
,Customer
,CustomerAddressAddedMessage
,CustomerAddressChangedMessage
,CustomerAddressCustomFieldAddedMessage
,CustomerAddressCustomFieldChangedMessage
,CustomerAddressCustomFieldRemovedMessage
,CustomerAddressCustomTypeRemovedMessage
,CustomerAddressCustomTypeSetMessage
,CustomerAddressRemovedMessage
,CustomerCompanyNameSetMessage
,CustomerCreatedMessage
,CustomerCustomFieldAddedMessage
,CustomerCustomFieldChangedMessage
,CustomerCustomFieldRemovedMessage
,CustomerCustomTypeRemovedMessage
,CustomerCustomTypeSetMessage
,CustomerDateOfBirthSetMessage
,CustomerDeletedMessage
,CustomerEmailChangedMessage
,CustomerEmailTokenCreatedMessage
,CustomerEmailVerifiedMessage
,CustomerFirstNameSetMessage
,CustomerGroup
,CustomerGroupCustomFieldAddedMessage
,CustomerGroupCustomFieldChangedMessage
,CustomerGroupCustomFieldRemovedMessage
,CustomerGroupCustomTypeRemovedMessage
,CustomerGroupCustomTypeSetMessage
,CustomerGroupSetMessage
,CustomerLastNameSetMessage
,CustomerPasswordTokenCreatedMessage
,CustomerPasswordUpdatedMessage
,CustomerTitleSetMessage
,CustomLineItemStateTransitionMessage
,CustomObject
,DeliveryAddedMessage
,DeliveryAddressSetMessage
,DeliveryCustomFieldAddedMessage
,DeliveryCustomFieldChangedMessage
,DeliveryCustomFieldRemovedMessage
,DeliveryCustomTypeRemovedMessage
,DeliveryCustomTypeSetMessage
,DeliveryItemsUpdatedMessage
,DeliveryRemovedMessage
,DiscountCode
,DiscountCodeCreatedMessage
,DiscountCodeDeletedMessage
,DiscountCodeKeySetMessage
,Division
,Extension
,GenericCustomObject<TValue>
,InventoryEntry
,InventoryEntryCreatedMessage
,InventoryEntryDeletedMessage
,InventoryEntryQuantitySetMessage
,LineItemStateTransitionMessage
,Message
,Order
,OrderBillingAddressSetMessage
,OrderCreatedMessage
,OrderCustomerEmailSetMessage
,OrderCustomerGroupSetMessage
,OrderCustomerSetMessage
,OrderCustomFieldAddedMessage
,OrderCustomFieldChangedMessage
,OrderCustomFieldRemovedMessage
,OrderCustomLineItemAddedMessage
,OrderCustomLineItemDiscountSetMessage
,OrderCustomLineItemQuantityChangedMessage
,OrderCustomLineItemRemovedMessage
,OrderCustomTypeRemovedMessage
,OrderCustomTypeSetMessage
,OrderDeletedMessage
,OrderDiscountCodeAddedMessage
,OrderDiscountCodeRemovedMessage
,OrderDiscountCodeStateSetMessage
,OrderEdit
,OrderEditAppliedMessage
,OrderImportedMessage
,OrderLineItemAddedMessage
,OrderLineItemDiscountSetMessage
,OrderLineItemDistributionChannelSetMessage
,OrderLineItemRemovedMessage
,OrderMessage
,OrderPaymentAddedMessage
,OrderPaymentStateChangedMessage
,OrderPurchaseOrderNumberSetMessage
,OrderReturnShipmentStateChangedMessage
,OrderShipmentStateChangedMessage
,OrderShippingAddressSetMessage
,OrderShippingInfoSetMessage
,OrderShippingRateInputSetMessage
,OrderStateChangedMessage
,OrderStateTransitionMessage
,OrderStoreSetMessage
,ParcelAddedToDeliveryMessage
,ParcelItemsUpdatedMessage
,ParcelMeasurementsUpdatedMessage
,ParcelRemovedFromDeliveryMessage
,ParcelTrackingDataUpdatedMessage
,Payment
,PaymentCreatedMessage
,PaymentInteractionAddedMessage
,PaymentStatusInterfaceCodeSetMessage
,PaymentStatusStateTransitionMessage
,PaymentTransactionAddedMessage
,PaymentTransactionStateChangedMessage
,Product
,ProductAddedToCategoryMessage
,ProductCreatedMessage
,ProductDeletedMessage
,ProductDiscount
,ProductImageAddedMessage
,ProductPriceAddedMessage
,ProductPriceChangedMessage
,ProductPriceCustomFieldAddedMessage
,ProductPriceCustomFieldChangedMessage
,ProductPriceCustomFieldRemovedMessage
,ProductPriceCustomFieldsRemovedMessage
,ProductPriceCustomFieldsSetMessage
,ProductPriceDiscountsSetMessage
,ProductPriceExternalDiscountSetMessage
,ProductPriceKeySetMessage
,ProductPriceModeSetMessage
,ProductPriceRemovedMessage
,ProductPricesSetMessage
,ProductProjection
,ProductPublishedMessage
,ProductRemovedFromCategoryMessage
,ProductRevertedStagedChangesMessage
,ProductSelection
,ProductSelectionCreatedMessage
,ProductSelectionDeletedMessage
,ProductSelectionProductAddedMessage
,ProductSelectionProductExcludedMessage
,ProductSelectionProductRemovedMessage
,ProductSelectionVariantExclusionChangedMessage
,ProductSelectionVariantSelectionChangedMessage
,ProductSlugChangedMessage
,ProductStateTransitionMessage
,ProductTailoring
,ProductTailoringCreatedMessage
,ProductTailoringDeletedMessage
,ProductTailoringDescriptionSetMessage
,ProductTailoringImageAddedMessage
,ProductTailoringImagesSetMessage
,ProductTailoringNameSetMessage
,ProductTailoringPublishedMessage
,ProductTailoringSlugSetMessage
,ProductTailoringUnpublishedMessage
,ProductType
,ProductUnpublishedMessage
,ProductVariantAddedMessage
,ProductVariantDeletedMessage
,ProductVariantTailoringAddedMessage
,ProductVariantTailoringRemovedMessage
,Quote
,QuoteCreatedMessage
,QuoteCustomerChangedMessage
,QuoteDeletedMessage
,QuoteRenegotiationRequestedMessage
,QuoteRequest
,QuoteRequestCreatedMessage
,QuoteRequestCustomerChangedMessage
,QuoteRequestDeletedMessage
,QuoteRequestStateChangedMessage
,QuoteRequestStateTransitionMessage
,QuoteStateChangedMessage
,QuoteStateTransitionMessage
,ReturnInfoAddedMessage
,ReturnInfoSetMessage
,Review
,ReviewCreatedMessage
,ReviewRatingSetMessage
,ReviewStateTransitionMessage
,ShippingMethod
,ShoppingList
,StagedOrder
,StagedQuote
,StagedQuoteCreatedMessage
,StagedQuoteDeletedMessage
,StagedQuoteSellerCommentSetMessage
,StagedQuoteStateChangedMessage
,StagedQuoteStateTransitionMessage
,StagedQuoteValidToSetMessage
,StandalonePrice
,StandalonePriceActiveChangedMessage
,StandalonePriceCreatedMessage
,StandalonePriceDeletedMessage
,StandalonePriceDiscountSetMessage
,StandalonePriceExternalDiscountSetMessage
,StandalonePriceKeySetMessage
,StandalonePriceStagedChangesAppliedMessage
,StandalonePriceStagedChangesRemovedMessage
,StandalonePriceTierAddedMessage
,StandalonePriceTierRemovedMessage
,StandalonePriceTiersSetMessage
,StandalonePriceValidFromAndUntilSetMessage
,StandalonePriceValidFromSetMessage
,StandalonePriceValidUntilSetMessage
,StandalonePriceValueChangedMessage
,State
,Store
,StoreCountriesChangedMessage
,StoreCreatedMessage
,StoreDeletedMessage
,StoreDistributionChannelsChangedMessage
,StoreLanguagesChangedMessage
,StoreNameSetMessage
,StoreProductSelectionsChangedMessage
,StoreSupplyChannelsChangedMessage
,Subscription
,TaxCategory
,Type
,Zone
public interface BaseResource
BaseResource
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BaseResource baseResource = BaseResource.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseResource
deepCopy
(BaseResource template) factory method to create a deep copy of BaseResource@NotNull ZonedDateTime
@NotNull String
getId()
@NotNull ZonedDateTime
@NotNull Long
void
setCreatedAt
(ZonedDateTime createdAt) set createdAtvoid
set idvoid
setLastModifiedAt
(ZonedDateTime lastModifiedAt) set lastModifiedAtvoid
setVersion
(Long version) set versionstatic com.fasterxml.jackson.core.type.TypeReference<BaseResource>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withBaseResource
(Function<BaseResource, T> helper) accessor map function
-
Method Details
-
getId
- Returns:
- id
-
getVersion
- Returns:
- version
-
getCreatedAt
- Returns:
- createdAt
-
getLastModifiedAt
- Returns:
- lastModifiedAt
-
setId
set id- Parameters:
id
- value to be set
-
setVersion
set version- Parameters:
version
- value to be set
-
setCreatedAt
set createdAt- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
set lastModifiedAt- Parameters:
lastModifiedAt
- value to be set
-
deepCopy
factory method to create a deep copy of BaseResource- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
withBaseResource
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-