Skip to content

Refund models — request, response, and OrderResponse integration #30

@rammrain

Description

@rammrain

Summary

Define refund DTOs and integrate them into OrderResponse.

Context

Issue #14 implemented OrderResponse but deferred refund-related fields. The Montonio API returns refunds, availableForRefund, and (already included) isRefundableType on the order response. The TypeScript client defines:

interface RefundResponse {
    uuid: string;
    amount: number;
    status: string;
    currency: Currency;
    createdAt: string;
    type: string;
}

Requirements

  • Create RefundResponse response DTO in an appropriate package (e.g., sdk.order.response or a new sdk.refund package)
  • Add refunds: List<RefundResponse> and availableForRefund: BigDecimal fields to OrderResponse
  • Unit tests for serialization/deserialization round-trips

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions