@deliverart/sdk-js-payment 2.4.8 → 2.4.10

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.cjs CHANGED
@@ -11449,7 +11449,9 @@ var writablePaymentConfigSchemas = {
11449
11449
  credit_card: writablePaymentConfigCreditCardSchema
11450
11450
  };
11451
11451
  var paymentInfoBaseSchema = external_exports.object({
11452
+ id: external_exports.string(),
11452
11453
  method: paymentMethodSchema,
11454
+ status: paymentStatusSchema,
11453
11455
  amount: external_exports.string()
11454
11456
  });
11455
11457
  var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
package/dist/index.d.cts CHANGED
@@ -339,6 +339,15 @@ declare const writablePaymentConfigSchemas: {
339
339
  }, z.core.$strip>;
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
+ id: z.ZodString;
343
+ status: z.ZodEnum<{
344
+ pending: "pending";
345
+ pending_verification: "pending_verification";
346
+ paid: "paid";
347
+ canceled: "canceled";
348
+ refunded: "refunded";
349
+ failed: "failed";
350
+ }>;
342
351
  amount: z.ZodString;
343
352
  method: z.ZodLiteral<"stripe">;
344
353
  sessionUrl: z.ZodString;
@@ -346,6 +355,15 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
346
355
  }, z.core.$strip>;
347
356
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
348
357
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
+ id: z.ZodString;
359
+ status: z.ZodEnum<{
360
+ pending: "pending";
361
+ pending_verification: "pending_verification";
362
+ paid: "paid";
363
+ canceled: "canceled";
364
+ refunded: "refunded";
365
+ failed: "failed";
366
+ }>;
349
367
  amount: z.ZodString;
350
368
  method: z.ZodLiteral<"bank_transfer">;
351
369
  iban: z.ZodString;
@@ -358,21 +376,57 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
376
  }, z.core.$strip>;
359
377
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
360
378
  declare const paymentInfoCashSchema: z.ZodObject<{
379
+ id: z.ZodString;
380
+ status: z.ZodEnum<{
381
+ pending: "pending";
382
+ pending_verification: "pending_verification";
383
+ paid: "paid";
384
+ canceled: "canceled";
385
+ refunded: "refunded";
386
+ failed: "failed";
387
+ }>;
361
388
  amount: z.ZodString;
362
389
  method: z.ZodLiteral<"cash">;
363
390
  }, z.core.$strip>;
364
391
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
365
392
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
393
+ id: z.ZodString;
394
+ status: z.ZodEnum<{
395
+ pending: "pending";
396
+ pending_verification: "pending_verification";
397
+ paid: "paid";
398
+ canceled: "canceled";
399
+ refunded: "refunded";
400
+ failed: "failed";
401
+ }>;
366
402
  amount: z.ZodString;
367
403
  method: z.ZodLiteral<"credit_card">;
368
404
  }, z.core.$strip>;
369
405
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
370
406
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
+ id: z.ZodString;
408
+ status: z.ZodEnum<{
409
+ pending: "pending";
410
+ pending_verification: "pending_verification";
411
+ paid: "paid";
412
+ canceled: "canceled";
413
+ refunded: "refunded";
414
+ failed: "failed";
415
+ }>;
371
416
  amount: z.ZodString;
372
417
  method: z.ZodLiteral<"stripe">;
373
418
  sessionUrl: z.ZodString;
374
419
  expiresAt: z.ZodString;
