Skip to content

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

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

Activity

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

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