@deliverart/sdk-js-payment 2.4.8 → 2.4.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/index.cjs CHANGED
@@ -11449,6 +11449,7 @@ 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,
11453
11454
  amount: external_exports.string()
11454
11455
  });
package/dist/index.d.cts CHANGED
@@ -339,6 +339,7 @@ declare const writablePaymentConfigSchemas: {
339
339
  }, z.core.$strip>;
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
+ id: z.ZodString;
342
343
  amount: z.ZodString;
343
344
  method: z.ZodLiteral<"stripe">;
344
345
  sessionUrl: z.ZodString;
@@ -346,6 +347,7 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
346
347
  }, z.core.$strip>;
347
348
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
348
349
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
350
+ id: z.ZodString;
349
351
  amount: z.ZodString;
350
352
  method: z.ZodLiteral<"bank_transfer">;
351
353
  iban: z.ZodString;
@@ -358,21 +360,25 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
360
  }, z.core.$strip>;
359
361
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
360
362
  declare const paymentInfoCashSchema: z.ZodObject<{
363
+ id: z.ZodString;
361
364
  amount: z.ZodString;
362
365
  method: z.ZodLiteral<"cash">;
363
366
  }, z.core.$strip>;
364
367
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
365
368
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
369
+ id: z.ZodString;
366
370
  amount: z.ZodString;
367
371
  method: z.ZodLiteral<"credit_card">;
368
372
  }, z.core.$strip>;
369
373
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
370
374
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
+ id: z.ZodString;
371
376
  amount: z.ZodString;
372
377
  method: z.ZodLiteral<"stripe">;
373
378
  sessionUrl: z.ZodString;
374
379
  expiresAt: z.ZodString;
375
380
  }, z.core.$strip>, z.ZodObject<{
381
+ id: z.ZodString;
376
382
  amount: z.ZodString;
377
383
  method: z.ZodLiteral<"bank_transfer">;
378
384
  iban: z.ZodString;
@@ -383,9 +389,11 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
389
  currency: z.ZodString;
384
390
  description: z.ZodString;
385
391
  }, z.core.$strip>, z.ZodObject<{
392
+ id: z.ZodString;
386
393
  amount: z.ZodString;
387
394
  method: z.ZodLiteral<"cash">;
388
395
  }, z.core.$strip>, z.ZodObject<{
396
+ id: z.ZodString;
389
397
  amount: z.ZodString;
390
398
  method: z.ZodLiteral<"credit_card">;
391
399
  }, z.core.$strip>]>;
@@ -1809,11 +1817,13 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
1809
1817
  declare const getPaymentInfoInputSchema: z.ZodUndefined;
1810
1818
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1811
1819
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
+ id: z.ZodString;
1812
1821
  amount: z.ZodString;
1813
1822
  method: z.ZodLiteral<"stripe">;
1814
1823
  sessionUrl: z.ZodString;
1815
1824
  expiresAt: z.ZodString;
1816
1825
  }, z.core.$strip>, z.ZodObject<{
1826
+ id: z.ZodString;
1817
1827
  amount: z.ZodString;
1818
1828
  method: z.ZodLiteral<"bank_transfer">;
1819
1829
  iban: z.ZodString;
@@ -1824,9 +1834,11 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1824
1834
  currency: z.ZodString;
1825
1835
  description: z.ZodString;
1826
1836
  }, z.core.$strip>, z.ZodObject<{
1837
+ id: z.ZodString;
1827
1838
  amount: z.ZodString;
1828
1839
  method: z.ZodLiteral<"cash">;
1829
1840
  }, z.core.$strip>, z.ZodObject<{
1841
+ id: z.ZodString;
1830
1842
  amount: z.ZodString;
1831
1843
  method: z.ZodLiteral<"credit_card">;
1832
1844
  }, z.core.$strip>]>;
@@ -1837,11 +1849,13 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1837
1849
  readonly accept = "application/json";
1838
1850
  readonly inputSchema: z.ZodUndefined;
1839
1851
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1852
+ id: z.ZodString;
1840
1853
  amount: z.ZodString;
1841
1854
  method: z.ZodLiteral<"stripe">;
1842
1855
  sessionUrl: z.ZodString;
1843
1856
  expiresAt: z.ZodString;
1844
1857
  }, z.core.$strip>, z.ZodObject<{
1858
+ id: z.ZodString;
1845
1859
  amount: z.ZodString;
1846
1860
  method: z.ZodLiteral<"bank_transfer">;
1847
1861
  iban: z.ZodString;
@@ -1852,9 +1866,11 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1852
1866
  currency: z.ZodString;
1853
1867
  description: z.ZodString;
1854
1868
  }, z.core.$strip>, z.ZodObject<{
1869
+ id: z.ZodString;
1855
1870
  amount: z.ZodString;
1856
1871
  method: z.ZodLiteral<"cash">;
1857
1872
  }, z.core.$strip>, z.ZodObject<{
1873
+ id: z.ZodString;
1858
1874
  amount: z.ZodString;
1859
1875
  method: z.ZodLiteral<"credit_card">;
1860
1876
  }, z.core.$strip>]>;
package/dist/index.d.ts CHANGED
@@ -339,6 +339,7 @@ declare const writablePaymentConfigSchemas: {
339
339
  }, z.core.$strip>;
340
340
  };
