@fun-xyz/fiat-contract 0.54.0 → 0.56.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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.54.0";
2
+ var version = "0.56.0";
3
3
 
4
4
  // src/table.ts
5
5
  var TABLE_VERSION = version;
package/dist/index.js CHANGED
@@ -1491,7 +1491,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $funAuthStep
1491
1491
  var FiatStepResponseSchema = $stepResponse;
1492
1492
 
1493
1493
  // package.json
1494
- var version = "0.54.0";
1494
+ var version = "0.56.0";
1495
1495
 
1496
1496
  // src/table.ts
1497
1497
  var TABLE_VERSION = version;
@@ -3949,7 +3949,7 @@ var checkout = obj4({
3949
3949
  paymentMethod: import_zod4.z.literal("apple_pay")
3950
3950
  });
3951
3951
  var StripeCheckoutSchema = checkout;
3952
- var contextFields2 = { checkout };
3952
+ var contextFields2 = { checkout, destinationAsset: DestinationAssetSchema.optional() };
3953
3953
  var requestContext = obj4(contextFields2);
3954
3954
  var StripeRequestContextSchema = requestContext;
3955
3955
  var mintedOrderId = import_zod4.z.string().regex(/^sto_[A-Za-z0-9_-]{22}$/, "must be an order id a placeOrder answer minted");
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  tableEntry,
17
17
  unofferedEndpoints,
18
18
  unreachableStates
19
- } from "./chunk-J5NHRKOG.mjs";
19
+ } from "./chunk-T45SRB5E.mjs";
20
20
  import {
21
21
  MOONPAY_ENDPOINTS
22
22
  } from "./chunk-TIEGTTFY.mjs";
@@ -3019,7 +3019,7 @@ var checkout = obj4({
3019
3019
  paymentMethod: z4.literal("apple_pay")
3020
3020
  });
3021
3021
  var StripeCheckoutSchema = checkout;
3022
- var contextFields2 = { checkout };
3022
+ var contextFields2 = { checkout, destinationAsset: DestinationAssetSchema.optional() };
3023
3023
  var requestContext = obj4(contextFields2);
3024
3024
  var StripeRequestContextSchema = requestContext;
3025
3025
  var mintedOrderId = z4.string().regex(/^sto_[A-Za-z0-9_-]{22}$/, "must be an order id a placeOrder answer minted");
@@ -14,7 +14,7 @@
14
14
  */
15
15
  import type { CountryCode } from '../codes';
16
16
  import type { FiatTermsRequest, TermsDocument } from '../terms';
17
- import type { FeeLine, FiatAmount, FiatGeo, FiatStepResponse, FormField, KycFieldId, OrderPoll } from '../types';
17
+ import type { DestinationAsset, FeeLine, FiatAmount, FiatGeo, FiatStepResponse, FormField, KycFieldId, OrderPoll } from '../types';
18
18
  export declare const STRIPE_ENDPOINTS: {
19
19
  readonly next: "POST /fiat/next";
20
20
  };
@@ -35,8 +35,13 @@ export interface StripeCheckout {
35
35
  };
36
36
  paymentMethod: 'apple_pay';
37
37
  }
38
+ /**
39
+ * On every request. `destinationAsset` is the asset the user receives at the end, as on every `FiatNextRequest`;
40
+ * `checkout.destination` stays the asset Stripe delivers.
41
+ */
38
42
  export type StripeRequestContext = {
39
43
  checkout: StripeCheckout;
44
+ destinationAsset?: DestinationAsset;
40
45
  };
41
46
  /**
42
47
  * The last id a `placeOrder` answer minted, on every step request once the client holds one: a step-up after
package/dist/table.js CHANGED
@@ -37,7 +37,7 @@ __export(table_exports, {
37
37
  module.exports = __toCommonJS(table_exports);
38
38
 
39
39
  // package.json
40
- var version = "0.54.0";
40
+ var version = "0.56.0";
41
41
 
42
42
  // src/table.ts
43
43
  var TABLE_VERSION = version;
package/dist/table.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  tableEntry,
13
13
  unofferedEndpoints,
14
14
  unreachableStates
15
- } from "./chunk-J5NHRKOG.mjs";
15
+ } from "./chunk-T45SRB5E.mjs";
16
16
  export {
17
17
  DOCUMENTED_ENDPOINTS,
18
18
  FUN_AUTH_ERROR_CODES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "description": "Published conformance contract for Fun's headless fiat onramp: FlowState/Transition types, zod schemas, the transition table as data, recorded fixtures, assertion helpers.",
5
5
  "license": "MIT",
6
6
  "repository": {