@composable-os/cli 0.1.0-beta.8 → 0.1.0-beta.9
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/accounts-D6N77JGP.js +44 -0
- package/dist/{blocks-DEELKGDC.js → blocks-4CA4PP3P.js} +4 -4
- package/dist/{chunk-X6I2LWB3.js → chunk-2MLAPQU7.js} +1471 -359
- package/dist/{chunk-2S7375SC.js → chunk-3MIEYXRY.js} +3 -301
- package/dist/chunk-56A6RJIU.js +1040 -0
- package/dist/chunk-7CQGMVDO.js +63 -0
- package/dist/{chunk-STJZJIRA.js → chunk-7O4F3NU4.js} +1039 -1380
- package/dist/chunk-7U3OZLTK.js +1370 -0
- package/dist/{chunk-ZRWF6QZS.js → chunk-DU6OIFOU.js} +1 -0
- package/dist/chunk-E4WCYTCT.js +347 -0
- package/dist/{chunk-E5JLTLRM.js → chunk-GYTEW66E.js} +1 -1
- package/dist/chunk-LPD2VR5M.js +284 -0
- package/dist/chunk-NDKVIG23.js +2641 -0
- package/dist/chunk-NSSUOI3Z.js +333 -0
- package/dist/chunk-OV3OFYPI.js +746 -0
- package/dist/{chunk-KTXGEXTY.js → chunk-P6YZMS3F.js} +11 -5
- package/dist/{chunk-G3ORKXVP.js → chunk-RFJOPI42.js} +138 -14
- package/dist/{chunk-KOKYDJ7Z.js → chunk-RXRD34QW.js} +10 -8
- package/dist/{chunk-XDDBLYKW.js → chunk-STBMGUTM.js} +4613 -2307
- package/dist/chunk-VTQNOQGA.js +150 -0
- package/dist/chunk-XSE37HK5.js +426 -0
- package/dist/{chunk-LTQDLCP7.js → chunk-Z52IX5WL.js} +257 -845
- package/dist/chunk-ZSR5H4O7.js +552 -0
- package/dist/{cli-DTMGNDXN.js → cli-7A5XHYML.js} +16 -9
- package/dist/{cli-BRSACHSG.js → cli-T6MJM7TU.js} +20 -8
- package/dist/cli.js +4 -4
- package/dist/{client-repo-ZVZ6KW5S.js → client-repo-PC4ISVEZ.js} +4 -4
- package/dist/create.js +4 -4
- package/dist/{fields-64BQJA62.js → fields-L24XAIOA.js} +13 -11
- package/dist/invoke-TLYT6CFI.js +33 -0
- package/dist/order-IKQBUFCV.js +19 -0
- package/dist/{person-WMWRF2HV.js → person-DXEOOH2A.js} +9 -5
- package/dist/plan-on-sale-LRCK5MJG.js +24 -0
- package/dist/platform/migrations/0510_video_and_file_media.sql +109 -0
- package/dist/platform/migrations/0516_order_tax.sql +63 -0
- package/dist/platform/migrations/0530_subscriptions.sql +173 -0
- package/dist/platform/migrations/0531_subscription_trials.sql +56 -0
- package/dist/platform/migrations/0532_subscription_offers.sql +80 -0
- package/dist/platform/migrations/0533_allowances.sql +262 -0
- package/dist/platform/migrations/0560_recurring.sql +75 -0
- package/dist/platform/sdk/allowance.ts +508 -0
- package/dist/platform/sdk/capacity.ts +89 -0
- package/dist/platform/sdk/contract.ts +97 -1
- package/dist/platform/sdk/document.ts +161 -14
- package/dist/platform/sdk/field-types.ts +5 -0
- package/dist/platform/sdk/index.ts +3 -0
- package/dist/platform/sdk/manifest.ts +206 -5
- package/dist/platform/sdk/media.ts +62 -0
- package/dist/platform/sdk/recurring.ts +314 -0
- package/dist/platform/sdk/rich-text.ts +52 -4
- package/dist/platform/sdk/sellable.ts +120 -0
- package/dist/platform/sdk/states.ts +162 -1
- package/dist/platform/sdk/unique.ts +81 -0
- package/dist/run-BMSZKTN3.js +648 -0
- package/dist/run-GMQBAV6H.js +309 -0
- package/dist/{run-4JNFLYXV.js → run-TNHMG5RI.js} +51 -390
- package/dist/src-7DXXGZG2.js +38 -0
- package/dist/{src-J27WXNLY.js → src-BDG7PERB.js} +73 -1
- package/dist/visibility-XSBZTO66.js +33 -0
- package/package.json +2 -2
- package/dist/chunk-MAXLUQKB.js +0 -1287
- package/dist/invoke-NHHOLLF6.js +0 -26
- package/dist/src-G6OF5SKW.js +0 -31
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ConfigError
|
|
4
|
+
} from "./chunk-7O4F3NU4.js";
|
|
5
|
+
import {
|
|
6
|
+
external_exports
|
|
7
|
+
} from "./chunk-2MLAPQU7.js";
|
|
8
|
+
|
|
9
|
+
// ../core/src/orders/gateway.ts
|
|
10
|
+
var PAYMENTS_VENDOR = "payments";
|
|
11
|
+
var PAYMENTS_RESOURCE_PATTERN = "payments://merchant/:provider";
|
|
12
|
+
var notConnected = () => new ConfigError(
|
|
13
|
+
"Payments are not connected: an admin connects a payment account in Settings \u2192 Integrations"
|
|
14
|
+
);
|
|
15
|
+
async function paymentsTarget(db) {
|
|
16
|
+
const rows = await db.selectFrom("core_integration_connection").select(["id", "resources", "status", "scope"]).where("vendor", "=", PAYMENTS_VENDOR).where("scope", "=", "org").where("status", "=", "active").orderBy("created_at").execute();
|
|
17
|
+
for (const row of rows) {
|
|
18
|
+
let resources = [];
|
|
19
|
+
try {
|
|
20
|
+
const parsed = JSON.parse(row.resources);
|
|
21
|
+
if (Array.isArray(parsed)) resources = parsed;
|
|
22
|
+
} catch {
|
|
23
|
+
}
|
|
24
|
+
for (const bound of resources) {
|
|
25
|
+
if (bound.pattern !== PAYMENTS_RESOURCE_PATTERN || typeof bound.key !== "string") continue;
|
|
26
|
+
const provider = typeof bound.url === "string" ? providerOfUrl(bound.url) : null;
|
|
27
|
+
if (provider) return { connectionId: row.id, resource: bound.key, provider };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
throw notConnected();
|
|
31
|
+
}
|
|
32
|
+
function providerOfUrl(url) {
|
|
33
|
+
const match = /^payments:\/\/merchant\/(stripe|fake)$/.exec(url);
|
|
34
|
+
return match ? match[1] : null;
|
|
35
|
+
}
|
|
36
|
+
function requireHostCalls(integrations) {
|
|
37
|
+
const call = integrations?.callAsHost;
|
|
38
|
+
if (!integrations || !call) {
|
|
39
|
+
throw new ConfigError("Payments need the integration host, which is not reachable here");
|
|
40
|
+
}
|
|
41
|
+
return call.bind(integrations);
|
|
42
|
+
}
|
|
43
|
+
async function openProviderCheckout(integrations, target, request) {
|
|
44
|
+
const call = requireHostCalls(integrations);
|
|
45
|
+
const result = await call({
|
|
46
|
+
connectionId: target.connectionId,
|
|
47
|
+
resource: target.resource,
|
|
48
|
+
method: "createCheckout",
|
|
49
|
+
args: [request],
|
|
50
|
+
purpose: "orders"
|
|
51
|
+
});
|
|
52
|
+
const value = result.value;
|
|
53
|
+
if (!value || typeof value.ref !== "string" || typeof value.url !== "string") {
|
|
54
|
+
throw new ConfigError("The payments gatekeeper did not open a checkout");
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
provider: value.provider === "stripe" ? "stripe" : target.provider,
|
|
58
|
+
ref: value.ref,
|
|
59
|
+
url: value.url,
|
|
60
|
+
expiresAt: typeof value.expiresAt === "string" ? value.expiresAt : null
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
async function requestProviderRefund(integrations, target, caller, request) {
|
|
64
|
+
if (!integrations) {
|
|
65
|
+
throw new ConfigError("Payments need the integration host, which is not reachable here");
|
|
66
|
+
}
|
|
67
|
+
return integrations.call({
|
|
68
|
+
connectionId: target.connectionId,
|
|
69
|
+
resource: target.resource,
|
|
70
|
+
method: "refund",
|
|
71
|
+
args: [request],
|
|
72
|
+
caller
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
async function callSubscriptionGatekeeper(integrations, target, method, request) {
|
|
76
|
+
const call = requireHostCalls(integrations);
|
|
77
|
+
return call({
|
|
78
|
+
connectionId: target.connectionId,
|
|
79
|
+
resource: target.resource,
|
|
80
|
+
method,
|
|
81
|
+
args: [request],
|
|
82
|
+
purpose: "orders"
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ../core/src/orders/settings.ts
|
|
87
|
+
var ORDER_CURRENCY_SETTING = "order_currency";
|
|
88
|
+
var ORDER_EXPIRY_SETTING = "order_expiry_minutes";
|
|
89
|
+
var ORDER_MIN_PART_SETTING = "order_min_part_payment";
|
|
90
|
+
var currencySchema = external_exports.string().trim().transform((value) => value.toUpperCase()).pipe(external_exports.string().regex(/^[A-Z]{3}$/, "A currency is three letters, such as AUD")).refine(isKnownCurrency, "Not a currency this platform knows");
|
|
91
|
+
var DEFAULT_ORDER_EXPIRY_MINUTES = 15;
|
|
92
|
+
var orderExpiryMinutesSchema = external_exports.number().int().min(5).max(1440);
|
|
93
|
+
var DEFAULT_MIN_PART_PAYMENT = 1e3;
|
|
94
|
+
var minPartPaymentSchema = external_exports.number().int().min(1).max(1e8);
|
|
95
|
+
function isKnownCurrency(code) {
|
|
96
|
+
return Intl.supportedValuesOf("currency").includes(code);
|
|
97
|
+
}
|
|
98
|
+
function currencyDecimals(currency) {
|
|
99
|
+
return new Intl.NumberFormat("en", { style: "currency", currency }).resolvedOptions().maximumFractionDigits ?? 2;
|
|
100
|
+
}
|
|
101
|
+
function toMinorUnits(price, currency) {
|
|
102
|
+
if (typeof price !== "number" || !Number.isFinite(price) || price < 0) return null;
|
|
103
|
+
const scaled = price * 10 ** currencyDecimals(currency);
|
|
104
|
+
const minor = Math.round(scaled);
|
|
105
|
+
return Math.abs(scaled - minor) < 1e-6 && Number.isSafeInteger(minor) ? minor : null;
|
|
106
|
+
}
|
|
107
|
+
async function loadSetting(db, key, schema) {
|
|
108
|
+
return load(db, key, schema);
|
|
109
|
+
}
|
|
110
|
+
async function load(db, key, schema) {
|
|
111
|
+
const row = await db.selectFrom("core_settings").select("value").where("key", "=", key).executeTakeFirst();
|
|
112
|
+
if (!row) return null;
|
|
113
|
+
try {
|
|
114
|
+
const parsed = schema.safeParse(JSON.parse(row.value));
|
|
115
|
+
return parsed.success ? parsed.data : null;
|
|
116
|
+
} catch {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function loadOrderCurrency(db) {
|
|
121
|
+
return load(db, ORDER_CURRENCY_SETTING, currencySchema);
|
|
122
|
+
}
|
|
123
|
+
async function loadOrderExpiryMinutes(db) {
|
|
124
|
+
return await load(db, ORDER_EXPIRY_SETTING, orderExpiryMinutesSchema) ?? DEFAULT_ORDER_EXPIRY_MINUTES;
|
|
125
|
+
}
|
|
126
|
+
async function loadMinPartPayment(db) {
|
|
127
|
+
return await load(db, ORDER_MIN_PART_SETTING, minPartPaymentSchema) ?? DEFAULT_MIN_PART_PAYMENT;
|
|
128
|
+
}
|
|
129
|
+
var ORDER_TAX_SETTING = "order_tax";
|
|
130
|
+
var ORDER_TAX_CODES_SETTING = "order_tax_codes";
|
|
131
|
+
var taxCodeSchema = external_exports.string().trim().regex(/^txcd_\d{8}$/, "A product tax code is txcd_ and eight digits, from Stripe's list");
|
|
132
|
+
var taxCodesSchema = external_exports.record(external_exports.string().min(1).max(80), taxCodeSchema);
|
|
133
|
+
async function loadOrderTax(db) {
|
|
134
|
+
return await load(db, ORDER_TAX_SETTING, external_exports.boolean()) ?? false;
|
|
135
|
+
}
|
|
136
|
+
async function loadOrderTaxCodes(db) {
|
|
137
|
+
return await load(db, ORDER_TAX_CODES_SETTING, taxCodesSchema) ?? {};
|
|
138
|
+
}
|
|
139
|
+
var ORDER_RETURN_ORIGINS_SETTING = "order_return_origins";
|
|
140
|
+
var ORDER_RETURN_ORIGINS_MAX = 20;
|
|
141
|
+
var returnOriginSchema = external_exports.string().trim().max(200).transform((value, ctx) => {
|
|
142
|
+
const origin = originOf(value);
|
|
143
|
+
if (!origin || origin !== value.replace(/\/+$/, "")) {
|
|
144
|
+
ctx.addIssue({
|
|
145
|
+
code: "custom",
|
|
146
|
+
message: "An origin is https://host (or http://localhost:port), with no path"
|
|
147
|
+
});
|
|
148
|
+
return external_exports.NEVER;
|
|
149
|
+
}
|
|
150
|
+
return origin;
|
|
151
|
+
});
|
|
152
|
+
var returnOriginsSchema = external_exports.array(returnOriginSchema).max(ORDER_RETURN_ORIGINS_MAX);
|
|
153
|
+
var LOCAL_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
154
|
+
function originOf(url) {
|
|
155
|
+
let parsed;
|
|
156
|
+
try {
|
|
157
|
+
parsed = new URL(url);
|
|
158
|
+
} catch {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
if (parsed.username || parsed.password) return null;
|
|
162
|
+
if (parsed.protocol === "https:") return parsed.origin;
|
|
163
|
+
if (parsed.protocol === "http:" && LOCAL_HOSTS.has(parsed.hostname)) return parsed.origin;
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
async function loadReturnOrigins(db) {
|
|
167
|
+
return await load(db, ORDER_RETURN_ORIGINS_SETTING, returnOriginsSchema) ?? [];
|
|
168
|
+
}
|
|
169
|
+
function isAllowedReturnUrl(url, origins) {
|
|
170
|
+
const origin = originOf(url);
|
|
171
|
+
return origin !== null && url.length <= 2e3 && origins.includes(origin);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// ../core/src/time/local.ts
|
|
175
|
+
function zoneOffset(at, timeZone) {
|
|
176
|
+
const parts = new Intl.DateTimeFormat("en-US", {
|
|
177
|
+
timeZone,
|
|
178
|
+
hourCycle: "h23",
|
|
179
|
+
year: "numeric",
|
|
180
|
+
month: "2-digit",
|
|
181
|
+
day: "2-digit",
|
|
182
|
+
hour: "2-digit",
|
|
183
|
+
minute: "2-digit",
|
|
184
|
+
second: "2-digit"
|
|
185
|
+
}).formatToParts(new Date(at));
|
|
186
|
+
const n = (type) => Number(parts.find((p) => p.type === type)?.value);
|
|
187
|
+
return Date.UTC(n("year"), n("month") - 1, n("day"), n("hour"), n("minute"), n("second")) - at;
|
|
188
|
+
}
|
|
189
|
+
function realWallClock(y, m, d, h = 0, mi = 0, s = 0) {
|
|
190
|
+
const at = new Date(Date.UTC(y, m - 1, d, h, mi, s));
|
|
191
|
+
return at.getUTCFullYear() === y && at.getUTCMonth() === m - 1 && at.getUTCDate() === d && at.getUTCHours() === h && at.getUTCMinutes() === mi && at.getUTCSeconds() === s;
|
|
192
|
+
}
|
|
193
|
+
var offsetFormatters = /* @__PURE__ */ new Map();
|
|
194
|
+
function offsetFormatter(timeZone) {
|
|
195
|
+
let f = offsetFormatters.get(timeZone);
|
|
196
|
+
if (!f) {
|
|
197
|
+
f = new Intl.DateTimeFormat("en-US", {
|
|
198
|
+
timeZone,
|
|
199
|
+
hourCycle: "h23",
|
|
200
|
+
year: "numeric",
|
|
201
|
+
month: "2-digit",
|
|
202
|
+
day: "2-digit",
|
|
203
|
+
hour: "2-digit",
|
|
204
|
+
minute: "2-digit",
|
|
205
|
+
second: "2-digit",
|
|
206
|
+
weekday: "short"
|
|
207
|
+
});
|
|
208
|
+
offsetFormatters.set(timeZone, f);
|
|
209
|
+
}
|
|
210
|
+
return f;
|
|
211
|
+
}
|
|
212
|
+
var WEEKDAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
213
|
+
var pad = (n) => String(n).padStart(2, "0");
|
|
214
|
+
function localParts(at, timeZone) {
|
|
215
|
+
const ms = typeof at === "number" ? at : new Date(at).getTime();
|
|
216
|
+
const parts = Object.fromEntries(
|
|
217
|
+
offsetFormatter(timeZone).formatToParts(new Date(ms)).map((p) => [p.type, p.value])
|
|
218
|
+
);
|
|
219
|
+
const year = Number(parts.year);
|
|
220
|
+
const month = Number(parts.month);
|
|
221
|
+
const day = Number(parts.day);
|
|
222
|
+
const hour = Number(parts.hour) % 24;
|
|
223
|
+
const minute = Number(parts.minute);
|
|
224
|
+
const second = Number(parts.second);
|
|
225
|
+
return {
|
|
226
|
+
year,
|
|
227
|
+
month,
|
|
228
|
+
day,
|
|
229
|
+
hour,
|
|
230
|
+
minute,
|
|
231
|
+
second,
|
|
232
|
+
weekday: WEEKDAYS.indexOf(String(parts.weekday)) + 1,
|
|
233
|
+
date: `${year}-${pad(month)}-${pad(day)}`,
|
|
234
|
+
minuteOfDay: hour * 60 + minute
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
var HOUR = 36e5;
|
|
238
|
+
function wallClockToInstant(wall, timeZone) {
|
|
239
|
+
const asUtc = Date.UTC(
|
|
240
|
+
wall.year,
|
|
241
|
+
wall.month - 1,
|
|
242
|
+
wall.day,
|
|
243
|
+
wall.hour ?? 0,
|
|
244
|
+
wall.minute ?? 0,
|
|
245
|
+
wall.second ?? 0
|
|
246
|
+
);
|
|
247
|
+
const before = zoneOffset(asUtc - 14 * HOUR, timeZone);
|
|
248
|
+
const after = zoneOffset(asUtc + 14 * HOUR, timeZone);
|
|
249
|
+
const reads = (at) => {
|
|
250
|
+
const p = localParts(at, timeZone);
|
|
251
|
+
return Date.UTC(p.year, p.month - 1, p.day, p.hour, p.minute, p.second) === asUtc - (asUtc % 1e3 + 1e3) % 1e3;
|
|
252
|
+
};
|
|
253
|
+
const candidates = [asUtc - before, asUtc - after].filter(reads).sort((a, b) => a - b);
|
|
254
|
+
return candidates[0] ?? asUtc - before;
|
|
255
|
+
}
|
|
256
|
+
function wallClockToIso(wall, timeZone) {
|
|
257
|
+
return new Date(wallClockToInstant(wall, timeZone)).toISOString();
|
|
258
|
+
}
|
|
259
|
+
function addLocalDays(date, days) {
|
|
260
|
+
const at = new Date(Date.UTC(date.year, date.month - 1, date.day + days));
|
|
261
|
+
return { year: at.getUTCFullYear(), month: at.getUTCMonth() + 1, day: at.getUTCDate() };
|
|
262
|
+
}
|
|
263
|
+
function parseLocalDate(date) {
|
|
264
|
+
const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(date);
|
|
265
|
+
if (!match) return null;
|
|
266
|
+
const [year, month, day] = [Number(match[1]), Number(match[2]), Number(match[3])];
|
|
267
|
+
return realWallClock(year, month, day) ? { year, month, day } : null;
|
|
268
|
+
}
|
|
269
|
+
function requireDate(date) {
|
|
270
|
+
const parts = parseLocalDate(date);
|
|
271
|
+
if (!parts) throw new RangeError(`Not a date: ${date}`);
|
|
272
|
+
return parts;
|
|
273
|
+
}
|
|
274
|
+
function parseLocalTime(time) {
|
|
275
|
+
const match = /^(\d{2}):(\d{2})$/.exec(time.trim());
|
|
276
|
+
if (!match) return null;
|
|
277
|
+
const [h, mi] = [Number(match[1]), Number(match[2])];
|
|
278
|
+
return h < 24 && mi < 60 ? h * 60 + mi : null;
|
|
279
|
+
}
|
|
280
|
+
function wallClockOf(date, minutes) {
|
|
281
|
+
return { ...requireDate(date), hour: Math.floor(minutes / 60), minute: minutes % 60 };
|
|
282
|
+
}
|
|
283
|
+
function isoWeekday(date) {
|
|
284
|
+
const d = requireDate(date);
|
|
285
|
+
const day = new Date(Date.UTC(d.year, d.month - 1, d.day)).getUTCDay();
|
|
286
|
+
return day === 0 ? 7 : day;
|
|
287
|
+
}
|
|
288
|
+
function localDaysBefore(at, days, timeZone) {
|
|
289
|
+
const p = localParts(at, timeZone);
|
|
290
|
+
const date = addLocalDays(p, -days);
|
|
291
|
+
const ms = (at % 1e3 + 1e3) % 1e3;
|
|
292
|
+
const wall = { ...date, hour: p.hour, minute: p.minute, second: p.second };
|
|
293
|
+
return wallClockToInstant(wall, timeZone) + ms;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export {
|
|
297
|
+
paymentsTarget,
|
|
298
|
+
openProviderCheckout,
|
|
299
|
+
requestProviderRefund,
|
|
300
|
+
callSubscriptionGatekeeper,
|
|
301
|
+
zoneOffset,
|
|
302
|
+
realWallClock,
|
|
303
|
+
localParts,
|
|
304
|
+
wallClockToInstant,
|
|
305
|
+
wallClockToIso,
|
|
306
|
+
addLocalDays,
|
|
307
|
+
parseLocalDate,
|
|
308
|
+
parseLocalTime,
|
|
309
|
+
wallClockOf,
|
|
310
|
+
isoWeekday,
|
|
311
|
+
localDaysBefore,
|
|
312
|
+
ORDER_CURRENCY_SETTING,
|
|
313
|
+
ORDER_EXPIRY_SETTING,
|
|
314
|
+
ORDER_MIN_PART_SETTING,
|
|
315
|
+
currencySchema,
|
|
316
|
+
orderExpiryMinutesSchema,
|
|
317
|
+
minPartPaymentSchema,
|
|
318
|
+
currencyDecimals,
|
|
319
|
+
toMinorUnits,
|
|
320
|
+
loadSetting,
|
|
321
|
+
loadOrderCurrency,
|
|
322
|
+
loadOrderExpiryMinutes,
|
|
323
|
+
loadMinPartPayment,
|
|
324
|
+
ORDER_TAX_SETTING,
|
|
325
|
+
ORDER_TAX_CODES_SETTING,
|
|
326
|
+
taxCodesSchema,
|
|
327
|
+
loadOrderTax,
|
|
328
|
+
loadOrderTaxCodes,
|
|
329
|
+
ORDER_RETURN_ORIGINS_SETTING,
|
|
330
|
+
returnOriginsSchema,
|
|
331
|
+
loadReturnOrigins,
|
|
332
|
+
isAllowedReturnUrl
|
|
333
|
+
};
|