375
420
  }, z.core.$strip>, z.ZodObject<{
421
+ id: z.ZodString;
422
+ status: z.ZodEnum<{
423
+ pending: "pending";
424
+ pending_verification: "pending_verification";
425
+ paid: "paid";
426
+ canceled: "canceled";
427
+ refunded: "refunded";
428
+ failed: "failed";
429
+ }>;
376
430
  amount: z.ZodString;
377
431
  method: z.ZodLiteral<"bank_transfer">;
378
432
  iban: z.ZodString;
@@ -383,9 +437,27 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
437
  currency: z.ZodString;
384
438
  description: z.ZodString;
385
439
  }, z.core.$strip>, z.ZodObject<{
440
+ id: z.ZodString;
441
+ status: z.ZodEnum<{
442
+ pending: "pending";
443
+ pending_verification: "pending_verification";
444
+ paid: "paid";
445
+ canceled: "canceled";
446
+ refunded: "refunded";
447
+ failed: "failed";
448
+ }>;
386
449
  amount: z.ZodString;
387
450
  method: z.ZodLiteral<"cash">;
388
451
  }, z.core.$strip>, z.ZodObject<{
452
+ id: z.ZodString;
453
+ status: z.ZodEnum<{
454
+ pending: "pending";
455
+ pending_verification: "pending_verification";
456
+ paid: "paid";
457
+ canceled: "canceled";
458
+ refunded: "refunded";
459
+ failed: "failed";
460
+ }>;
389
461
  amount: z.ZodString;
390
462
  method: z.ZodLiteral<"credit_card">;
391
463
  }, z.core.$strip>]>;
@@ -1809,11 +1881,29 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
1809
1881
  declare const getPaymentInfoInputSchema: z.ZodUndefined;
1810
1882
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1811
1883
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1884
+ id: z.ZodString;
1885
+ status: z.ZodEnum<{
1886
+ pending: "pending";
1887
+ pending_verification: "pending_verification";
1888
+ paid: "paid";
1889
+ canceled: "canceled";
1890
+ refunded: "refunded";
1891
+ failed: "failed";
1892
+ }>;
1812
1893
  amount: z.ZodString;
1813
1894
  method: z.ZodLiteral<"stripe">;
1814
1895
  sessionUrl: z.ZodString;
1815
1896
  expiresAt: z.ZodString;
1816
1897
  }, z.core.$strip>, z.ZodObject<{
1898
+ id: z.ZodString;
1899
+ status: z.ZodEnum<{
1900
+ pending: "pending";
1901
+ pending_verification: "pending_verification";
1902
+ paid: "paid";
1903
+ canceled: "canceled";
1904
+ refunded: "refunded";
1905
+ failed: "failed";
1906
+ }>;
1817
1907
  amount: z.ZodString;
1818
1908
  method: z.ZodLiteral<"bank_transfer">;
1819
1909
  iban: z.ZodString;
@@ -1824,9 +1914,27 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1824
1914
  currency: z.ZodString;
1825
1915
  description: z.ZodString;
1826
1916
  }, z.core.$strip>, z.ZodObject<{
1917
+ id: z.ZodString;
1918
+ status: z.ZodEnum<{
1919
+ pending: "pending";
1920
+ pending_verification: "pending_verification";
1921
+ paid: "paid";
1922
+ canceled: "canceled";
1923
+ refunded: "refunded";
1924
+ failed: "failed";
1925
+ }>;
1827
1926
  amount: z.ZodString;
1828
1927
  method: z.ZodLiteral<"cash">;
1829
1928
  }, z.core.$strip>, z.ZodObject<{
1929
+ id: z.ZodString;
1930
+ status: z.ZodEnum<{
1931
+ pending: "pending";
1932
+ pending_verification: "pending_verification";
1933
+ paid: "paid";
1934
+ canceled: "canceled";
1935
+ refunded: "refunded";
1936
+ failed: "failed";
1937
+ }>;
1830
1938
  amount: z.ZodString;
1831
1939
  method: z.ZodLiteral<"credit_card">;
1832
1940
  }, z.core.$strip>]>;
@@ -1837,11 +1945,29 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1837
1945
  readonly accept = "application/json";
1838
1946
  readonly inputSchema: z.ZodUndefined;
1839
1947
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1948
+ id: z.ZodString;
1949
+ status: z.ZodEnum<{
1950
+ pending: "pending";
1951
+ pending_verification: "pending_verification";
1952
+ paid: "paid";
1953
+ canceled: "canceled";
1954
+ refunded: "refunded";
1955
+ failed: "failed";
1956
+ }>;
1840
1957
  amount: z.ZodString;
1841
1958
  method: z.ZodLiteral<"stripe">;
1842
1959
  sessionUrl: z.ZodString;
