PaymentCollection - Payment Module Data Models Reference

This documentation provides a reference to the PaymentCollection data model. It belongs to the Payment Module.

idPrimaryKeyModifier<IdProperty>
The ID of the payment collection.
currency_codeTextProperty
The currency code of the payment collection. @example usd
amountBigNumberProperty
The amount of the payment collection
statusEnumProperty<typeof PaymentCollectionStatus>
The status of the payment collection
payment_providersManyToMany<PaymentProvider>
The associated payment providers.
payment_sessionsHasMany<PaymentSession>
The associated payment sessions.
paymentsHasMany<Payment>
The associated payments.
authorized_amountBigNumberPropertyOptional
The authorized amount of the payment collection
captured_amountBigNumberPropertyOptional
The captured amount of the payment collection
refunded_amountBigNumberPropertyOptional
The refunded amount of the payment collection
completed_atDateTimePropertyOptional
The date the payment collection was completed
metadataJSONPropertyOptional
Holds custom data in key-value pairs.
Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break