diff --git a/bruno/api/Project/Cart-discounts/Update actions/ChangeValue.bru b/bruno/api/Project/Cart-discounts/Update actions/ChangeValue.bru index e8d89818b..c032b84dd 100644 --- a/bruno/api/Project/Cart-discounts/Update actions/ChangeValue.bru +++ b/bruno/api/Project/Cart-discounts/Update actions/ChangeValue.bru @@ -21,7 +21,8 @@ body:json { "money" : [ { "currencyCode" : "EUR", "centAmount" : 40099 - } ] + } ], + "applicationMode" : "IndividualApplication" } } ] diff --git a/oas/api/openapi.yaml b/oas/api/openapi.yaml index b71964d03..0ef0c1504 100644 --- a/oas/api/openapi.yaml +++ b/oas/api/openapi.yaml @@ -38399,6 +38399,8 @@ components: type: "array" items: $ref: '#/components/schemas/CentPrecisionMoney' + applicationMode: + $ref: '#/components/schemas/DiscountApplicationMode' CartDiscountValueAbsoluteDraft: allOf: - $ref: '#/components/schemas/CartDiscountValueDraft' @@ -38412,6 +38414,8 @@ components: type: "array" items: $ref: '#/components/schemas/Money' + applicationMode: + $ref: '#/components/schemas/DiscountApplicationMode' CartDiscountValueDraft: type: "object" discriminator: @@ -38514,6 +38518,20 @@ components: permyriad: type: "integer" format: "int64" + DiscountApplicationMode: + type: "string" + enum: + - ProportionateDistribution + - EvenDistribution + - IndividualApplication + x-annotation-package: "CartDiscount" + x-annotation-enumDescriptions: + ProportionateDistribution: "Distributes the Discount proportionately across eligible + Line Items or Custom Line Items." + EvenDistribution: "Distributes the Discount evenly across eligible Line Items or Custom + Line Items." + IndividualApplication: "Applies the Discount individually to eligible Line Item or + Custom Line Item." MultiBuyCustomLineItemsTarget: allOf: - $ref: '#/components/schemas/CartDiscountTarget' diff --git a/uml/api/CartDiscountValue.puml b/uml/api/CartDiscountValue.puml index 588ec8233..5b254ab22 100644 --- a/uml/api/CartDiscountValue.puml +++ b/uml/api/CartDiscountValue.puml @@ -16,6 +16,7 @@ interface CartDiscountValue [[CartDiscountValue.svg]] { interface CartDiscountValueAbsolute [[CartDiscountValueAbsolute.svg]] { type: String money: [[CentPrecisionMoney.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface CartDiscountValueFixed [[CartDiscountValueFixed.svg]] { type: String diff --git a/uml/api/CartDiscountValueAbsolute.puml b/uml/api/CartDiscountValueAbsolute.puml index c5729577a..67507762d 100644 --- a/uml/api/CartDiscountValueAbsolute.puml +++ b/uml/api/CartDiscountValueAbsolute.puml @@ -11,6 +11,7 @@ endlegend interface CartDiscountValueAbsolute [[CartDiscountValueAbsolute.svg]] extends CartDiscountValue { type: String money: [[CentPrecisionMoney.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface CartDiscountValue [[CartDiscountValue.svg]] { type: String diff --git a/uml/api/CartDiscountValueAbsoluteDraft.puml b/uml/api/CartDiscountValueAbsoluteDraft.puml index ac88087c4..950703d13 100644 --- a/uml/api/CartDiscountValueAbsoluteDraft.puml +++ b/uml/api/CartDiscountValueAbsoluteDraft.puml @@ -11,6 +11,7 @@ endlegend interface CartDiscountValueAbsoluteDraft [[CartDiscountValueAbsoluteDraft.svg]] extends CartDiscountValueDraft { type: String money: [[Money.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface CartDiscountValueDraft [[CartDiscountValueDraft.svg]] { type: String diff --git a/uml/api/CartDiscountValueDraft.puml b/uml/api/CartDiscountValueDraft.puml index 41e4fc2ca..1139ca73e 100644 --- a/uml/api/CartDiscountValueDraft.puml +++ b/uml/api/CartDiscountValueDraft.puml @@ -16,6 +16,7 @@ interface CartDiscountValueDraft [[CartDiscountValueDraft.svg]] { interface CartDiscountValueAbsoluteDraft [[CartDiscountValueAbsoluteDraft.svg]] { type: String money: [[Money.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface CartDiscountValueFixedDraft [[CartDiscountValueFixedDraft.svg]] { type: String diff --git a/uml/api/CentPrecisionMoney.puml b/uml/api/CentPrecisionMoney.puml index f1ed837db..d4a1174fd 100644 --- a/uml/api/CentPrecisionMoney.puml +++ b/uml/api/CentPrecisionMoney.puml @@ -25,6 +25,7 @@ interface TypedMoney [[TypedMoney.svg]] { interface CartDiscountValueAbsolute [[CartDiscountValueAbsolute.svg]] { type: String money: [[CentPrecisionMoney.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface ProductDiscountValueAbsolute [[ProductDiscountValueAbsolute.svg]] { type: String diff --git a/uml/api/DiscountApplicationMode.puml b/uml/api/DiscountApplicationMode.puml new file mode 100644 index 000000000..c3291604a --- /dev/null +++ b/uml/api/DiscountApplicationMode.puml @@ -0,0 +1,21 @@ +@startuml + +hide methods +enum DiscountApplicationMode { + PROPORTIONATE_DISTRIBUTION + EVEN_DISTRIBUTION + INDIVIDUAL_APPLICATION +} +interface CartDiscountValueAbsolute [[CartDiscountValueAbsolute.svg]] { + type: String + money: [[CentPrecisionMoney.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] +} +interface CartDiscountValueAbsoluteDraft [[CartDiscountValueAbsoluteDraft.svg]] { + type: String + money: [[Money.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] +} +DiscountApplicationMode --> CartDiscountValueAbsolute #green;text:green : "applicationMode" +DiscountApplicationMode --> CartDiscountValueAbsoluteDraft #green;text:green : "applicationMode" +@enduml diff --git a/uml/api/Money.puml b/uml/api/Money.puml index 77af8364c..9ee5cd951 100644 --- a/uml/api/Money.puml +++ b/uml/api/Money.puml @@ -43,6 +43,7 @@ interface HighPrecisionMoneyDraft [[HighPrecisionMoneyDraft.svg]] { interface CartDiscountValueAbsoluteDraft [[CartDiscountValueAbsoluteDraft.svg]] { type: String money: [[Money.svg List]] + applicationMode: [[DiscountApplicationMode.svg DiscountApplicationMode]] } interface ProductDiscountValueAbsoluteDraft [[ProductDiscountValueAbsoluteDraft.svg]] { type: String diff --git a/uml/api/svg/CartDiscountValue.svg b/uml/api/svg/CartDiscountValue.svg index d71d83c0d..2747c50c2 100644 --- a/uml/api/svg/CartDiscountValue.svg +++ b/uml/api/svg/CartDiscountValue.svg @@ -1,11 +1,11 @@ -CartDiscountValuetype: StringCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>CartDiscountValueFixedtype: Stringmoney:List<TypedMoney>CartDiscountValueGiftLineItemtype: Stringproduct:ProductReferencevariantId: LongsupplyChannel:ChannelReferencedistributionChannel:ChannelReferenceCartDiscountValueRelativetype: Stringpermyriad: LongCartDiscountid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedByname:LocalizedStringkey: Stringdescription:LocalizedStringvalue:CartDiscountValuecartPredicate: Stringtarget:CartDiscountTargetsortOrder: Stringstores:List<StoreKeyReference>isActive: BooleanvalidFrom: DateTimevalidUntil: DateTimerequiresDiscountCode: Booleanreferences:List<Reference>stackingMode:StackingModecustom:CustomFieldsDirectDiscountid: Stringvalue:CartDiscountValuetarget:CartDiscountTargettype : absolutetype : fixedtype : giftLineItemtype : relativevaluevalue line   inheritance   property reference   discriminated classCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>applicationMode:DiscountApplicationModeCartDiscountValueFixedtype: Stringmoney:List<TypedMoney>CartDiscountValueGiftLineItemtype: Stringproduct:ProductReferencevariantId: LongsupplyChannel:ChannelReferencedistributionChannel:ChannelReferenceCartDiscountValueRelativetype: Stringpermyriad: LongCartDiscountid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedByname:LocalizedStringkey: Stringdescription:LocalizedStringvalue:CartDiscountValuecartPredicate: Stringtarget:CartDiscountTargetsortOrder: Stringstores:List<StoreKeyReference>isActive: BooleanvalidFrom: DateTimevalidUntil: DateTimerequiresDiscountCode: Booleanreferences:List<Reference>stackingMode:StackingModecustom:CustomFieldsDirectDiscountid: Stringvalue:CartDiscountValuetarget:CartDiscountTargettype : absolutetype : fixedtype : giftLineItemtype : relativevaluevalue line   inheritance   property reference   discriminated classCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>CartDiscountValuetype: String line   inheritance   property reference   discriminated classCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>applicationMode:DiscountApplicationModeCartDiscountValuetype: String line   inheritance   property reference   discriminated classCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>CartDiscountValueDrafttype: String line   inheritance   property reference   discriminated classCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>applicationMode:DiscountApplicationModeCartDiscountValueDrafttype: String line   inheritance   property reference   discriminated classCartDiscountValueDrafttype: StringCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>CartDiscountValueFixedDrafttype: Stringmoney:List<TypedMoneyDraft>CartDiscountValueGiftLineItemDrafttype: Stringproduct:ProductResourceIdentifiervariantId: LongsupplyChannel:ChannelResourceIdentifierdistributionChannel:ChannelResourceIdentifierCartDiscountValueRelativeDrafttype: Stringpermyriad: LongCartDiscountDraftname:LocalizedStringkey: Stringdescription:LocalizedStringvalue:CartDiscountValueDraftcartPredicate: Stringtarget:CartDiscountTargetsortOrder: Stringstores:List<StoreResourceIdentifier>isActive: BooleanvalidFrom: DateTimevalidUntil: DateTimerequiresDiscountCode: BooleanstackingMode:StackingModecustom:CustomFieldsDraftCartDiscountChangeValueActionaction: Stringvalue:CartDiscountValueDraftDirectDiscountDraftvalue:CartDiscountValueDrafttarget:CartDiscountTargettype : absolutetype : fixedtype : giftLineItemtype : relativevaluevaluevalue line   inheritance   property reference   discriminated classCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>applicationMode:DiscountApplicationModeCartDiscountValueFixedDrafttype: Stringmoney:List<TypedMoneyDraft>CartDiscountValueGiftLineItemDrafttype: Stringproduct:ProductResourceIdentifiervariantId: LongsupplyChannel:ChannelResourceIdentifierdistributionChannel:ChannelResourceIdentifierCartDiscountValueRelativeDrafttype: Stringpermyriad: LongCartDiscountDraftname:LocalizedStringkey: Stringdescription:LocalizedStringvalue:CartDiscountValueDraftcartPredicate: Stringtarget:CartDiscountTargetsortOrder: Stringstores:List<StoreResourceIdentifier>isActive: BooleanvalidFrom: DateTimevalidUntil: DateTimerequiresDiscountCode: BooleanstackingMode:StackingModecustom:CustomFieldsDraftCartDiscountChangeValueActionaction: Stringvalue:CartDiscountValueDraftDirectDiscountDraftvalue:CartDiscountValueDrafttarget:CartDiscountTargettype : absolutetype : fixedtype : giftLineItemtype : relativevaluevaluevalue line   inheritance   property reference   discriminated classCentPrecisionMoneycentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerTypedMoneycentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>ProductDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>Cartid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimekey: StringcustomerId: StringcustomerEmail: StringcustomerGroup:CustomerGroupReferenceanonymousId: StringbusinessUnit:BusinessUnitKeyReferencestore:StoreKeyReferencelineItems:List<LineItem>customLineItems:List<CustomLineItem>totalLineItemQuantity: LongtotalPrice:CentPrecisionMoneytaxedPrice:TaxedPricetaxedShippingPrice:TaxedPricediscountOnTotalPrice:DiscountOnTotalPricetaxMode:TaxModetaxRoundingMode:RoundingModetaxCalculationMode:TaxCalculationModeinventoryMode:InventoryModecartState:CartStatebillingAddress:AddressshippingAddress:AddressshippingMode:ShippingModeshippingKey: StringshippingInfo:ShippingInfoshippingRateInput:ShippingRateInputshippingCustomFields:CustomFieldsshipping:List<Shipping>itemShippingAddresses:List<Address>discountCodes:List<DiscountCodeInfo>directDiscounts:List<DirectDiscount>refusedGifts:List<CartDiscountReference>paymentInfo:PaymentInfocountry: Stringlocale: Stringorigin:CartOrigincustom:CustomFieldsdeleteDaysAfterLastModification: IntegerlastModifiedBy:LastModifiedBycreatedBy:CreatedByCustomLineItemid: Stringkey: Stringname:LocalizedStringmoney:TypedMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>totalPrice:CentPrecisionMoneyslug: Stringquantity: Longstate:List<ItemState>taxCategory:TaxCategoryReferencetaxRate:TaxRateperMethodTaxRate:List<MethodTaxRate>discountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>custom:CustomFieldsshippingDetails:ItemShippingDetailspriceMode:CustomLineItemPriceModeLineItemid: Stringkey: StringproductId: StringproductKey: Stringname:LocalizedStringproductSlug:LocalizedStringproductType:ProductTypeReferencevariant:ProductVariantprice:Pricequantity: LongtotalPrice:CentPrecisionMoneydiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>taxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>state:List<ItemState>taxRate:TaxRateperMethodTaxRate:List<MethodTaxRate>supplyChannel:ChannelReferencedistributionChannel:ChannelReferencepriceMode:LineItemPriceModelineItemMode:LineItemModeinventoryMode:InventoryModeshippingDetails:ItemShippingDetailscustom:CustomFieldsaddedAt: DateTimelastModifiedAt: DateTimeShippingInfoshippingMethodName: Stringprice:CentPrecisionMoneyshippingRate:ShippingRatetaxedPrice:TaxedItemPricetaxRate:TaxRatetaxCategory:TaxCategoryReferenceshippingMethod:ShippingMethodReferencedeliveries:List<Delivery>discountedPrice:DiscountedLineItemPriceshippingMethodState:ShippingMethodStateTaxPortionname: Stringrate: Doubleamount:CentPrecisionMoneyTaxedItemPricetotalNet:CentPrecisionMoneytotalGross:CentPrecisionMoneytaxPortions:List<TaxPortion>totalTax:CentPrecisionMoneyTaxedPricetotalNet:CentPrecisionMoneytotalGross:CentPrecisionMoneytaxPortions:List<TaxPortion>totalTax:CentPrecisionMoneyMyPaymentid: Stringversion: Longcustomer:CustomerReferenceanonymousId: StringamountPlanned:CentPrecisionMoneypaymentMethodInfo:PaymentMethodInfotransactions:List<Transaction>custom:CustomFieldsOrderLineItemDiscountSetMessageid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBysequenceNumber: Longresource:ReferenceresourceVersion: Longtype: StringresourceUserProvidedIdentifiers:UserProvidedIdentifierslineItemId: StringlineItemKey: StringdiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>totalPrice:CentPrecisionMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>OrderLineItemRemovedMessageid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBysequenceNumber: Longresource:ReferenceresourceVersion: Longtype: StringresourceUserProvidedIdentifiers:UserProvidedIdentifierslineItemId: StringlineItemKey: StringremovedQuantity: LongnewQuantity: LongnewState:List<ItemState>newTotalPrice:CentPrecisionMoneynewTaxedPrice:TaxedItemPricenewPrice:PricenewShippingDetail:ItemShippingDetailsOrderLineItemDiscountSetMessagePayloadtype: StringlineItemId: StringlineItemKey: StringdiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>totalPrice:CentPrecisionMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>OrderLineItemRemovedMessagePayloadtype: StringlineItemId: StringlineItemKey: StringremovedQuantity: LongnewQuantity: LongnewState:List<ItemState>newTotalPrice:CentPrecisionMoneynewTaxedPrice:TaxedItemPricenewPrice:PricenewShippingDetail:ItemShippingDetailsPaymentid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBycustomer:CustomerReferenceanonymousId: StringexternalId: StringinterfaceId: StringamountPlanned:CentPrecisionMoneyamountAuthorized:TypedMoneyauthorizedUntil: StringamountPaid:TypedMoneyamountRefunded:TypedMoneypaymentMethodInfo:PaymentMethodInfopaymentStatus:PaymentStatustransactions:List<Transaction>interfaceInteractions:List<CustomFields>custom:CustomFieldskey: StringTransactionid: Stringtimestamp: DateTimetype:TransactionTypeamount:CentPrecisionMoneyinteractionId: Stringstate:TransactionStatecustom:CustomFieldsShippingRateprice:CentPrecisionMoneyfreeAbove:CentPrecisionMoneyisMatching: Booleantiers:List<ShippingRatePriceTier>moneymoneytotalPricetotalPricetotalPricepriceamounttotalNettotalGrosstotalTaxtotalNettotalGrosstotalTaxamountPlannedtotalPricenewTotalPricetotalPricenewTotalPriceamountPlannedamountpricefreeAbove line   inheritance   property reference   discriminated classCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>applicationMode:DiscountApplicationModeProductDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>Cartid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimekey: StringcustomerId: StringcustomerEmail: StringcustomerGroup:CustomerGroupReferenceanonymousId: StringbusinessUnit:BusinessUnitKeyReferencestore:StoreKeyReferencelineItems:List<LineItem>customLineItems:List<CustomLineItem>totalLineItemQuantity: LongtotalPrice:CentPrecisionMoneytaxedPrice:TaxedPricetaxedShippingPrice:TaxedPricediscountOnTotalPrice:DiscountOnTotalPricetaxMode:TaxModetaxRoundingMode:RoundingModetaxCalculationMode:TaxCalculationModeinventoryMode:InventoryModecartState:CartStatebillingAddress:AddressshippingAddress:AddressshippingMode:ShippingModeshippingKey: StringshippingInfo:ShippingInfoshippingRateInput:ShippingRateInputshippingCustomFields:CustomFieldsshipping:List<Shipping>itemShippingAddresses:List<Address>discountCodes:List<DiscountCodeInfo>directDiscounts:List<DirectDiscount>refusedGifts:List<CartDiscountReference>paymentInfo:PaymentInfocountry: Stringlocale: Stringorigin:CartOrigincustom:CustomFieldsdeleteDaysAfterLastModification: IntegerlastModifiedBy:LastModifiedBycreatedBy:CreatedByCustomLineItemid: Stringkey: Stringname:LocalizedStringmoney:TypedMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>totalPrice:CentPrecisionMoneyslug: Stringquantity: Longstate:List<ItemState>taxCategory:TaxCategoryReferencetaxRate:TaxRateperMethodTaxRate:List<MethodTaxRate>discountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>custom:CustomFieldsshippingDetails:ItemShippingDetailspriceMode:CustomLineItemPriceModeLineItemid: Stringkey: StringproductId: StringproductKey: Stringname:LocalizedStringproductSlug:LocalizedStringproductType:ProductTypeReferencevariant:ProductVariantprice:Pricequantity: LongtotalPrice:CentPrecisionMoneydiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>taxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>state:List<ItemState>taxRate:TaxRateperMethodTaxRate:List<MethodTaxRate>supplyChannel:ChannelReferencedistributionChannel:ChannelReferencepriceMode:LineItemPriceModelineItemMode:LineItemModeinventoryMode:InventoryModeshippingDetails:ItemShippingDetailscustom:CustomFieldsaddedAt: DateTimelastModifiedAt: DateTimeShippingInfoshippingMethodName: Stringprice:CentPrecisionMoneyshippingRate:ShippingRatetaxedPrice:TaxedItemPricetaxRate:TaxRatetaxCategory:TaxCategoryReferenceshippingMethod:ShippingMethodReferencedeliveries:List<Delivery>discountedPrice:DiscountedLineItemPriceshippingMethodState:ShippingMethodStateTaxPortionname: Stringrate: Doubleamount:CentPrecisionMoneyTaxedItemPricetotalNet:CentPrecisionMoneytotalGross:CentPrecisionMoneytaxPortions:List<TaxPortion>totalTax:CentPrecisionMoneyTaxedPricetotalNet:CentPrecisionMoneytotalGross:CentPrecisionMoneytaxPortions:List<TaxPortion>totalTax:CentPrecisionMoneyMyPaymentid: Stringversion: Longcustomer:CustomerReferenceanonymousId: StringamountPlanned:CentPrecisionMoneypaymentMethodInfo:PaymentMethodInfotransactions:List<Transaction>custom:CustomFieldsOrderLineItemDiscountSetMessageid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBysequenceNumber: Longresource:ReferenceresourceVersion: Longtype: StringresourceUserProvidedIdentifiers:UserProvidedIdentifierslineItemId: StringlineItemKey: StringdiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>totalPrice:CentPrecisionMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>OrderLineItemRemovedMessageid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBysequenceNumber: Longresource:ReferenceresourceVersion: Longtype: StringresourceUserProvidedIdentifiers:UserProvidedIdentifierslineItemId: StringlineItemKey: StringremovedQuantity: LongnewQuantity: LongnewState:List<ItemState>newTotalPrice:CentPrecisionMoneynewTaxedPrice:TaxedItemPricenewPrice:PricenewShippingDetail:ItemShippingDetailsOrderLineItemDiscountSetMessagePayloadtype: StringlineItemId: StringlineItemKey: StringdiscountedPricePerQuantity:List<DiscountedLineItemPriceForQuantity>totalPrice:CentPrecisionMoneytaxedPrice:TaxedItemPricetaxedPricePortions:List<MethodTaxedPrice>OrderLineItemRemovedMessagePayloadtype: StringlineItemId: StringlineItemKey: StringremovedQuantity: LongnewQuantity: LongnewState:List<ItemState>newTotalPrice:CentPrecisionMoneynewTaxedPrice:TaxedItemPricenewPrice:PricenewShippingDetail:ItemShippingDetailsPaymentid: Stringversion: LongcreatedAt: DateTimelastModifiedAt: DateTimelastModifiedBy:LastModifiedBycreatedBy:CreatedBycustomer:CustomerReferenceanonymousId: StringexternalId: StringinterfaceId: StringamountPlanned:CentPrecisionMoneyamountAuthorized:TypedMoneyauthorizedUntil: StringamountPaid:TypedMoneyamountRefunded:TypedMoneypaymentMethodInfo:PaymentMethodInfopaymentStatus:PaymentStatustransactions:List<Transaction>interfaceInteractions:List<CustomFields>custom:CustomFieldskey: StringTransactionid: Stringtimestamp: DateTimetype:TransactionTypeamount:CentPrecisionMoneyinteractionId: Stringstate:TransactionStatecustom:CustomFieldsShippingRateprice:CentPrecisionMoneyfreeAbove:CentPrecisionMoneyisMatching: Booleantiers:List<ShippingRatePriceTier>moneymoneytotalPricetotalPricetotalPricepriceamounttotalNettotalGrosstotalTaxtotalNettotalGrosstotalTaxamountPlannedtotalPricenewTotalPricetotalPricenewTotalPriceamountPlannedamountpricefreeAbove line   inheritance   property reference   discriminated classDiscountApplicationModePROPORTIONATE_DISTRIBUTIONEVEN_DISTRIBUTIONINDIVIDUAL_APPLICATIONCartDiscountValueAbsolutetype: Stringmoney:List<CentPrecisionMoney>applicationMode:DiscountApplicationModeCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>applicationMode:DiscountApplicationModeapplicationModeapplicationMode diff --git a/uml/api/svg/Money.svg b/uml/api/svg/Money.svg index c0988cccb..509e8cc91 100644 --- a/uml/api/svg/Money.svg +++ b/uml/api/svg/Money.svg @@ -1,53 +1,53 @@ -MoneycentAmount: LongcurrencyCode: StringCentPrecisionMoneycentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerCentPrecisionMoneyDraftcentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerHighPrecisionMoneycentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerpreciseAmount: LongHighPrecisionMoneyDraftcentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerpreciseAmount: LongCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>ProductDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>CustomLineItemDraftname:LocalizedStringkey: Stringquantity: Longmoney:Moneyslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftcustom:CustomFieldsDraftshippingDetails:ItemShippingDetailsDraftpriceMode:CustomLineItemPriceModeExternalLineItemTotalPriceprice:MoneytotalPrice:MoneyExternalTaxAmountDrafttotalGross:MoneytaxRate:ExternalTaxRateDraftLineItemDraftkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftperMethodExternalTaxRate:List<MethodExternalTaxRateDraft>inventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftTaxPortionDraftname: Stringrate: Doubleamount:MoneyTaxedPriceDrafttotalNet:MoneytotalGross:MoneytaxPortions:List<TaxPortionDraft>totalTax:TypedMoneyDraftCartAddCustomLineItemActionaction: Stringmoney:Moneyname:LocalizedStringkey: Stringquantity: Longslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftpriceMode:CustomLineItemPriceModeCartAddLineItemActionaction: Stringkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftperMethodExternalTaxRate:List<MethodExternalTaxRateDraft>inventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftCartChangeCustomLineItemMoneyActionaction: StringcustomLineItemId: StringcustomLineItemKey: Stringmoney:MoneyCartChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceCartRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftCartSetCartTotalTaxActionaction: StringexternalTotalGross:MoneyexternalTaxPortions:List<TaxPortionDraft>CartSetLineItemPriceActionaction: StringlineItemId: StringlineItemKey: StringexternalPrice:MoneyDiscountedPriceDraftvalue:Moneydiscount:ProductDiscountReferencePriceDraftkey: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupResourceIdentifierchannel:ChannelResourceIdentifiervalidFrom: DateTimevalidUntil: DateTimediscounted:DiscountedPriceDrafttiers:List<PriceTierDraft>custom:CustomFieldsDraftPriceTierDraftminimumQuantity: Longvalue:MoneyQueryPriceid: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupReferencechannel:ChannelReferencevalidFrom: DateTimevalidUntil: DateTimediscounted:DiscountedPriceDraftcustom:CustomFieldstiers:List<PriceTierDraft>MyPaymentDraftamountPlanned:MoneypaymentMethodInfo:PaymentMethodInfocustom:CustomFieldsDrafttransaction:MyTransactionDraftMyTransactionDrafttimestamp: DateTimetype:TransactionTypeamount:MoneyinteractionId: Stringcustom:CustomFieldsDraftMyCartChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceMyCartRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftMyPaymentChangeAmountPlannedActionaction: Stringamount:MoneyStagedOrderAddCustomLineItemActionaction: Stringmoney:Moneyname:LocalizedStringkey: Stringquantity: Longslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftshippingDetails:ItemShippingDetailsDraftpriceMode:CustomLineItemPriceModecustom:CustomFieldsDraftStagedOrderAddLineItemActionaction: Stringkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftinventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftStagedOrderChangeCustomLineItemMoneyActionaction: StringcustomLineItemId: StringcustomLineItemKey: Stringmoney:MoneyStagedOrderChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceStagedOrderRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftStagedOrderSetLineItemPriceActionaction: StringlineItemId: StringlineItemKey: StringexternalPrice:MoneyStagedOrderSetOrderTotalTaxActionaction: StringexternalTotalGross:MoneyexternalTaxPortions:List<TaxPortionDraft>CustomLineItemImportDraftname:LocalizedStringkey: Stringslug: Stringquantity: Longmoney:MoneytaxRate:TaxRatetaxCategory:TaxCategoryResourceIdentifierpriceMode:CustomLineItemPriceModeshippingDetails:ItemShippingDetailsDraftstate:List<ItemState>custom:CustomFieldsDraftDiscountedLineItemPriceDraftvalue:MoneyincludedDiscounts:List<DiscountedLineItemPortionDraft>OrderImportDraftorderNumber: StringpurchaseOrderNumber: StringcustomerId: StringcustomerEmail: StringcustomerGroup:CustomerGroupResourceIdentifierbusinessUnit:BusinessUnitResourceIdentifierstore:StoreResourceIdentifierlineItems:List<LineItemImportDraft>customLineItems:List<CustomLineItemImportDraft>totalPrice:MoneytaxedPrice:TaxedPriceDrafttaxRoundingMode:RoundingModetaxCalculationMode:TaxCalculationModeinventoryMode:InventoryModebillingAddress:BaseAddressshippingAddress:BaseAddressitemShippingAddresses:List<BaseAddress>shippingInfo:ShippingInfoImportDraftpaymentInfo:PaymentInfopaymentState:PaymentStateshipmentState:ShipmentStateorderState:OrderStatestate:StateReferencecountry: Stringorigin:CartOrigincompletedAt: DateTimecustom:CustomFieldsDraftShippingInfoImportDraftshippingMethodName: Stringprice:MoneyshippingRate:ShippingRateDrafttaxRate:TaxRatetaxCategory:TaxCategoryResourceIdentifiershippingMethod:ShippingMethodResourceIdentifierdeliveries:List<DeliveryDraft>discountedPrice:DiscountedLineItemPriceDraftshippingMethodState:ShippingMethodStatePaymentDraftcustomer:CustomerResourceIdentifieranonymousId: StringexternalId: StringinterfaceId: StringamountPlanned:MoneyamountAuthorized:MoneyauthorizedUntil: StringamountPaid:MoneyamountRefunded:MoneypaymentMethodInfo:PaymentMethodInfopaymentStatus:PaymentStatusDrafttransactions:List<TransactionDraft>interfaceInteractions:List<CustomFieldsDraft>custom:CustomFieldsDraftkey: StringTransactionDrafttimestamp: DateTimetype:TransactionTypeamount:MoneyinteractionId: Stringstate:TransactionStatecustom:CustomFieldsDraftPaymentChangeAmountPlannedActionaction: Stringamount:MoneyCartClassificationTiertype:ShippingRateTierTypevalue: Stringprice:MoneyisMatching: BooleanCartScoreTiertype:ShippingRateTierTypescore: Integerprice:MoneypriceFunction:PriceFunctionisMatching: BooleanCartValueTiertype:ShippingRateTierTypeminimumCentAmount: Longprice:MoneyisMatching: BooleanShippingRateDraftprice:MoneyfreeAbove:Moneytiers:List<ShippingRatePriceTier>StandalonePriceDraftkey: Stringsku: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupResourceIdentifierchannel:ChannelResourceIdentifiervalidFrom: DateTimevalidUntil: DateTimetiers:List<PriceTierDraft>discounted:DiscountedPriceDraftcustom:CustomFieldsDraftstaged:StagedPriceDraftactive: BooleanStandalonePriceChangeValueActionaction: Stringvalue:Moneystaged: Booleantype : centPrecisiontype : centPrecisiontype : highPrecisiontype : highPrecisionmoneymoneymoneypricetotalPricetotalGrossexternalPriceamounttotalNettotalGrossmoneyexternalPricemoneyexternalPriceexternalPriceexternalTotalGrossexternalPricevaluevaluevaluevalueamountPlannedamountexternalPriceexternalPriceamountmoneyexternalPricemoneyexternalPriceexternalPriceexternalPriceexternalTotalGrossmoneyvaluetotalPricepriceamountPlannedamountAuthorizedamountPaidamountRefundedamountamountpricepricepricepricefreeAbovevaluevalue line   inheritance   property reference   discriminated classHighPrecisionMoneyDraftcentAmount: LongcurrencyCode: Stringtype:MoneyTypefractionDigits: IntegerpreciseAmount: LongCartDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>applicationMode:DiscountApplicationModeProductDiscountValueAbsoluteDrafttype: Stringmoney:List<Money>CustomLineItemDraftname:LocalizedStringkey: Stringquantity: Longmoney:Moneyslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftcustom:CustomFieldsDraftshippingDetails:ItemShippingDetailsDraftpriceMode:CustomLineItemPriceModeExternalLineItemTotalPriceprice:MoneytotalPrice:MoneyExternalTaxAmountDrafttotalGross:MoneytaxRate:ExternalTaxRateDraftLineItemDraftkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftperMethodExternalTaxRate:List<MethodExternalTaxRateDraft>inventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftTaxPortionDraftname: Stringrate: Doubleamount:MoneyTaxedPriceDrafttotalNet:MoneytotalGross:MoneytaxPortions:List<TaxPortionDraft>totalTax:TypedMoneyDraftCartAddCustomLineItemActionaction: Stringmoney:Moneyname:LocalizedStringkey: Stringquantity: Longslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftpriceMode:CustomLineItemPriceModeCartAddLineItemActionaction: Stringkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftperMethodExternalTaxRate:List<MethodExternalTaxRateDraft>inventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftCartChangeCustomLineItemMoneyActionaction: StringcustomLineItemId: StringcustomLineItemKey: Stringmoney:MoneyCartChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceCartRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftCartSetCartTotalTaxActionaction: StringexternalTotalGross:MoneyexternalTaxPortions:List<TaxPortionDraft>CartSetLineItemPriceActionaction: StringlineItemId: StringlineItemKey: StringexternalPrice:MoneyDiscountedPriceDraftvalue:Moneydiscount:ProductDiscountReferencePriceDraftkey: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupResourceIdentifierchannel:ChannelResourceIdentifiervalidFrom: DateTimevalidUntil: DateTimediscounted:DiscountedPriceDrafttiers:List<PriceTierDraft>custom:CustomFieldsDraftPriceTierDraftminimumQuantity: Longvalue:MoneyQueryPriceid: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupReferencechannel:ChannelReferencevalidFrom: DateTimevalidUntil: DateTimediscounted:DiscountedPriceDraftcustom:CustomFieldstiers:List<PriceTierDraft>MyPaymentDraftamountPlanned:MoneypaymentMethodInfo:PaymentMethodInfocustom:CustomFieldsDrafttransaction:MyTransactionDraftMyTransactionDrafttimestamp: DateTimetype:TransactionTypeamount:MoneyinteractionId: Stringcustom:CustomFieldsDraftMyCartChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceMyCartRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftMyPaymentChangeAmountPlannedActionaction: Stringamount:MoneyStagedOrderAddCustomLineItemActionaction: Stringmoney:Moneyname:LocalizedStringkey: Stringquantity: Longslug: StringtaxCategory:TaxCategoryResourceIdentifierexternalTaxRate:ExternalTaxRateDraftshippingDetails:ItemShippingDetailsDraftpriceMode:CustomLineItemPriceModecustom:CustomFieldsDraftStagedOrderAddLineItemActionaction: Stringkey: StringproductId: StringvariantId: Longsku: Stringquantity: LongaddedAt: DateTimedistributionChannel:ChannelResourceIdentifiersupplyChannel:ChannelResourceIdentifierexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceexternalTaxRate:ExternalTaxRateDraftinventoryMode:InventoryModeshippingDetails:ItemShippingDetailsDraftcustom:CustomFieldsDraftStagedOrderChangeCustomLineItemMoneyActionaction: StringcustomLineItemId: StringcustomLineItemKey: Stringmoney:MoneyStagedOrderChangeLineItemQuantityActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceStagedOrderRemoveLineItemActionaction: StringlineItemId: StringlineItemKey: Stringquantity: LongexternalPrice:MoneyexternalTotalPrice:ExternalLineItemTotalPriceshippingDetailsToRemove:ItemShippingDetailsDraftStagedOrderSetLineItemPriceActionaction: StringlineItemId: StringlineItemKey: StringexternalPrice:MoneyStagedOrderSetOrderTotalTaxActionaction: StringexternalTotalGross:MoneyexternalTaxPortions:List<TaxPortionDraft>CustomLineItemImportDraftname:LocalizedStringkey: Stringslug: Stringquantity: Longmoney:MoneytaxRate:TaxRatetaxCategory:TaxCategoryResourceIdentifierpriceMode:CustomLineItemPriceModeshippingDetails:ItemShippingDetailsDraftstate:List<ItemState>custom:CustomFieldsDraftDiscountedLineItemPriceDraftvalue:MoneyincludedDiscounts:List<DiscountedLineItemPortionDraft>OrderImportDraftorderNumber: StringpurchaseOrderNumber: StringcustomerId: StringcustomerEmail: StringcustomerGroup:CustomerGroupResourceIdentifierbusinessUnit:BusinessUnitResourceIdentifierstore:StoreResourceIdentifierlineItems:List<LineItemImportDraft>customLineItems:List<CustomLineItemImportDraft>totalPrice:MoneytaxedPrice:TaxedPriceDrafttaxRoundingMode:RoundingModetaxCalculationMode:TaxCalculationModeinventoryMode:InventoryModebillingAddress:BaseAddressshippingAddress:BaseAddressitemShippingAddresses:List<BaseAddress>shippingInfo:ShippingInfoImportDraftpaymentInfo:PaymentInfopaymentState:PaymentStateshipmentState:ShipmentStateorderState:OrderStatestate:StateReferencecountry: Stringorigin:CartOrigincompletedAt: DateTimecustom:CustomFieldsDraftShippingInfoImportDraftshippingMethodName: Stringprice:MoneyshippingRate:ShippingRateDrafttaxRate:TaxRatetaxCategory:TaxCategoryResourceIdentifiershippingMethod:ShippingMethodResourceIdentifierdeliveries:List<DeliveryDraft>discountedPrice:DiscountedLineItemPriceDraftshippingMethodState:ShippingMethodStatePaymentDraftcustomer:CustomerResourceIdentifieranonymousId: StringexternalId: StringinterfaceId: StringamountPlanned:MoneyamountAuthorized:MoneyauthorizedUntil: StringamountPaid:MoneyamountRefunded:MoneypaymentMethodInfo:PaymentMethodInfopaymentStatus:PaymentStatusDrafttransactions:List<TransactionDraft>interfaceInteractions:List<CustomFieldsDraft>custom:CustomFieldsDraftkey: StringTransactionDrafttimestamp: DateTimetype:TransactionTypeamount:MoneyinteractionId: Stringstate:TransactionStatecustom:CustomFieldsDraftPaymentChangeAmountPlannedActionaction: Stringamount:MoneyCartClassificationTiertype:ShippingRateTierTypevalue: Stringprice:MoneyisMatching: BooleanCartScoreTiertype:ShippingRateTierTypescore: Integerprice:MoneypriceFunction:PriceFunctionisMatching: BooleanCartValueTiertype:ShippingRateTierTypeminimumCentAmount: Longprice:MoneyisMatching: BooleanShippingRateDraftprice:MoneyfreeAbove:Moneytiers:List<ShippingRatePriceTier>StandalonePriceDraftkey: Stringsku: Stringvalue:Moneycountry: StringcustomerGroup:CustomerGroupResourceIdentifierchannel:ChannelResourceIdentifiervalidFrom: DateTimevalidUntil: DateTimetiers:List<PriceTierDraft>discounted:DiscountedPriceDraftcustom:CustomFieldsDraftstaged:StagedPriceDraftactive: BooleanStandalonePriceChangeValueActionaction: Stringvalue:Moneystaged: Booleantype : centPrecisiontype : centPrecisiontype : highPrecisiontype : highPrecisionmoneymoneymoneypricetotalPricetotalGrossexternalPriceamounttotalNettotalGrossmoneyexternalPricemoneyexternalPriceexternalPriceexternalTotalGrossexternalPricevaluevaluevaluevalueamountPlannedamountexternalPriceexternalPriceamountmoneyexternalPricemoneyexternalPriceexternalPriceexternalPriceexternalTotalGrossmoneyvaluetotalPricepriceamountPlannedamountAuthorizedamountPaidamountRefundedamountamountpricepricepricepricefreeAbovevaluevalue line   inheritance   property reference   discriminated class