@01.software/cli 0.17.0 → 0.17.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.js +31 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1891,6 +1891,37 @@ var confirmTossPaymentSessionBodySchema = z5.object({
|
|
|
1891
1891
|
var confirmTossPaymentSessionParamsSchema = confirmTossPaymentSessionBodySchema.extend({
|
|
1892
1892
|
idempotencyKey: commerceIdempotencyKeySchema
|
|
1893
1893
|
});
|
|
1894
|
+
var customPaymentProviderSchema = z5.string().trim().min(1).max(64).regex(/^[a-z0-9][a-z0-9_-]{0,63}$/i, "provider must be a slug");
|
|
1895
|
+
var customPaymentIdentitySchema = z5.string().trim().min(1);
|
|
1896
|
+
var customPaymentCurrencyInputSchema = z5.string().trim().min(1).regex(/^[A-Za-z]{3}$/, "currency must be a three-letter ISO 4217 code").transform((currency) => currency.toUpperCase());
|
|
1897
|
+
var createCustomPaymentSessionBodySchema = z5.object({
|
|
1898
|
+
provider: customPaymentProviderSchema,
|
|
1899
|
+
checkoutToken: commerceCapabilitySchema
|
|
1900
|
+
}).strict();
|
|
1901
|
+
var createCustomPaymentSessionParamsSchema = createCustomPaymentSessionBodySchema.extend({
|
|
1902
|
+
idempotencyKey: commerceIdempotencyKeySchema
|
|
1903
|
+
});
|
|
1904
|
+
var customPaymentSessionSchema = z5.object({
|
|
1905
|
+
id: commerceResourceIdSchema,
|
|
1906
|
+
provider: customPaymentProviderSchema,
|
|
1907
|
+
providerSessionId: customPaymentIdentitySchema,
|
|
1908
|
+
money: moneySchema
|
|
1909
|
+
}).strict();
|
|
1910
|
+
var confirmCustomPaymentSessionBodySchema = z5.object({
|
|
1911
|
+
provider: customPaymentProviderSchema,
|
|
1912
|
+
providerSessionId: customPaymentIdentitySchema,
|
|
1913
|
+
providerPaymentId: customPaymentIdentitySchema,
|
|
1914
|
+
providerEventId: customPaymentIdentitySchema,
|
|
1915
|
+
amount: z5.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
|
|
1916
|
+
currency: customPaymentCurrencyInputSchema,
|
|
1917
|
+
occurredAt: customPaymentIdentitySchema
|
|
1918
|
+
}).strict();
|
|
1919
|
+
var confirmCustomPaymentSessionResponseSchema = z5.object({
|
|
1920
|
+
orderId: commerceResourceIdSchema,
|
|
1921
|
+
transactionId: commerceResourceIdSchema,
|
|
1922
|
+
status: z5.literal("paid"),
|
|
1923
|
+
alreadyConfirmed: z5.boolean().optional()
|
|
1924
|
+
}).strict();
|
|
1894
1925
|
var paymentNextActionSchema = z5.object({
|
|
1895
1926
|
type: z5.literal("toss_widget"),
|
|
1896
1927
|
clientKey: z5.string().min(1).max(255),
|