@marianmeres/collection-types 2.12.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/order.d.ts +7 -0
- package/dist/payment.d.ts +11 -0
- package/package.json +1 -1
package/dist/order.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ export interface OrderData {
|
|
|
67
67
|
billing_address?: AddressData;
|
|
68
68
|
/** Order notes */
|
|
69
69
|
notes?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Payment provider id stamped at checkout completion (e.g. `paypal`,
|
|
72
|
+
* `stripe`) — mirrors the invoice's `payment_method`. Empty/absent until
|
|
73
|
+
* the order is paid via checkout; an admin status flip does not set it, so
|
|
74
|
+
* renderers must treat "" as "unknown", never as "not paid".
|
|
75
|
+
*/
|
|
76
|
+
payment_method?: string;
|
|
70
77
|
/** Selected delivery option ID */
|
|
71
78
|
delivery_option_id?: string;
|
|
72
79
|
/** Delivery option snapshot at checkout time */
|
package/dist/payment.d.ts
CHANGED
|
@@ -19,6 +19,17 @@ export interface PaymentData {
|
|
|
19
19
|
status: PaymentStatus;
|
|
20
20
|
/** Payment amount */
|
|
21
21
|
amount: number;
|
|
22
|
+
/**
|
|
23
|
+
* Cumulative amount refunded so far, in the same units as {@link amount}.
|
|
24
|
+
* Absent or `0` = nothing refunded.
|
|
25
|
+
*
|
|
26
|
+
* A value **below** `amount` is a PARTIAL refund, and `status` deliberately
|
|
27
|
+
* stays `"completed"` in that case — a partially refunded payment is still a
|
|
28
|
+
* completed one. So `status === "refunded"` answers "was ALL of it
|
|
29
|
+
* returned?", and this field answers "was ANY of it returned?". Reading the
|
|
30
|
+
* former as the latter is wrong the moment a partial refund happens.
|
|
31
|
+
*/
|
|
32
|
+
refunded_amount?: number;
|
|
22
33
|
/** Currency code */
|
|
23
34
|
currency: string;
|
|
24
35
|
/** Provider-specific reference ID */
|