@deliverart/sdk-js-payment 2.4.9 → 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
@@ -11451,6 +11451,7 @@ var writablePaymentConfigSchemas = {
11451
11451
  var paymentInfoBaseSchema = external_exports.object({
11452
11452
  id: external_exports.string(),
11453
11453
  method: paymentMethodSchema,
11454
+ status: paymentStatusSchema,
11454
11455
  amount: external_exports.string()
11455
11456
  });
11456
11457
  var paymentInfoStripeSchema = paymentInfoBaseSchema.extend({
package/dist/index.d.cts CHANGED
@@ -340,6 +340,14 @@ declare const writablePaymentConfigSchemas: {
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
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
+ }>;
343
351
  amount: z.ZodString;
344
352
  method: z.ZodLiteral<"stripe">;
345
353
  sessionUrl: z.ZodString;
@@ -348,6 +356,14 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
348
356
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
349
357
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
350
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
+ }>;
351
367
  amount: z.ZodString;
352
368
  method: z.ZodLiteral<"bank_transfer">;
353
369
  iban: z.ZodString;
@@ -361,24 +377,56 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
361
377
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
362
378
  declare const paymentInfoCashSchema: z.ZodObject<{
363
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
+ }>;
364
388
  amount: z.ZodString;
365
389
  method: z.ZodLiteral<"cash">;
366
390
  }, z.core.$strip>;
367
391
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
368
392
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
369
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
+ }>;
370
402
  amount: z.ZodString;
371
403
  method: z.ZodLiteral<"credit_card">;
372
404
  }, z.core.$strip>;
373
405
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
374
406
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
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
+ }>;
376
416
  amount: z.ZodString;
377
417
  method: z.ZodLiteral<"stripe">;
378
418
  sessionUrl: z.ZodString;
379
419
  expiresAt: z.ZodString;
380
420
  }, z.core.$strip>, z.ZodObject<{
381
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
+ }>;
382
430
  amount: z.ZodString;
383
431
  method: z.ZodLiteral<"bank_transfer">;
384
432
  iban: z.ZodString;
@@ -390,10 +438,26 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
438
  description: z.ZodString;
391
439
  }, z.core.$strip>, z.ZodObject<{
392
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
+ }>;
393
449
  amount: z.ZodString;
394
450
  method: z.ZodLiteral<"cash">;
395
451
  }, z.core.$strip>, z.ZodObject<{
396
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
+ }>;
397
461
  amount: z.ZodString;
398
462
  method: z.ZodLiteral<"credit_card">;
399
463
  }, z.core.$strip>]>;
@@ -1818,12 +1882,28 @@ declare const getPaymentInfoInputSchema: z.ZodUndefined;
1818
1882
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1819
1883
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
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
+ }>;
1821
1893
  amount: z.ZodString;
1822
1894
  method: z.ZodLiteral<"stripe">;
1823
1895
  sessionUrl: z.ZodString;
1824
1896
  expiresAt: z.ZodString;
1825
1897
  }, z.core.$strip>, z.ZodObject<{
1826
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
+ }>;
1827
1907
  amount: z.ZodString;
1828
1908
  method: z.ZodLiteral<"bank_transfer">;
1829
1909
  iban: z.ZodString;
@@ -1835,10 +1915,26 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1835
1915
  description: z.ZodString;
1836
1916
  }, z.core.$strip>, z.ZodObject<{
1837
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
+ }>;
1838
1926
  amount: z.ZodString;
1839
1927
  method: z.ZodLiteral<"cash">;
1840
1928
  }, z.core.$strip>, z.ZodObject<{
1841
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
+ }>;
1842
1938
  amount: z.ZodString;
1843
1939
  method: z.ZodLiteral<"credit_card">;
1844
1940
  }, z.core.$strip>]>;
@@ -1850,12 +1946,28 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1850
1946
  readonly inputSchema: z.ZodUndefined;
1851
1947
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1852
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
+ }>;
1853
1957
  amount: z.ZodString;
1854
1958
  method: z.ZodLiteral<"stripe">;
1855
1959
  sessionUrl: z.ZodString;
1856
1960
  expiresAt: z.ZodString;
1857
1961
  }, z.core.$strip>, z.ZodObject<{
1858
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
+ }>;
1859
1971
  amount: z.ZodString;
1860
1972
  method: z.ZodLiteral<"bank_transfer">;
1861
1973
  iban: z.ZodString;
@@ -1867,10 +1979,26 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1867
1979
  description: z.ZodString;
1868
1980
  }, z.core.$strip>, z.ZodObject<{
1869
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
+ }>;
1870
1990
  amount: z.ZodString;
1871
1991
  method: z.ZodLiteral<"cash">;
1872
1992
  }, z.core.$strip>, z.ZodObject<{
1873
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
+ }>;
1874
2002
  amount: z.ZodString;
1875
2003
  method: z.ZodLiteral<"credit_card">;
1876
2004
  }, z.core.$strip>]>;