1843
1960
  expiresAt: z.ZodString;
1844
1961
  }, z.core.$strip>, z.ZodObject<{
1962
+ id: z.ZodString;
1963
+ status: z.ZodEnum<{
1964
+ pending: "pending";
1965
+ pending_verification: "pending_verification";
1966
+ paid: "paid";
1967
+ canceled: "canceled";
1968
+ refunded: "refunded";
1969
+ failed: "failed";
1970
+ }>;
1845
1971
  amount: z.ZodString;
1846
1972
  method: z.ZodLiteral<"bank_transfer">;
1847
1973
  iban: z.ZodString;
@@ -1852,9 +1978,27 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1852
1978
  currency: z.ZodString;
1853
1979
  description: z.ZodString;
1854
1980
  }, z.core.$strip>, z.ZodObject<{
1981
+ id: z.ZodString;
1982
+ status: z.ZodEnum<{
1983
+ pending: "pending";
1984
+ pending_verification: "pending_verification";
1985
+ paid: "paid";
1986
+ canceled: "canceled";
1987
+ refunded: "refunded";
1988
+ failed: "failed";
1989
+ }>;
1855
1990
  amount: z.ZodString;
1856
1991
  method: z.ZodLiteral<"cash">;
1857
1992
  }, z.core.$strip>, z.ZodObject<{
1993
+ id: z.ZodString;
1994
+ status: z.ZodEnum<{
1995
+ pending: "pending";
1996
+ pending_verification: "pending_verification";
1997
+ paid: "paid";
1998
+ canceled: "canceled";
1999
+ refunded: "refunded";
2000
+ failed: "failed";
2001
+ }>;
1858
2002
  amount: z.ZodString;
1859
2003
  method: z.ZodLiteral<"credit_card">;
1860
2004
  }, z.core.$strip>]>;
package/dist/index.d.ts CHANGED
@@ -339,6 +339,15 @@ declare const writablePaymentConfigSchemas: {
339
339
  }, z.core.$strip>;
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
+ id: z.ZodString;
343
+ status: z.ZodEnum<{
344
+ pending: "pending";
345
+ pending_verification: "pending_verification";
346
+ paid: "paid";
347
+ canceled: "canceled";
348
+ refunded: "refunded";
349
+ failed: "failed";
350
+ }>;
342
351
  amount: z.ZodString;
343
352
  method: z.ZodLiteral<"stripe">;
344
353
  sessionUrl: z.ZodString;
@@ -346,6 +355,15 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
346
355
  }, z.core.$strip>;
347
356
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
348
357
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
+ id: z.ZodString;
359
+ status: z.ZodEnum<{
360
+ pending: "pending";
361
+ pending_verification: "pending_verification";
362
+ paid: "paid";
363
+ canceled: "canceled";
364
+ refunded: "refunded";
365
+ failed: "failed";
366
+ }>;
349
367
  amount: z.ZodString;
350
368
  method: z.ZodLiteral<"bank_transfer">;
351
369
  iban: z.ZodString;
@@ -358,21 +376,57 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
376
  }, z.core.$strip>;
359
377
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
360
378
  declare const paymentInfoCashSchema: z.ZodObject<{
379
+ id: z.ZodString;
380
+ status: z.ZodEnum<{
381
+ pending: "pending";
382
+ pending_verification: "pending_verification";
383
+ paid: "paid";
384
+ canceled: "canceled";
385
+ refunded: "refunded";
386
+ failed: "failed";
387
+ }>;
361
388
  amount: z.ZodString;
362
389
  method: z.ZodLiteral<"cash">;
363
390
  }, z.core.$strip>;
364
391
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
365
392
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
393
+ id: z.ZodString;
394
+ status: z.ZodEnum<{
395
+ pending: "pending";
396
+ pending_verification: "pending_verification";
397
+ paid: "paid";
398
+ canceled: "canceled";
399
+ refunded: "refunded";
400
+ failed: "failed";
401
+ }>;
366
402
  amount: z.ZodString;
367
403
  method: z.ZodLiteral<"credit_card">;
368
404
  }, z.core.$strip>;
