@fun-xyz/fiat-contract 0.55.0 → 0.56.0-alchemypay.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.
package/dist/index.js
CHANGED
|
@@ -1492,7 +1492,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $funAuthStep
|
|
|
1492
1492
|
var FiatStepResponseSchema = $stepResponse;
|
|
1493
1493
|
|
|
1494
1494
|
// package.json
|
|
1495
|
-
var version = "0.
|
|
1495
|
+
var version = "0.56.0-alchemypay.0";
|
|
1496
1496
|
|
|
1497
1497
|
// src/table.ts
|
|
1498
1498
|
var TABLE_VERSION = version;
|
|
@@ -3950,7 +3950,7 @@ var checkout = obj4({
|
|
|
3950
3950
|
paymentMethod: import_zod4.z.literal("apple_pay")
|
|
3951
3951
|
});
|
|
3952
3952
|
var StripeCheckoutSchema = checkout;
|
|
3953
|
-
var contextFields2 = { checkout };
|
|
3953
|
+
var contextFields2 = { checkout, destinationAsset: DestinationAssetSchema.optional() };
|
|
3954
3954
|
var requestContext = obj4(contextFields2);
|
|
3955
3955
|
var StripeRequestContextSchema = requestContext;
|
|
3956
3956
|
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-
|
|
19
|
+
} from "./chunk-HPIXK4BM.mjs";
|
|
20
20
|
import {
|
|
21
21
|
MOONPAY_ENDPOINTS
|
|
22
22
|
} from "./chunk-TIEGTTFY.mjs";
|
|
@@ -3020,7 +3020,7 @@ var checkout = obj4({
|
|
|
3020
3020
|
paymentMethod: z4.literal("apple_pay")
|
|
3021
3021
|
});
|
|
3022
3022
|
var StripeCheckoutSchema = checkout;
|
|
3023
|
-
var contextFields2 = { checkout };
|
|
3023
|
+
var contextFields2 = { checkout, destinationAsset: DestinationAssetSchema.optional() };
|
|
3024
3024
|
var requestContext = obj4(contextFields2);
|
|
3025
3025
|
var StripeRequestContextSchema = requestContext;
|
|
3026
3026
|
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
package/dist/table.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fun-xyz/fiat-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0-alchemypay.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": {
|