bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

namex: back end for refund feature #5708

Closed severinbeauvais closed 3 years ago

severinbeauvais commented 3 years ago

Description:

The Name Request API needs some development to support the refund feature.

This ticket is a sibling to UI ticket #4488.

The flow:

References:

Refund possible table:

Source of NR User Role Payment Type Refund possible from name request?
NRO Staff FAS No
NRO Staff BCOL No
NRO Staff No Fee No
NRO BCOL BCOL No
NRO Public Credit Card No
Name Request Public Pay BC Credit Card Yes
Name Request Public BCOL TBD

Pay endpoint details from @sumesh-aot :

Refund Endpoint : POST /api/v1/payment-requests/{id}/refunds Body :

{
'reason': 'Duplicate submission'
}

The endpoint is secured by system role, only service accounts can invoke this endpoint. Possible status codes. : 202 (Accepted, no response body),

Kaineatthelab commented 3 years ago

@bcdevlucas are you able to pick this one up next?

bcdevlucas commented 3 years ago

Something is up with Payments API... looking into it, this is basically done.

severinbeauvais commented 3 years ago

Something is up with Payments API... looking into it, this is basically done.

Awesome. Please let me know when it's deployed to Dev so we can test there.