Skip to content

ECOM-17052 Omni Store Credit. Refund. Add order.storeCredit.refund field#554

Open
mamirovlspeed wants to merge 1 commit intomasterfrom
ECOM-17052
Open

ECOM-17052 Omni Store Credit. Refund. Add order.storeCredit.refund field#554
mamirovlspeed wants to merge 1 commit intomasterfrom
ECOM-17052

Conversation

@mamirovlspeed
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the new order.storeCredit.refund field across order DTOs and the fetched→updated conversion path, ensuring nullable-property tests remain aligned with the DTO contract.

Changes:

  • Added refund: Double? to FetchedOrder.StoreCredit (result DTO).
  • Added refund: Double? to UpdatedOrder.StoreCredit (request DTO) and mapped it in FetchedOrder.StoreCredit.toUpdated().
  • Updated nullable-property rules to allow FetchedOrder.StoreCredit.refund to be nullable.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt Allows the newly added StoreCredit.refund field to be nullable in DTO contract tests.
src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt Introduces storeCredit.refund on fetched orders.
src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/UpdatedOrder.kt Introduces storeCredit.refund on updated orders for write/modify flows.
src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedOrder.kt Ensures refund is preserved when converting FetchedOrder.StoreCredit to UpdatedOrder.StoreCredit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mamirovlspeed
Copy link
Copy Markdown
Contributor Author

Мерджить после https://github.com/Ecwid/ecwid/pull/14314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants