Skip to content

[Feature] User Payment#7

Merged
Katsshura merged 6 commits into
masterfrom
feature/user-payment
Oct 9, 2022
Merged

[Feature] User Payment#7
Katsshura merged 6 commits into
masterfrom
feature/user-payment

Conversation

@Katsshura

Copy link
Copy Markdown
Owner

User Payment feature - Enabled API

Open API docs:

http://localhost:8080/swagger-ui.html
http://localhost:8080/v3/api-docs

UserPaymentCardDTO Schema:

Fields marked with * are required and cannot be null.
Field Constraints
id integer($int64)
card_number* string, maxLength: 16, minLength: 16
expiring_date* string, maxLength: 5, minLength: 5
cvv* integer positive
custom_name* string

Request JSON Example - POST - {{url}}/user/{{userId}}/payment/card

{
  "card_number": "5482524529310901",
  "expiring_date": "09/23",
  "cvv": 123,
  "custom_name": "Test Card"
}

Response JSON Example - GET - {{url}}/user/{{userId}}/payment/card

[
    {
        "id": 1,
        "card_number": "5482524529310901",
        "expiring_date": "09/23",
        "cvv": 123,
        "custom_name": "Test Card"
    }
]

DELETE Endpoint - {{url}}/user/{{userId}}/payment/card/{{paymentId}}

@Katsshura
Katsshura merged commit c91da95 into master Oct 9, 2022
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