package/dist/index.d.ts CHANGED
@@ -340,6 +340,14 @@ declare const writablePaymentConfigSchemas: {
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
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
+ }>;
343
351
  amount: z.ZodString;
344
352
  method: z.ZodLiteral<"stripe">;
345
353
  sessionUrl: z.ZodString;
@@ -348,6 +356,14 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
348
356
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
349
357
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
350
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
+ }>;
351
367
  amount: z.ZodString;
352
368
  method: z.ZodLiteral<"bank_transfer">;
353
369
  iban: z.ZodString;
@@ -361,24 +377,56 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
361
377
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
362
378
  declare const paymentInfoCashSchema: z.ZodObject<{
363
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
+ }>;
364
388
  amount: z.ZodString;
365
389
  method: z.ZodLiteral<"cash">;
366
390
  }, z.core.$strip>;
367
391
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
368
392
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
369
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
+ }>;
370
402
  amount: z.ZodString;
371
403
  method: z.ZodLiteral<"credit_card">;
372
404
  }, z.core.$strip>;
373
405
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
374
406
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
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
+ }>;
376
416
  amount: z.ZodString;
377
417
  method: z.ZodLiteral<"stripe">;
378
418
  sessionUrl: z.ZodString;
379
419
  expiresAt: z.ZodString;
380
420
  }, z.core.$strip>, z.ZodObject<{
381
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
+ }>;
382
430
  amount: z.ZodString;
383
431
  method: z.ZodLiteral<"bank_transfer">;
384
432
  iban: z.ZodString;
@@ -390,10 +438,26 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
390
438
  description: z.ZodString;
391
439
  }, z.core.$strip>, z.ZodObject<{
392
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
+ }>;
393
449
  amount: z.ZodString;
394
450
  method: z.ZodLiteral<"cash">;
395
451
  }, z.core.$strip>, z.ZodObject<{
396
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
+ }>;
397
461
  amount: z.ZodString;
398
462
  method: z.ZodLiteral<"credit_card">;
399
463
  }, z.core.$strip>]>;
@@ -1818,12 +1882,28 @@ declare const getPaymentInfoInputSchema: z.ZodUndefined;
1818
1882
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1819
1883
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
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
+ }>;
1821
1893
  amount: z.ZodString;
1822
1894
  method: z.ZodLiteral<"stripe">;
1823
1895
  sessionUrl: z.ZodString;
1824
1896
  expiresAt: z.ZodString;
1825
1897
  }, z.core.$strip>, z.ZodObject<{
1826
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
+ }>;
1827
1907
  amount: z.ZodString;
1828
1908
  method: z.ZodLiteral<"bank_transfer">;
1829
1909
  iban: z.ZodString;
@@ -1835,10 +1915,26 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1835
1915
  description: z.ZodString;
1836
1916
  }, z.core.$strip>, z.ZodObject<{
1837
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
+ }>;
1838
1926
  amount: z.ZodString;
1839
1927
  method: z.ZodLiteral<"cash">;
1840
1928
  }, z.core.$strip>, z.ZodObject<{
1841
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
+ }>;
1842
1938
  amount: z.ZodString;
1843
1939
  method: z.ZodLiteral<"credit_card">;
1844
1940
  }, z.core.$strip>]>;
@@ -1850,12 +1946,28 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1850
1946
  readonly inputSchema: z.ZodUndefined;
1851
1947
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1852
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
+ }>;
1853
1957
  amount: z.ZodString;
1854
1958
  method: z.ZodLiteral<"stripe">;
1855
1959
  sessionUrl: z.ZodString;
1856
1960
  expiresAt: z.ZodString;
1857
1961
  }, z.core.$strip>, z.ZodObject<{
1858
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
+ }>;
1859
1971
  amount: z.ZodString;
1860
1972
  method: z.ZodLiteral<"bank_transfer">;
1861
1973
  iban: z.ZodString;
@@ -1867,10 +1979,26 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1867
1979
  description: z.ZodString;
1868
1980
  }, z.core.$strip>, z.ZodObject<{
1869
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
+ }>;
1870
1990
  amount: z.ZodString;
1871
1991
  method: z.ZodLiteral<"cash">;
1872
1992
  }, z.core.$strip>, z.ZodObject<{
1873
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
+ }>;
1874
2002
  amount: z.ZodString;
1875
2003
  method: z.ZodLiteral<"credit_card">;
1876
2004
  }, z.core.$strip>]>;
package/dist/index.js CHANGED
@@ -11310,6 +11310,7 @@ var writablePaymentConfigSchemas = {
11310
11310
  var paymentInfoBaseSchema = external_exports.object({
11311
11311
  id: external_exports.string(),
11312
11312
  method: paymentMethodSchema,
11313
+ status: paymentStatusSchema,
11313
11314
  amount: external_exports.string()
11314
11315
  });
11315
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.9",
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.9",
22
- "@deliverart/sdk-js-global-types": "2.4.9",
23
- "@deliverart/sdk-js-point-of-sale": "2.4.9"
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"