369
405
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
370
406
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
+ id: z.ZodString;
408
+ status: z.ZodEnum<{
409
+ pending: "pending";
410
+ pending_verification: "pending_verification";
411
+ paid: "paid";
412
+ canceled: "canceled";
413
+ refunded: "refunded";
414
+ failed: "failed";
415
+ }>;
371
416
  amount: z.ZodString;
372
417
  method: z.ZodLiteral<"stripe">;
373
418
  sessionUrl: z.ZodString;
374
419
  expiresAt: z.ZodString;
375
420
  }, z.core.$strip>, z.ZodObject<{
421
+ id: z.ZodString;
422
+ status: z.ZodEnum<{
423
+ pending: "pending";
424
+ pending_verification: "pending_verification";
425
+ paid: "paid";
426
+ canceled: "canceled";
427
+ refunded: "refunded";
428
+ failed: "failed";
429
+ }>;
376
430
  amount: z.ZodString;
377
431
  method: z.ZodLiteral<"bank_transfer">;
378
432
  iban: z.ZodString;
@@ -383,9 +437,27 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
437
  currency: z.ZodString;
384
438
  description: z.ZodString;
385
439
  }, z.core.$strip>, z.ZodObject<{
440
+ id: z.ZodString;
441
+ status: z.ZodEnum<{
442
+ pending: "pending";
443
+ pending_verification: "pending_verification";
444
+ paid: "paid";
445
+ canceled: "canceled";
446
+ refunded: "refunded";
447
+ failed: "failed";
448
+ }>;
386
449
  amount: z.ZodString;
387
450
  method: z.ZodLiteral<"cash">;
388
451
  }, z.core.$strip>, z.ZodObject<{
452
+ id: z.ZodString;
453
+ status: z.ZodEnum<{
454
+ pending: "pending";
455
+ pending_verification: "pending_verification";
456
+ paid: "paid";
457
+ canceled: "canceled";
458
+ refunded: "refunded";
459
+ failed: "failed";
460
+ }>;
389
461
  amount: z.ZodString;
390
462
  method: z.ZodLiteral<"credit_card">;
391
463
  }, z.core.$strip>]>;
@@ -1809,11 +1881,29 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
1809
1881
  declare const getPaymentInfoInputSchema: z.ZodUndefined;
1810
1882
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1811
1883
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1884
+ id: z.ZodString;
1885
+ status: z.ZodEnum<{
1886
+ pending: "pending";
1887
+ pending_verification: "pending_verification";
1888
+ paid: "paid";
1889
+ canceled: "canceled";
1890
+ refunded: "refunded";
1891
+ failed: "failed";
1892
+ }>;
1812
1893
  amount: z.ZodString;
1813
1894
  method: z.ZodLiteral<"stripe">;
1814
1895
  sessionUrl: z.ZodString;
1815
1896
  expiresAt: z.ZodString;
1816
1897
  }, z.core.$strip>, z.ZodObject<{
1898
+ id: z.ZodString;
1899
+ status: z.ZodEnum<{
1900
+ pending: "pending";
1901
+ pending_verification: "pending_verification";
1902
+ paid: "paid";
1903
+ canceled: "canceled";
1904
+ refunded: "refunded";
1905
+ failed: "failed";
1906
+ }>;
1817
1907
  amount: z.ZodString;
1818
1908
  method: z.ZodLiteral<"bank_transfer">;
1819
1909
  iban: z.ZodString;
@@ -1824,9 +1914,27 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1824
1914
  currency: z.ZodString;
1825
1915
  description: z.ZodString;
1826
1916
  }, z.core.$strip>, z.ZodObject<{
1917
+ id: z.ZodString;
1918
+ status: z.ZodEnum<{
1919
+ pending: "pending";
1920
+ pending_verification: "pending_verification";
1921
+ paid: "paid";
1922
+ canceled: "canceled";
1923
+ refunded: "refunded";
1924
+ failed: "failed";
1925
+ }>;
1827
1926
  amount: z.ZodString;
1828
1927
  method: z.ZodLiteral<"cash">;
1829
1928
  }, z.core.$strip>, z.ZodObject<{
1929
+ id: z.ZodString;
1930
+ status: z.ZodEnum<{
1931
+ pending: "pending";
1932
+ pending_verification: "pending_verification";
1933
+ paid: "paid";
1934
+ canceled: "canceled";
1935
+ refunded: "refunded";
1936
+ failed: "failed";
1937
+ }>;
1830
1938
  amount: z.ZodString;
1831
1939
  method: z.ZodLiteral<"credit_card">;
1832
1940
  }, z.core.$strip>]>;
