@amos.com/node 0.1.28 → 0.1.29

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/openapi/schema.ts CHANGED
@@ -540,6 +540,24 @@ export interface paths {
540
540
  patch?: never;
541
541
  trace?: never;
542
542
  };
543
+ "/payment_links/{id}": {
544
+ parameters: {
545
+ query?: never;
546
+ header?: never;
547
+ path?: never;
548
+ cookie?: never;
549
+ };
550
+ /** Retrieve a payment link by ID */
551
+ get: operations["GetPaymentLink"];
552
+ /** Update a payment link by ID */
553
+ put: operations["UpdatePaymentLink"];
554
+ post?: never;
555
+ delete?: never;
556
+ options?: never;
557
+ head?: never;
558
+ patch?: never;
559
+ trace?: never;
560
+ };
543
561
  "/payment_intents/{id}": {
544
562
  parameters: {
545
563
  query?: never;
@@ -1955,6 +1973,29 @@ export interface components {
1955
1973
  CreatePaymentLinkRequest: {
1956
1974
  payment_link: components["schemas"]["CreatePaymentLinkInput"];
1957
1975
  };
1976
+ UpdatePaymentLinkInput: {
1977
+ active?: boolean;
1978
+ amount_type?: components["schemas"]["PaymentLinkAmountType"];
1979
+ amount?: number;
1980
+ /** Format: uri */
1981
+ image_url?: string;
1982
+ minimum_amount?: number;
1983
+ maximum_amount?: number;
1984
+ suggested_amounts?: number[];
1985
+ currency?: string;
1986
+ description?: string | null;
1987
+ statement_descriptor?: string;
1988
+ /** Format: uri */
1989
+ success_url?: string;
1990
+ title?: string;
1991
+ /** Format: uri */
1992
+ cancel_url?: string;
1993
+ allowed_payment_methods?: components["schemas"]["AllowedPaymentMethodInput"][];
1994
+ metadata?: components["schemas"]["Metadata"];
1995
+ };
1996
+ UpdatePaymentLinkRequest: {
1997
+ payment_link: components["schemas"]["UpdatePaymentLinkInput"];
1998
+ };
1958
1999
  PaymentLink: {
1959
2000
  /** Format: uuid */
1960
2001
  id?: string;
@@ -3614,6 +3655,83 @@ export interface operations {
3614
3655
  };
3615
3656
  };
3616
3657
  };
3658
+ GetPaymentLink: {
3659
+ parameters: {
3660
+ query?: never;
3661
+ header?: never;
3662
+ path: {
3663
+ /** @description The ID of the payment link to retrieve */
3664
+ id: string;
3665
+ };
3666
+ cookie?: never;
3667
+ };
3668
+ requestBody?: never;
3669
+ responses: {
3670
+ /** @description Payment link retrieved successfully */
3671
+ 200: {
3672
+ headers: {
3673
+ [name: string]: unknown;
3674
+ };
3675
+ content: {
3676
+ "application/json": components["schemas"]["PaymentLink"];
3677
+ };
3678
+ };
3679
+ /** @description Payment link not found */
3680
+ 404: {
3681
+ headers: {
3682
+ [name: string]: unknown;
3683
+ };
3684
+ content: {
3685
+ "application/json": components["schemas"]["Error"];
3686
+ };
3687
+ };
3688
+ };
3689
+ };
3690
+ UpdatePaymentLink: {
3691
+ parameters: {
3692
+ query?: never;
3693
+ header?: never;
3694
+ path: {
3695
+ /** @description The ID of the payment link to update */
3696
+ id: string;
3697
+ };
3698
+ cookie?: never;
3699
+ };
3700
+ requestBody: {
3701
+ content: {
3702
+ "application/json": components["schemas"]["UpdatePaymentLinkRequest"];
3703
+ };
3704
+ };
3705
+ responses: {
3706
+ /** @description Payment link updated successfully */
3707
+ 200: {
3708
+ headers: {
3709
+ [name: string]: unknown;
3710
+ };
3711
+ content: {
3712
+ "application/json": components["schemas"]["PaymentLink"];
3713
+ };
3714
+ };
3715
+ /** @description Payment link not found */
3716
+ 404: {
3717
+ headers: {
3718
+ [name: string]: unknown;
3719
+ };
3720
+ content: {
3721
+ "application/json": components["schemas"]["Error"];
3722
+ };
3723
+ };
3724
+ /** @description Error updating payment link */
3725
+ 422: {
3726
+ headers: {
3727
+ [name: string]: unknown;
3728
+ };
3729
+ content: {
3730
+ "application/json": components["schemas"]["Error"];
3731
+ };
3732
+ };
3733
+ };
3734
+ };
3617
3735
  GetPaymentIntent: {
3618
3736
  parameters: {
3619
3737
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amos.com/node",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Node.js client for the Amos Pay API.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",