@spree/docs 0.1.250 → 0.1.251
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.
|
@@ -391,6 +391,20 @@ one. An order whose every parcel was recalled now reads
|
|
|
391
391
|
`fulfillment_status: unfulfilled` rather than `canceled`; only a canceled
|
|
392
392
|
order reads `canceled`.
|
|
393
393
|
|
|
394
|
+
## Payment source IDs use the `psrc_` prefix
|
|
395
|
+
|
|
396
|
+
`Spree::PaymentSource` shared the `ps_` prefix with `Spree::PaymentSession`,
|
|
397
|
+
so the same string could name either record. Payment sources now use
|
|
398
|
+
`psrc_`. The encoded part of the ID doesn't change, only the prefix. The only
|
|
399
|
+
place a payment source's ID shows up is the `source_id` of a payment backed by
|
|
400
|
+
a non-card payment source (wallets, bank redirects and similar). If you stored
|
|
401
|
+
one of those values, swap `ps_` for `psrc_`. Payment session IDs stay `ps_`.
|
|
402
|
+
|
|
403
|
+
Class-level `decode_prefixed_id` (for example `Spree::Product.decode_prefixed_id`)
|
|
404
|
+
now returns `nil` for an ID with another model's prefix, the same as
|
|
405
|
+
`find_by_prefix_id`. Call `Spree::PrefixedId.decode_prefixed_id` if you
|
|
406
|
+
really need to decode any prefix.
|
|
407
|
+
|
|
394
408
|
## Removed in 6.0
|
|
395
409
|
|
|
396
410
|
These were deprecated in 5.x and are **gone now** — there is no bridge, so calls raise `NoMethodError`. Most were one-line delegations to a replacement that already exists.
|