@alien_org/contract 0.2.0 → 0.2.1

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/index.d.cts CHANGED
@@ -269,8 +269,9 @@ interface Methods {
269
269
  * Optional display fields (`title`, `caption`, `iconUrl`, `quantity`)
270
270
  * are shown on the payment approval screen.
271
271
  *
272
- * Set `test: true` for test mode - no real payment is made, but webhooks
273
- * are fired with `test: true` flag. Use for development and testing.
272
+ * Set `test` to a scenario string (e.g. `'paid'`, `'error:insufficient_balance'`)
273
+ * for test mode - no real payment is made, but the specified scenario is
274
+ * simulated. Use for development and testing.
274
275
  *
275
276
  * @since 0.1.1
276
277
  * @schema
@@ -336,7 +337,7 @@ interface Methods {
336
337
  *
337
338
  * | Scenario | Client | Webhook |
338
339
  * |----------|--------|---------|
339
- * | `true` / `'paid'` | `paid` | `finalized` |
340
+ * | `'paid'` | `paid` | `finalized` |
340
341
  * | `'paid:failed'` | `paid` | `failed` |
341
342
  * | `'cancelled'` | `cancelled` | none |
342
343
  * | `'error:*'` | `failed` | none |
@@ -362,7 +363,7 @@ interface Methods {
362
363
  * @since 0.1.1
363
364
  * @schema
364
365
  */
365
- test?: boolean | PaymentTestScenario;
366
+ test?: PaymentTestScenario;
366
367
  }>>;
367
368
  /**
368
369
  * Write text to the system clipboard.
package/dist/index.d.mts CHANGED
@@ -269,8 +269,9 @@ interface Methods {
269
269
  * Optional display fields (`title`, `caption`, `iconUrl`, `quantity`)
270
270
  * are shown on the payment approval screen.
271
271
  *
272
- * Set `test: true` for test mode - no real payment is made, but webhooks
273
- * are fired with `test: true` flag. Use for development and testing.
272
+ * Set `test` to a scenario string (e.g. `'paid'`, `'error:insufficient_balance'`)
273
+ * for test mode - no real payment is made, but the specified scenario is
274
+ * simulated. Use for development and testing.
274
275
  *
275
276
  * @since 0.1.1
276
277
  * @schema
@@ -336,7 +337,7 @@ interface Methods {
336
337
  *
337
338
  * | Scenario | Client | Webhook |
338
339
  * |----------|--------|---------|
339
- * | `true` / `'paid'` | `paid` | `finalized` |
340
+ * | `'paid'` | `paid` | `finalized` |
340
341
  * | `'paid:failed'` | `paid` | `failed` |
341
342
  * | `'cancelled'` | `cancelled` | none |
342
343
  * | `'error:*'` | `failed` | none |
@@ -362,7 +363,7 @@ interface Methods {
362
363
  * @since 0.1.1
363
364
  * @schema
364
365
  */
365
- test?: boolean | PaymentTestScenario;
366
+ test?: PaymentTestScenario;
366
367
  }>>;
367
368
  /**
368
369
  * Write text to the system clipboard.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alien_org/contract",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",