@flopay/shared 1.4.2 → 1.4.4
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/index.cjs +1 -2750
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.mjs +1 -2613
- package/package.json +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -96,8 +96,8 @@ throw validationError('Email is required', 'email');
|
|
|
96
96
|
| `PaymentResult` | Payment outcome: `status` (`'succeeded'`/`'processing'`/`'requires_action'`/`'failed'`), `paymentIntentId?`, `error?` |
|
|
97
97
|
| `ConfirmPaymentParams` | Non-card confirmation: `clientSecret`, `paymentMethodCategory` (`'wallet'`/`'apm'`), `paymentMethodType`, `returnUrl?`, `billingDetails?`; `card` is rejected at runtime. |
|
|
98
98
|
| `PayPalPaymentResult` | Stripe-hosted PayPal outcome: `status`, `paymentIntentId?`, `paymentMethodId?`, `error?` |
|
|
99
|
-
| `CreateSessionIntentRequest` | Discriminated Stripe wallet/APM or PayPal order
|
|
100
|
-
| `SessionIntent` | Matching discriminated response
|
|
99
|
+
| `CreateSessionIntentRequest` | Discriminated Stripe wallet/APM or direct-PayPal intent request. `intentKind` is `'payment'`/`'setup'` (PayPal is always `'payment'` — the backend derives order vs subscription from the session). Direct card is not representable. |
|
|
100
|
+
| `SessionIntent` | Matching discriminated response. Stripe carries `clientSecret`; PayPal carries a server-derived `providerObjectType` (`'order'`/`'subscription'`). Provider, payment-method category/type/id, intent kind, and provider object ID are kept as separate fields. |
|
|
101
101
|
| `SessionIntentDeclineRequest` | Non-card provider decline classification. Runtime reporting accepts safe classification codes only and rejects messages or identifier-shaped values. |
|
|
102
102
|
| `ElementType` | `'payment'` / `'address'` |
|
|
103
103
|
| `ElementOptions` | Options for creating non-card elements: `appearance?`, `paymentMethodTypes?`, `clientSecret?`, `amount?`, `currency?`, `paymentMethodCreation?`, `layout?`, `defaultValues?`, `readOnly?`, `mode?`. A `payment` element requires a non-empty wallet/APM allowlist. |
|