@@ -1837,11 +1945,29 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1837
1945
  readonly accept = "application/json";
1838
1946
  readonly inputSchema: z.ZodUndefined;
1839
1947
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1948
+ id: z.ZodString;
1949
+ status: z.ZodEnum<{
1950
+ pending: "pending";
1951
+ pending_verification: "pending_verification";
1952
+ paid: "paid";
1953
+ canceled: "canceled";
1954
+ refunded: "refunded";
1955
+ failed: "failed";
1956
+ }>;
1840
1957
  amount: z.ZodString;
1841
1958
  method: z.ZodLiteral<"stripe">;
1842
1959
  sessionUrl: z.ZodString;
1843
1960
  expiresAt: z.ZodString;
1844
1961
  }, z.core.$strip>, z.ZodObject<{
1962
+ id: z.ZodString;
1963
+ status: z.ZodEnum<{
1964
+ pending: "pending";
1965
+ pending_verification: "pending_verification";
1966
+ paid: "paid";
1967
+ canceled: "canceled";
1968
+ refunded: "refunded";
1969
+ failed: "failed";
1970
+ }>;
1845
1971
  amount: z.ZodString;
1846
1972
  method: z.ZodLiteral<"bank_transfer">;
1847
1973
  iban: z.ZodString;
@@ -1852,9 +1978,27 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1852
1978
  currency: z.ZodString;
1853
1979
  description: z.ZodString;
1854
1980
  }, z.core.$strip>, z.ZodObject<{
1981
+ id: z.ZodString;
1982
+ status: z.ZodEnum<{
1983
+ pending: "pending";
1984
+ pending_verification: "pending_verification";
1985
+ paid: "paid";
1986
+ canceled: "canceled";
1987
+ refunded: "refunded";
1988
+ failed: "failed";
1989
+ }>;
1855
1990
  amount: z.ZodString;
1856
1991
  method: z.ZodLiteral<"cash">;
1857
1992
  }, z.core.$strip>, z.ZodObject<{
1993
+ id: z.ZodString;
1994
+ status: z.ZodEnum<{
1995
+ pending: "pending";
1996
+ pending_verification: "pending_verification";
1997
+ paid: "paid";
1998
+ canceled: "canceled";
1999
+ refunded: "refunded";
2000
+ failed: "failed";
2001
+ }>;
1858
2002
  amount: z.ZodString;
1859
2003
  method: z.ZodLiteral<"credit_card">;
1860
2004
  }, z.core.$strip>]>;
package/dist/index.js CHANGED
@@ -11308,7 +11308,9 @@ var writablePaymentConfigSchemas = {
11308
11308
  credit_card: writablePaymentConfigCreditCardSchema
11309
11309
  };
11310
11310
  var paymentInfoBaseSchema = external_exports.object({
11311
+ id: external_exports.string(),
11311
11312
  method: paymentMethodSchema,
11313
+ status: paymentStatusSchema,
11312
11314
  amount: external_exports.string()
11313
11315
  });
11314
11316
  var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-payment",
3
3
  "description": "Deliverart JavaScript SDK for Payment Management",
4
- "version": "2.4.8",
4
+ "version": "2.4.10",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-core": "2.4.8",
22
- "@deliverart/sdk-js-global-types": "2.4.8",
23
- "@deliverart/sdk-js-point-of-sale": "2.4.8"
21
+ "@deliverart/sdk-js-core": "2.4.10",
22
+ "@deliverart/sdk-js-global-types": "2.4.10",
23
+ "@deliverart/sdk-js-point-of-sale": "2.4.10"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"