* feat(core-flows,payment,medusa,types): add ability to set and manage refund reasons * fix(payment): validate total amount when refunding payment (#8437) Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com> * feature: introduce additional_data to the product endpoints (#8405) * chore(docs): Generated References (#8440) Generated the following references: - `product` * chore: align payment database schema * Update packages/core/core-flows/src/payment-collection/steps/create-refund-reasons.ts Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> * chore: address review --------- Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com> Co-authored-by: Harminder Virk <virk.officials@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
33 lines
715 B
TypeScript
33 lines
715 B
TypeScript
export const defaultAdminPaymentFields = [
|
|
"id",
|
|
"currency_code",
|
|
"amount",
|
|
"captured_at",
|
|
"payment_collection_id",
|
|
"payment_session_id",
|
|
"captures.id",
|
|
"captures.amount",
|
|
"refunds.id",
|
|
"refunds.amount",
|
|
"refunds.note",
|
|
"refunds.payment_id",
|
|
"refunds.refund_reason.label",
|
|
]
|
|
|
|
export const listTransformQueryConfig = {
|
|
defaults: defaultAdminPaymentFields,
|
|
isList: true,
|
|
}
|
|
|
|
export const retrieveTransformQueryConfig = {
|
|
defaults: defaultAdminPaymentFields,
|
|
isList: false,
|
|
}
|
|
|
|
export const defaultAdminPaymentPaymentProviderFields = ["id", "is_enabled"]
|
|
|
|
export const listTransformPaymentProvidersQueryConfig = {
|
|
defaults: defaultAdminPaymentPaymentProviderFields,
|
|
isList: true,
|
|
}
|