Interface BaseResource
- All Known Subinterfaces:
ApprovalFlow,ApprovalFlowApprovedMessage,ApprovalFlowCompletedMessage,ApprovalFlowCreatedMessage,ApprovalFlowRejectedMessage,ApprovalRule,ApprovalRuleApproversSetMessage,ApprovalRuleCreatedMessage,ApprovalRuleDescriptionSetMessage,ApprovalRuleKeySetMessage,ApprovalRuleNameSetMessage,ApprovalRulePredicateSetMessage,ApprovalRuleRequestersSetMessage,ApprovalRuleStatusSetMessage,AssociateRole,AssociateRoleBuyerAssignableChangedMessage,AssociateRoleCreatedMessage,AssociateRoleDeletedMessage,AssociateRoleNameSetMessage,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,BusinessUnitTopLevelUnitSetMessage,BusinessUnitTypeSetMessage,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,CustomerDefaultBillingAddressSetMessage,CustomerDefaultShippingAddressSetMessage,CustomerDeletedMessage,CustomerEmailChangedMessage,CustomerEmailTokenCreatedMessage,CustomerEmailVerifiedMessage,CustomerFirstNameSetMessage,CustomerGroup,CustomerGroupAssignmentAddedMessage,CustomerGroupAssignmentRemovedMessage,CustomerGroupAssignmentsSetMessage,CustomerGroupCustomFieldAddedMessage,CustomerGroupCustomFieldChangedMessage,CustomerGroupCustomFieldRemovedMessage,CustomerGroupCustomTypeRemovedMessage,CustomerGroupCustomTypeSetMessage,CustomerGroupSetMessage,CustomerLastNameSetMessage,CustomerPasswordTokenCreatedMessage,CustomerPasswordUpdatedMessage,CustomerStoresSetMessage,CustomerTitleSetMessage,CustomLineItemStateTransitionMessage,CustomObject,DeliveryAddedMessage,DeliveryAddressSetMessage,DeliveryCustomFieldAddedMessage,DeliveryCustomFieldChangedMessage,DeliveryCustomFieldRemovedMessage,DeliveryCustomTypeRemovedMessage,DeliveryCustomTypeSetMessage,DeliveryItemsUpdatedMessage,DeliveryRemovedMessage,DiscountCode,DiscountCodeCreatedMessage,DiscountCodeDeletedMessage,DiscountCodeKeySetMessage,DiscountGroup,DiscountGroupCreatedMessage,DiscountGroupDeletedMessage,DiscountGroupIsActiveSetMessage,DiscountGroupKeySetMessage,DiscountGroupSortOrderSetMessage,Division,Extension,GenericCustomObject<TValue>,InventoryEntry,InventoryEntryCreatedMessage,InventoryEntryDeletedMessage,InventoryEntryQuantitySetMessage,LineItemStateTransitionMessage,Message,Order,OrderBillingAddressSetMessage,OrderBusinessUnitSetMessage,OrderCreatedFromRecurringOrderMessage,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,PaymentInterfaceIdSetMessage,PaymentMethod,PaymentMethodCreatedMessage,PaymentMethodCustomFieldAddedMessage,PaymentMethodCustomFieldChangedMessage,PaymentMethodCustomFieldRemovedMessage,PaymentMethodCustomTypeRemovedMessage,PaymentMethodCustomTypeSetMessage,PaymentMethodDefaultSetMessage,PaymentMethodDeletedMessage,PaymentMethodInfoCustomFieldAddedMessage,PaymentMethodInfoCustomFieldChangedMessage,PaymentMethodInfoCustomFieldRemovedMessage,PaymentMethodInfoCustomTypeRemovedMessage,PaymentMethodInfoCustomTypeSetMessage,PaymentMethodInfoInterfaceAccountSetMessage,PaymentMethodInfoInterfaceSetMessage,PaymentMethodInfoMethodSetMessage,PaymentMethodInfoNameSetMessage,PaymentMethodInfoTokenSetMessage,PaymentMethodInterfaceAccountSetMessage,PaymentMethodKeySetMessage,PaymentMethodMethodSetMessage,PaymentMethodNameSetMessage,PaymentMethodPaymentInterfaceSetMessage,PaymentMethodPaymentMethodStatusSetMessage,PaymentStatusInterfaceCodeSetMessage,PaymentStatusStateTransitionMessage,PaymentTransactionAddedMessage,PaymentTransactionInterfaceIdSetMessage,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,RecurrencePolicy,RecurringOrder,RecurringOrderCreatedMessage,RecurringOrderCustomFieldAddedMessage,RecurringOrderCustomFieldChangedMessage,RecurringOrderCustomFieldRemovedMessage,RecurringOrderCustomTypeRemovedMessage,RecurringOrderCustomTypeSetMessage,RecurringOrderDeletedMessage,RecurringOrderExpiresAtSetMessage,RecurringOrderKeySetMessage,RecurringOrderScheduleSetMessage,RecurringOrderStartsAtSetMessage,RecurringOrderStateChangedMessage,RecurringOrderStateTransitionMessage,ReturnInfoAddedMessage,ReturnInfoSetMessage,Review,ReviewCreatedMessage,ReviewRatingSetMessage,ReviewStateTransitionMessage,ShippingMethod,ShoppingList,ShoppingListLineItemAddedMessage,ShoppingListLineItemRemovedMessage,ShoppingListMessage,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 TypeMethodDescriptioncopyDeep()static BaseResourcedeepCopy(BaseResource template) factory method to create a deep copy of BaseResource@NotNull ZonedDateTime@NotNull StringgetId()@NotNull ZonedDateTime@NotNull LongvoidsetCreatedAt(ZonedDateTime createdAt) set createdAtvoidset idvoidsetLastModifiedAt(ZonedDateTime lastModifiedAt) set lastModifiedAtvoidsetVersion(Long version) set versionstatic com.fasterxml.jackson.core.type.TypeReference<BaseResource>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithBaseResource(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
-
copyDeep
BaseResource copyDeep() -
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
-