@stripe/link-cli 0.8.1 → 0.8.2
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/README.md +2 -2
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,7 +105,7 @@ Returns the shipping addresses saved to your Link account. The response preserve
|
|
|
105
105
|
|
|
106
106
|
### Create a spend request
|
|
107
107
|
|
|
108
|
-
Create a spend request with
|
|
108
|
+
Create a spend request with merchant details, line items, and amounts. If `--payment-method-id` is omitted, your default payment method will be used, or the first eligible one if no default is set:
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
111
|
link-cli spend-request create \
|
|
@@ -214,7 +214,7 @@ All commands accept `--auth <path>` to store auth credentials in a specific file
|
|
|
214
214
|
|
|
215
215
|
A spend request moves through: **create** → **request approval** → **approved** (with credentials).
|
|
216
216
|
|
|
217
|
-
**Required fields for create:** `
|
|
217
|
+
**Required fields for create:** `merchant_name`, `merchant_url`, `context`, `amount`. `payment_method_id` is optional — if omitted, your default payment method will be used, or the first eligible one if no default is set.
|
|
218
218
|
|
|
219
219
|
**Constraints:** `context` must be at least 100 characters; `amount` must not exceed 500000 (cents); `currency` must be a 3-letter ISO code. The user has 10 minutes from when approval is requested to approve. Approved credentials (card or SPT) are valid for 12 hours from spend request creation.
|
|
220
220
|
**Test mode:** Pass `--test` to create testmode credentials (uses test card `4242424242424242`), useful for development and integration testing without real payment methods.
|
package/dist/cli.js
CHANGED
|
@@ -15631,7 +15631,7 @@ var RetrieveSpendRequest = ({
|
|
|
15631
15631
|
// src/commands/spend-request/schema.ts
|
|
15632
15632
|
import { z as z8 } from "incur";
|
|
15633
15633
|
var createOptions = z8.object({
|
|
15634
|
-
paymentMethodId: z8.string().describe("Payment method ID"),
|
|
15634
|
+
paymentMethodId: z8.string().optional().describe("Payment method ID"),
|
|
15635
15635
|
credentialType: z8.enum(["shared_payment_token", "card"]).default("card").describe(
|
|
15636
15636
|
'"card" for checkout forms/Stripe Elements; "shared_payment_token" for HTTP 402/machine payment flows'
|
|
15637
15637
|
),
|
|
@@ -16703,7 +16703,7 @@ function cacheUpdateInfo(value, ttlMs = UPDATE_CACHE_TTL_MS) {
|
|
|
16703
16703
|
}
|
|
16704
16704
|
|
|
16705
16705
|
// src/cli.tsx
|
|
16706
|
-
var cliVersion = "0.8.
|
|
16706
|
+
var cliVersion = "0.8.2";
|
|
16707
16707
|
var cliName = "@stripe/link-cli";
|
|
16708
16708
|
var defaultHeaders = {
|
|
16709
16709
|
"User-Agent": `link-cli/${cliVersion}`
|