Skip to content

fix: restore versioned list payments and recurring payments#377

Open
tessstoddard wants to merge 1 commit into
masterfrom
tess/GCU-1345
Open

fix: restore versioned list payments and recurring payments#377
tessstoddard wants to merge 1 commit into
masterfrom
tess/GCU-1345

Conversation

@tessstoddard

@tessstoddard tessstoddard commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

Restore list version endpoints for recurring payments and payments. I had to add a cast to the return value so that the xml serializer understands that it is a MdxList or MdxList

Fixes # https://mxcom.atlassian.net/browse/GCU-1345

Public API Additions/Changes

Adds a versioned endpoint for list payment and recurring payment

Downstream Consumer Impact

None. Services that currently have this feature should be getting the default behavior

How Has This Been Tested?

Unit tests and pulled this in locally to verify that response is correct for default methods

= Request

GET http://localhost:3009/globalcu/users/U-00u3la36x0bbNvPud1d7/recurring_payments

mx-feature: payments
cookie: JSESSIONID=904854845A6123A5D49269722C804483
host: localhost:3009
mx-session-key: **MASKED**
accept-encoding: br, deflate, gzip, x-gzip
accept: application/vnd.mx.mdx.v6+json
user-agent: IntelliJ HTTP Client/IntelliJ IDEA 2026.1.3

= Response

200
Content-Type: application/vnd.mx.mdx.v6+json;charset=UTF-8
{
  "recurring_payments": [
    {
      "id": "**MASKED**",
      "confirmation_id": "96495149",
      "account_id": "**MASKED**",
      "payee_id": "155353959",
      "payee_name": "John 18711736",
      "frequency_id": "DEFAULT",
      "status": "ACTIVE",
      "amount": 7.04,
      "memo": "**MASKED**",
      "end_after_count": 1,
      "payments_count": 0,
      "next_payment_on": "2078-01-09",
      "user_id": "U-00u3la36x0bbNvPud1d7"
    }
  ]
}

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

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.

1 participant