Uses of Record Class
com.example.orderplatform.Money
Packages that use Money
Package
Description
Shared application bootstrap, problem exceptions and value objects used across order platform modules.
Named order API surface and order domain events consumed by downstream modules.
Named payment API surface and payment events consumed by notification workflows.
Named pricing API surface used by orders to quote products before accepting an order.
-
Uses of Money in com.example.orderplatform
Methods in com.example.orderplatform that return MoneyModifier and TypeMethodDescriptionAdds two monetary values after verifying they use the same currency.Money.multiply(int factor) Multiplies this value by a positive quantity.static MoneyMoney.of(BigDecimal amount, String currency) Creates a normalized money value.Methods in com.example.orderplatform with parameters of type Money -
Uses of Money in com.example.orderplatform.orders.api
Methods in com.example.orderplatform.orders.api that return MoneyModifier and TypeMethodDescriptionOrderLineSummary.lineTotal()Returns the value of thelineTotalrecord component.OrderSummary.total()Returns the value of thetotalrecord component.OrderLineSummary.unitPrice()Returns the value of theunitPricerecord component.Constructors in com.example.orderplatform.orders.api with parameters of type MoneyModifierConstructorDescriptionOrderLineSummary(String productCode, int quantity, Money unitPrice, Money lineTotal) Creates an instance of aOrderLineSummaryrecord class.OrderSummary(UUID id, UUID customerId, String status, Money total, List<OrderLineSummary> lines, OffsetDateTime createdAt) Creates an instance of aOrderSummaryrecord class. -
Uses of Money in com.example.orderplatform.orders.domain
Methods in com.example.orderplatform.orders.domain that return MoneyModifier and TypeMethodDescriptionOrderLineDraft.lineTotal()Calculates the line total from unit price and quantity.OrderDraft.total()Calculates the order total from all priced lines.OrderLineDraft.unitPrice()Returns the value of theunitPricerecord component.Constructors in com.example.orderplatform.orders.domain with parameters of type MoneyModifierConstructorDescriptionOrderLineDraft(String productCode, int quantity, Money unitPrice) Creates an instance of aOrderLineDraftrecord class. -
Uses of Money in com.example.orderplatform.payments.api
Methods in com.example.orderplatform.payments.api that return MoneyModifier and TypeMethodDescriptionPaymentSummary.amount()Returns the value of theamountrecord component.Methods in com.example.orderplatform.payments.api with parameters of type MoneyModifier and TypeMethodDescriptionAuthorizes the pending payment for an order when the submitted amount matches the order total.Constructors in com.example.orderplatform.payments.api with parameters of type MoneyModifierConstructorDescriptionPaymentSummary(UUID id, UUID orderId, String status, Money amount, OffsetDateTime createdAt, OffsetDateTime authorizedAt) Creates an instance of aPaymentSummaryrecord class. -
Uses of Money in com.example.orderplatform.payments.application
Methods in com.example.orderplatform.payments.application with parameters of type MoneyModifier and TypeMethodDescriptionAuthorizes an existing pending payment when the submitted amount equals the order total. -
Uses of Money in com.example.orderplatform.payments.domain
Methods in com.example.orderplatform.payments.domain that return MoneyModifier and TypeMethodDescriptionPayment.amount()Returns the value of theamountrecord component.Methods in com.example.orderplatform.payments.domain with parameters of type MoneyModifier and TypeMethodDescriptionstatic PaymentPayment.pending(UUID id, UUID orderId, Money amount, OffsetDateTime createdAt) Creates a pending payment for a submitted order.Constructors in com.example.orderplatform.payments.domain with parameters of type MoneyModifierConstructorDescriptionPayment(UUID id, UUID orderId, PaymentStatus status, Money amount, OffsetDateTime createdAt, OffsetDateTime authorizedAt) Creates an instance of aPaymentrecord class. -
Uses of Money in com.example.orderplatform.pricing.api
Methods in com.example.orderplatform.pricing.api that return MoneyModifier and TypeMethodDescriptionPricedLine.lineTotal()Returns the value of thelineTotalrecord component.PricingQuote.total()Returns the value of thetotalrecord component.PricedLine.unitPrice()Returns the value of theunitPricerecord component.Constructors in com.example.orderplatform.pricing.api with parameters of type MoneyModifierConstructorDescriptionPricedLine(String productCode, int quantity, Money unitPrice, Money lineTotal) Creates an instance of aPricedLinerecord class.PricingQuote(List<PricedLine> lines, Money total) Creates an instance of aPricingQuoterecord class. -
Uses of Money in com.example.orderplatform.pricing.application
Methods in com.example.orderplatform.pricing.application that return MoneyModifier and TypeMethodDescriptionCatalogPrice.unitPrice()Returns the value of theunitPricerecord component.Constructors in com.example.orderplatform.pricing.application with parameters of type MoneyModifierConstructorDescriptionCatalogPrice(String productCode, Money unitPrice) Creates an instance of aCatalogPricerecord class.