341
341
  declare const paymentInfoStripeSchema: z.ZodObject<{
342
+ id: z.ZodString;
342
343
  amount: z.ZodString;
343
344
  method: z.ZodLiteral<"stripe">;
344
345
  sessionUrl: z.ZodString;
@@ -346,6 +347,7 @@ declare const paymentInfoStripeSchema: z.ZodObject<{
346
347
  }, z.core.$strip>;
347
348
  type PaymentInfoStripe = z.infer<typeof paymentInfoStripeSchema>;
348
349
  declare const paymentInfoBankTransferSchema: z.ZodObject<{
350
+ id: z.ZodString;
349
351
  amount: z.ZodString;
350
352
  method: z.ZodLiteral<"bank_transfer">;
351
353
  iban: z.ZodString;
@@ -358,21 +360,25 @@ declare const paymentInfoBankTransferSchema: z.ZodObject<{
358
360
  }, z.core.$strip>;
359
361
  type PaymentInfoBankTransfer = z.infer<typeof paymentInfoBankTransferSchema>;
360
362
  declare const paymentInfoCashSchema: z.ZodObject<{
363
+ id: z.ZodString;
361
364
  amount: z.ZodString;
362
365
  method: z.ZodLiteral<"cash">;
363
366
  }, z.core.$strip>;
364
367
  type PaymentInfoCash = z.infer<typeof paymentInfoCashSchema>;
365
368
  declare const paymentInfoCreditCardSchema: z.ZodObject<{
369
+ id: z.ZodString;
366
370
  amount: z.ZodString;
367
371
  method: z.ZodLiteral<"credit_card">;
368
372
  }, z.core.$strip>;
369
373
  type PaymentInfoCreditCard = z.infer<typeof paymentInfoCreditCardSchema>;
370
374
  declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
+ id: z.ZodString;
371
376
  amount: z.ZodString;
372
377
  method: z.ZodLiteral<"stripe">;
373
378
  sessionUrl: z.ZodString;
374
379
  expiresAt: z.ZodString;
375
380
  }, z.core.$strip>, z.ZodObject<{
381
+ id: z.ZodString;
376
382
  amount: z.ZodString;
377
383
  method: z.ZodLiteral<"bank_transfer">;
378
384
  iban: z.ZodString;
@@ -383,9 +389,11 @@ declare const paymentInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
383
389
  currency: z.ZodString;
384
390
  description: z.ZodString;
385
391
  }, z.core.$strip>, z.ZodObject<{
392
+ id: z.ZodString;
386
393
  amount: z.ZodString;
387
394
  method: z.ZodLiteral<"cash">;
388
395
  }, z.core.$strip>, z.ZodObject<{
396
+ id: z.ZodString;
389
397
  amount: z.ZodString;
390
398
  method: z.ZodLiteral<"credit_card">;
391
399
  }, z.core.$strip>]>;
@@ -1809,11 +1817,13 @@ declare class GetPaymentDetails extends AbstractApiRequest<typeof getPaymentDeta
1809
1817
  declare const getPaymentInfoInputSchema: z.ZodUndefined;
1810
1818
  type GetPaymentInfoInput = z.input<typeof getPaymentInfoInputSchema>;
1811
1819
  declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
+ id: z.ZodString;
1812
1821
  amount: z.ZodString;
1813
1822
  method: z.ZodLiteral<"stripe">;
1814
1823
  sessionUrl: z.ZodString;
1815
1824
  expiresAt: z.ZodString;
1816
1825
  }, z.core.$strip>, z.ZodObject<{
1826
+ id: z.ZodString;
1817
1827
  amount: z.ZodString;
1818
1828
  method: z.ZodLiteral<"bank_transfer">;
1819
1829
  iban: z.ZodString;
@@ -1824,9 +1834,11 @@ declare const getPaymentInfoResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1824
1834
  currency: z.ZodString;
1825
1835
  description: z.ZodString;
1826
1836
  }, z.core.$strip>, z.ZodObject<{
1837
+ id: z.ZodString;
1827
1838
  amount: z.ZodString;
1828
1839
  method: z.ZodLiteral<"cash">;
1829
1840
  }, z.core.$strip>, z.ZodObject<{
1841
+ id: z.ZodString;
1830
1842
  amount: z.ZodString;
1831
1843
  method: z.ZodLiteral<"credit_card">;
1832
1844
  }, z.core.$strip>]>;
@@ -1837,11 +1849,13 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1837
1849
  readonly accept = "application/json";
1838
1850
  readonly inputSchema: z.ZodUndefined;
1839
1851
  readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1852
+ id: z.ZodString;
1840
1853
  amount: z.ZodString;
1841
1854
  method: z.ZodLiteral<"stripe">;
1842
1855
  sessionUrl: z.ZodString;
1843
1856
  expiresAt: z.ZodString;
1844
1857
  }, z.core.$strip>, z.ZodObject<{
1858
+ id: z.ZodString;
1845
1859
  amount: z.ZodString;
1846
1860
  method: z.ZodLiteral<"bank_transfer">;
1847
1861
  iban: z.ZodString;
@@ -1852,9 +1866,11 @@ declare class GetPaymentInfo extends AbstractApiRequest<typeof getPaymentInfoInp
1852
1866
  currency: z.ZodString;
1853
1867
  description: z.ZodString;
1854
1868
  }, z.core.$strip>, z.ZodObject<{
1869
+ id: z.ZodString;
1855
1870
  amount: z.ZodString;
1856
1871
  method: z.ZodLiteral<"cash">;
1857
1872
  }, z.core.$strip>, z.ZodObject<{
1873
+ id: z.ZodString;
1858
1874
  amount: z.ZodString;
1859
1875
  method: z.ZodLiteral<"credit_card">;
1860
1876
  }, z.core.$strip>]>;
package/dist/index.js CHANGED
@@ -11308,6 +11308,7 @@ 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,
11312
11313
  amount: external_exports.string()
11313
11314
  });
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.9",
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.9",
22
+ "@deliverart/sdk-js-global-types": "2.4.9",
23
+ "@deliverart/sdk-js-point-of-sale": "2.4.9"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"