@peable.to/contracts 4.0.0 → 4.1.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.
|
@@ -39,7 +39,7 @@ const sessionFields = {
|
|
|
39
39
|
.describe('The FairCoin network a FairCoin payment of this order uses — the merchant’s (or the seller’s); `null` when the payee has no FairCoin key yet (test mode) and in `setup` mode.'),
|
|
40
40
|
payment_method_types: zod_1.z
|
|
41
41
|
.array(shared_1.railSchema)
|
|
42
|
-
.describe("What the payer may choose: `['card', 'faircoin']` on a fiat order, `['faircoin']` on a FAIR one. FairCoin is always offered (ADR 0021); `['card']` in `setup` mode."),
|
|
42
|
+
.describe("What the payer may choose: `['card', 'faircoin']` on a fiat order (`['faircoin']` when the merchant offered FairCoin only), `['faircoin']` on a FAIR one. FairCoin is always offered (ADR 0021); `['card']` in `setup` mode."),
|
|
43
43
|
amount_subtotal: primitives_1.amount,
|
|
44
44
|
amount_total: primitives_1.amount,
|
|
45
45
|
total_details: shared_1.checkoutTotalDetailsSchema,
|
|
@@ -299,7 +299,7 @@ exports.createCheckoutSessionParams = zod_1.z
|
|
|
299
299
|
.min(1)
|
|
300
300
|
.max(2)
|
|
301
301
|
.optional()
|
|
302
|
-
.describe("Must include `faircoin`, which is always offered (ADR 0021; leaving it out is 400 `payment_method_locked`)
|
|
302
|
+
.describe("Must include `faircoin`, which is always offered (ADR 0021; leaving it out is 400 `payment_method_locked`). On a fiat order `['card', 'faircoin']` (the default) or `['faircoin']` — a FairCoin-only order, the fiat methods being the merchant's to turn off; on a FAIR order `['faircoin']`. Which card methods are offered comes from the payment method configuration."),
|
|
303
303
|
locale: shared_1.localeParam.optional(),
|
|
304
304
|
ui_mode: zod_1.z.enum(checkout_1.CHECKOUT_UI_MODES).optional(),
|
|
305
305
|
success_url: shared_1.redirectUrlParam
|
|
@@ -36,7 +36,7 @@ const sessionFields = {
|
|
|
36
36
|
.describe('The FairCoin network a FairCoin payment of this order uses — the merchant’s (or the seller’s); `null` when the payee has no FairCoin key yet (test mode) and in `setup` mode.'),
|
|
37
37
|
payment_method_types: z
|
|
38
38
|
.array(railSchema)
|
|
39
|
-
.describe("What the payer may choose: `['card', 'faircoin']` on a fiat order, `['faircoin']` on a FAIR one. FairCoin is always offered (ADR 0021); `['card']` in `setup` mode."),
|
|
39
|
+
.describe("What the payer may choose: `['card', 'faircoin']` on a fiat order (`['faircoin']` when the merchant offered FairCoin only), `['faircoin']` on a FAIR one. FairCoin is always offered (ADR 0021); `['card']` in `setup` mode."),
|
|
40
40
|
amount_subtotal: amount,
|
|
41
41
|
amount_total: amount,
|
|
42
42
|
total_details: checkoutTotalDetailsSchema,
|
|
@@ -296,7 +296,7 @@ export const createCheckoutSessionParams = z
|
|
|
296
296
|
.min(1)
|
|
297
297
|
.max(2)
|
|
298
298
|
.optional()
|
|
299
|
-
.describe("Must include `faircoin`, which is always offered (ADR 0021; leaving it out is 400 `payment_method_locked`)
|
|
299
|
+
.describe("Must include `faircoin`, which is always offered (ADR 0021; leaving it out is 400 `payment_method_locked`). On a fiat order `['card', 'faircoin']` (the default) or `['faircoin']` — a FairCoin-only order, the fiat methods being the merchant's to turn off; on a FAIR order `['faircoin']`. Which card methods are offered comes from the payment method configuration."),
|
|
300
300
|
locale: localeParam.optional(),
|
|
301
301
|
ui_mode: z.enum(CHECKOUT_UI_MODES).optional(),
|
|
302
302
|
success_url: redirectUrlParam
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/contracts",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|