@amos.com/node 0.1.1 → 0.1.3

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.d.ts CHANGED
@@ -68,7 +68,8 @@ interface paths {
68
68
  };
69
69
  /** Retrieve a charge */
70
70
  get: operations["GetCharge"];
71
- put?: never;
71
+ /** Update a charge */
72
+ put: operations["UpdateCharge"];
72
73
  post?: never;
73
74
  delete?: never;
74
75
  options?: never;
@@ -524,6 +525,24 @@ interface paths {
524
525
  patch?: never;
525
526
  trace?: never;
526
527
  };
528
+ "/payment_links": {
529
+ parameters: {
530
+ query?: never;
531
+ header?: never;
532
+ path?: never;
533
+ cookie?: never;
534
+ };
535
+ /** List payment links */
536
+ get: operations["ListPaymentLinks"];
537
+ put?: never;
538
+ /** Create a new payment link */
539
+ post: operations["CreatePaymentLink"];
540
+ delete?: never;
541
+ options?: never;
542
+ head?: never;
543
+ patch?: never;
544
+ trace?: never;
545
+ };
527
546
  "/payment_intents/{id}": {
528
547
  parameters: {
529
548
  query?: never;
@@ -740,7 +759,8 @@ interface paths {
740
759
  };
741
760
  /** Retrieve a refund by ID */
742
761
  get: operations["GetRefund"];
743
- put?: never;
762
+ /** Update a refund */
763
+ put: operations["UpdateRefund"];
744
764
  post?: never;
745
765
  delete?: never;
746
766
  options?: never;
@@ -982,7 +1002,8 @@ interface paths {
982
1002
  };
983
1003
  /** Retrieve a void by ID */
984
1004
  get: operations["GetVoid"];
985
- put?: never;
1005
+ /** Update a void */
1006
+ put: operations["UpdateVoid"];
986
1007
  post?: never;
987
1008
  delete?: never;
988
1009
  options?: never;
@@ -1078,6 +1099,23 @@ interface paths {
1078
1099
  patch?: never;
1079
1100
  trace?: never;
1080
1101
  };
1102
+ "/webhook_requests/{id}": {
1103
+ parameters: {
1104
+ query?: never;
1105
+ header?: never;
1106
+ path?: never;
1107
+ cookie?: never;
1108
+ };
1109
+ /** Get webhook request by ID */
1110
+ get: operations["RetrieveWebhookRequest"];
1111
+ put?: never;
1112
+ post?: never;
1113
+ delete?: never;
1114
+ options?: never;
1115
+ head?: never;
1116
+ patch?: never;
1117
+ trace?: never;
1118
+ };
1081
1119
  }
1082
1120
  type webhooks = Record<string, never>;
1083
1121
  interface components {
@@ -1096,7 +1134,9 @@ interface components {
1096
1134
  [key: string]: string | null;
1097
1135
  };
1098
1136
  Error: {
1099
- errors?: Record<string, never>;
1137
+ errors: {
1138
+ [key: string]: string[];
1139
+ };
1100
1140
  };
1101
1141
  /** @description Decoded JWT payload for embed token responses. */
1102
1142
  EmbedTokenJwt: {
@@ -1670,6 +1710,59 @@ interface components {
1670
1710
  /** Format: date-time */
1671
1711
  updated_at?: string;
1672
1712
  };
1713
+ CreatePaymentLinkInput: {
1714
+ slug?: string;
1715
+ active?: boolean;
1716
+ /** @enum {string} */
1717
+ amount_type?: "fixed" | "open";
1718
+ amount?: number;
1719
+ /** Format: uri */
1720
+ image_url?: string;
1721
+ minimum_amount?: number;
1722
+ maximum_amount?: number;
1723
+ suggested_amounts?: number[];
1724
+ currency?: string;
1725
+ description?: string | null;
1726
+ statement_descriptor?: string;
1727
+ /** Format: uri */
1728
+ success_url?: string;
1729
+ title?: string;
1730
+ /** Format: uri */
1731
+ cancel_url?: string;
1732
+ allowed_payment_method_types?: string[];
1733
+ metadata?: components["schemas"]["Metadata"];
1734
+ };
1735
+ CreatePaymentLinkRequest: {
1736
+ payment_link: components["schemas"]["CreatePaymentLinkInput"];
1737
+ };
1738
+ PaymentLink: {
1739
+ /** Format: uuid */
1740
+ id?: string;
1741
+ /** Format: uuid */
1742
+ organization_id?: string;
1743
+ /** Format: uuid */
1744
+ account_id?: string;
1745
+ slug?: string;
1746
+ active?: boolean;
1747
+ /** @enum {string} */
1748
+ amount_type?: "fixed" | "open";
1749
+ amount?: number;
1750
+ /** Format: uri */
1751
+ image_url?: string;
1752
+ minimum_amount?: number;
1753
+ maximum_amount?: number;
1754
+ suggested_amounts?: number[];
1755
+ currency?: string;
1756
+ description?: string | null;
1757
+ statement_descriptor?: string;
1758
+ /** Format: uri */
1759
+ success_url?: string;
1760
+ title?: string;
1761
+ /** Format: uri */
1762
+ cancel_url?: string;
1763
+ allowed_payment_method_types?: string[];
1764
+ metadata?: components["schemas"]["Metadata"];
1765
+ };
1673
1766
  PaymentMethod: {
1674
1767
  /** Format: uuid */
1675
1768
  id?: string;
@@ -1796,6 +1889,13 @@ interface components {
1796
1889
  CreateRefundRequest: {
1797
1890
  refund: components["schemas"]["CreateRefundInput"];
1798
1891
  };
1892
+ UpdateRefundInput: {
1893
+ description?: string;
1894
+ metadata?: components["schemas"]["Metadata"];
1895
+ };
1896
+ UpdateRefundRequest: {
1897
+ refund: components["schemas"]["UpdateRefundInput"];
1898
+ };
1799
1899
  Refund: {
1800
1900
  /** Format: uuid */
1801
1901
  id?: string;
@@ -1952,6 +2052,13 @@ interface components {
1952
2052
  CreateSubscriptionPlanRequest: {
1953
2053
  subscription_plan: components["schemas"]["CreateSubscriptionPlanInput"];
1954
2054
  };
2055
+ UpdateChargeInput: {
2056
+ description?: string;
2057
+ metadata?: components["schemas"]["Metadata"];
2058
+ };
2059
+ UpdateChargeRequest: {
2060
+ charge: components["schemas"]["UpdateChargeInput"];
2061
+ };
1955
2062
  SubscriptionPlan: {
1956
2063
  /** Format: uuid */
1957
2064
  id?: string;
@@ -1987,6 +2094,13 @@ interface components {
1987
2094
  CreateVoidRequest: {
1988
2095
  void: components["schemas"]["CreateVoidInput"];
1989
2096
  };
2097
+ UpdateVoidInput: {
2098
+ description?: string;
2099
+ metadata?: components["schemas"]["Metadata"];
2100
+ };
2101
+ UpdateVoidRequest: {
2102
+ void: components["schemas"]["UpdateVoidInput"];
2103
+ };
1990
2104
  Void: {
1991
2105
  /** Format: uuid */
1992
2106
  id?: string;
@@ -2245,6 +2359,35 @@ interface operations {
2245
2359
  };
2246
2360
  };
2247
2361
  };
2362
+ UpdateCharge: {
2363
+ parameters: {
2364
+ query?: never;
2365
+ header: {
2366
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
2367
+ "X-Account-Id": components["parameters"]["XAccountIdHeader"];
2368
+ };
2369
+ path: {
2370
+ id: string;
2371
+ };
2372
+ cookie?: never;
2373
+ };
2374
+ requestBody: {
2375
+ content: {
2376
+ "application/json": components["schemas"]["UpdateChargeRequest"];
2377
+ };
2378
+ };
2379
+ responses: {
2380
+ /** @description Charge updated successfully */
2381
+ 200: {
2382
+ headers: {
2383
+ [name: string]: unknown;
2384
+ };
2385
+ content: {
2386
+ "application/json": components["schemas"]["Charge"];
2387
+ };
2388
+ };
2389
+ };
2390
+ };
2248
2391
  ListCustomers: {
2249
2392
  parameters: {
2250
2393
  query?: {
@@ -2304,6 +2447,15 @@ interface operations {
2304
2447
  "application/json": components["schemas"]["Customer"];
2305
2448
  };
2306
2449
  };
2450
+ /** @description Unprocessable entity */
2451
+ 422: {
2452
+ headers: {
2453
+ [name: string]: unknown;
2454
+ };
2455
+ content: {
2456
+ "application/json": components["schemas"]["Error"];
2457
+ };
2458
+ };
2307
2459
  };
2308
2460
  };
2309
2461
  GetCustomer: {
@@ -2414,6 +2566,15 @@ interface operations {
2414
2566
  "application/json": components["schemas"]["ExternalAccount"];
2415
2567
  };
2416
2568
  };
2569
+ /** @description Unprocessable entity */
2570
+ 422: {
2571
+ headers: {
2572
+ [name: string]: unknown;
2573
+ };
2574
+ content: {
2575
+ "application/json": components["schemas"]["Error"];
2576
+ };
2577
+ };
2417
2578
  };
2418
2579
  };
2419
2580
  GetExternalAccount: {
@@ -2465,6 +2626,15 @@ interface operations {
2465
2626
  "application/json": components["schemas"]["FileUpload"];
2466
2627
  };
2467
2628
  };
2629
+ /** @description Unprocessable entity */
2630
+ 422: {
2631
+ headers: {
2632
+ [name: string]: unknown;
2633
+ };
2634
+ content: {
2635
+ "application/json": components["schemas"]["Error"];
2636
+ };
2637
+ };
2468
2638
  };
2469
2639
  };
2470
2640
  GetFileUpload: {
@@ -2513,6 +2683,15 @@ interface operations {
2513
2683
  "application/json": components["schemas"]["FileDownload"];
2514
2684
  };
2515
2685
  };
2686
+ /** @description Unprocessable entity */
2687
+ 422: {
2688
+ headers: {
2689
+ [name: string]: unknown;
2690
+ };
2691
+ content: {
2692
+ "application/json": components["schemas"]["Error"];
2693
+ };
2694
+ };
2516
2695
  };
2517
2696
  };
2518
2697
  ListLegalEntityApplicationDocuments: {
@@ -2660,6 +2839,15 @@ interface operations {
2660
2839
  "application/json": components["schemas"]["LegalEntityApplication"];
2661
2840
  };
2662
2841
  };
2842
+ /** @description Unprocessable entity */
2843
+ 422: {
2844
+ headers: {
2845
+ [name: string]: unknown;
2846
+ };
2847
+ content: {
2848
+ "application/json": components["schemas"]["Error"];
2849
+ };
2850
+ };
2663
2851
  };
2664
2852
  };
2665
2853
  GetLegalEntityApplication: {
@@ -3050,6 +3238,15 @@ interface operations {
3050
3238
  "application/json": components["schemas"]["Origin"];
3051
3239
  };
3052
3240
  };
3241
+ /** @description Unprocessable entity */
3242
+ 422: {
3243
+ headers: {
3244
+ [name: string]: unknown;
3245
+ };
3246
+ content: {
3247
+ "application/json": components["schemas"]["Error"];
3248
+ };
3249
+ };
3053
3250
  };
3054
3251
  };
3055
3252
  GetEmbedPaymentIntent: {
@@ -3106,6 +3303,15 @@ interface operations {
3106
3303
  "application/json": components["schemas"]["PaymentIntent"];
3107
3304
  };
3108
3305
  };
3306
+ /** @description Unprocessable entity */
3307
+ 422: {
3308
+ headers: {
3309
+ [name: string]: unknown;
3310
+ };
3311
+ content: {
3312
+ "application/json": components["schemas"]["Error"];
3313
+ };
3314
+ };
3109
3315
  };
3110
3316
  };
3111
3317
  ListPaymentIntents: {
@@ -3164,6 +3370,82 @@ interface operations {
3164
3370
  "application/json": components["schemas"]["EmbedToken"];
3165
3371
  };
3166
3372
  };
3373
+ /** @description Unprocessable entity */
3374
+ 422: {
3375
+ headers: {
3376
+ [name: string]: unknown;
3377
+ };
3378
+ content: {
3379
+ "application/json": components["schemas"]["Error"];
3380
+ };
3381
+ };
3382
+ };
3383
+ };
3384
+ ListPaymentLinks: {
3385
+ parameters: {
3386
+ query?: {
3387
+ /** @description The page of results to retrieve. */
3388
+ page?: components["parameters"]["PageQuery"];
3389
+ /** @description Number of results per page. */
3390
+ per_page?: components["parameters"]["PerPageQuery"];
3391
+ };
3392
+ header: {
3393
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
3394
+ "X-Account-Id": components["parameters"]["XAccountIdHeader"];
3395
+ };
3396
+ path?: never;
3397
+ cookie?: never;
3398
+ };
3399
+ requestBody?: never;
3400
+ responses: {
3401
+ /** @description A list of payment links */
3402
+ 200: {
3403
+ headers: {
3404
+ [name: string]: unknown;
3405
+ };
3406
+ content: {
3407
+ "application/json": {
3408
+ data?: components["schemas"]["PaymentLink"][];
3409
+ meta?: components["schemas"]["Meta"];
3410
+ };
3411
+ };
3412
+ };
3413
+ };
3414
+ };
3415
+ CreatePaymentLink: {
3416
+ parameters: {
3417
+ query?: never;
3418
+ header: {
3419
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
3420
+ "X-Account-Id": components["parameters"]["XAccountIdHeader"];
3421
+ };
3422
+ path?: never;
3423
+ cookie?: never;
3424
+ };
3425
+ requestBody: {
3426
+ content: {
3427
+ "application/json": components["schemas"]["CreatePaymentLinkRequest"];
3428
+ };
3429
+ };
3430
+ responses: {
3431
+ /** @description Payment link created successfully */
3432
+ 201: {
3433
+ headers: {
3434
+ [name: string]: unknown;
3435
+ };
3436
+ content: {
3437
+ "application/json": components["schemas"]["PaymentLink"];
3438
+ };
3439
+ };
3440
+ /** @description Unprocessable entity */
3441
+ 422: {
3442
+ headers: {
3443
+ [name: string]: unknown;
3444
+ };
3445
+ content: {
3446
+ "application/json": components["schemas"]["Error"];
3447
+ };
3448
+ };
3167
3449
  };
3168
3450
  };
3169
3451
  GetPaymentIntent: {
@@ -3216,6 +3498,15 @@ interface operations {
3216
3498
  "application/json": components["schemas"]["PaymentIntent"];
3217
3499
  };
3218
3500
  };
3501
+ /** @description Unprocessable entity */
3502
+ 422: {
3503
+ headers: {
3504
+ [name: string]: unknown;
3505
+ };
3506
+ content: {
3507
+ "application/json": components["schemas"]["Error"];
3508
+ };
3509
+ };
3219
3510
  };
3220
3511
  };
3221
3512
  CapturePaymentIntent: {
@@ -3242,6 +3533,15 @@ interface operations {
3242
3533
  "application/json": components["schemas"]["PaymentIntent"];
3243
3534
  };
3244
3535
  };
3536
+ /** @description Unprocessable entity */
3537
+ 422: {
3538
+ headers: {
3539
+ [name: string]: unknown;
3540
+ };
3541
+ content: {
3542
+ "application/json": components["schemas"]["Error"];
3543
+ };
3544
+ };
3245
3545
  };
3246
3546
  };
3247
3547
  ListPaymentMethods: {
@@ -3685,6 +3985,36 @@ interface operations {
3685
3985
  };
3686
3986
  };
3687
3987
  };
3988
+ UpdateRefund: {
3989
+ parameters: {
3990
+ query?: never;
3991
+ header: {
3992
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
3993
+ "X-Account-Id": components["parameters"]["XAccountIdHeader"];
3994
+ };
3995
+ path: {
3996
+ /** @description The ID of the refund to update */
3997
+ id: string;
3998
+ };
3999
+ cookie?: never;
4000
+ };
4001
+ requestBody: {
4002
+ content: {
4003
+ "application/json": components["schemas"]["UpdateRefundRequest"];
4004
+ };
4005
+ };
4006
+ responses: {
4007
+ /** @description Refund updated successfully */
4008
+ 200: {
4009
+ headers: {
4010
+ [name: string]: unknown;
4011
+ };
4012
+ content: {
4013
+ "application/json": components["schemas"]["Refund"];
4014
+ };
4015
+ };
4016
+ };
4017
+ };
3688
4018
  CancelRefund: {
3689
4019
  parameters: {
3690
4020
  query?: never;
@@ -3766,6 +4096,15 @@ interface operations {
3766
4096
  "application/json": components["schemas"]["RenderTemplate"];
3767
4097
  };
3768
4098
  };
4099
+ /** @description Unprocessable entity */
4100
+ 422: {
4101
+ headers: {
4102
+ [name: string]: unknown;
4103
+ };
4104
+ content: {
4105
+ "application/json": components["schemas"]["Error"];
4106
+ };
4107
+ };
3769
4108
  };
3770
4109
  };
3771
4110
  GetRenderTemplate: {
@@ -3814,6 +4153,15 @@ interface operations {
3814
4153
  "application/json": components["schemas"]["RenderToken"];
3815
4154
  };
3816
4155
  };
4156
+ /** @description Unprocessable entity */
4157
+ 422: {
4158
+ headers: {
4159
+ [name: string]: unknown;
4160
+ };
4161
+ content: {
4162
+ "application/json": components["schemas"]["Error"];
4163
+ };
4164
+ };
3817
4165
  };
3818
4166
  };
3819
4167
  GetSetupIntent: {
@@ -3870,6 +4218,15 @@ interface operations {
3870
4218
  "application/json": components["schemas"]["SetupIntent"];
3871
4219
  };
3872
4220
  };
4221
+ /** @description Unprocessable entity */
4222
+ 422: {
4223
+ headers: {
4224
+ [name: string]: unknown;
4225
+ };
4226
+ content: {
4227
+ "application/json": components["schemas"]["Error"];
4228
+ };
4229
+ };
3873
4230
  };
3874
4231
  };
3875
4232
  CreateSetupIntent: {
@@ -3897,6 +4254,15 @@ interface operations {
3897
4254
  "application/json": components["schemas"]["EmbedToken"];
3898
4255
  };
3899
4256
  };
4257
+ /** @description Unprocessable entity */
4258
+ 422: {
4259
+ headers: {
4260
+ [name: string]: unknown;
4261
+ };
4262
+ content: {
4263
+ "application/json": components["schemas"]["Error"];
4264
+ };
4265
+ };
3900
4266
  };
3901
4267
  };
3902
4268
  ListSubscriptionPlans: {
@@ -3955,6 +4321,15 @@ interface operations {
3955
4321
  "application/json": components["schemas"]["SubscriptionPlan"];
3956
4322
  };
3957
4323
  };
4324
+ /** @description Unprocessable entity */
4325
+ 422: {
4326
+ headers: {
4327
+ [name: string]: unknown;
4328
+ };
4329
+ content: {
4330
+ "application/json": components["schemas"]["Error"];
4331
+ };
4332
+ };
3958
4333
  };
3959
4334
  };
3960
4335
  GetSubscriptionPlan: {
@@ -4039,6 +4414,15 @@ interface operations {
4039
4414
  "application/json": components["schemas"]["Subscription"];
4040
4415
  };
4041
4416
  };
4417
+ /** @description Unprocessable entity */
4418
+ 422: {
4419
+ headers: {
4420
+ [name: string]: unknown;
4421
+ };
4422
+ content: {
4423
+ "application/json": components["schemas"]["Error"];
4424
+ };
4425
+ };
4042
4426
  };
4043
4427
  };
4044
4428
  GetSubscription: {
@@ -4191,6 +4575,36 @@ interface operations {
4191
4575
  };
4192
4576
  };
4193
4577
  };
4578
+ UpdateVoid: {
4579
+ parameters: {
4580
+ query?: never;
4581
+ header: {
4582
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
4583
+ "X-Account-Id": components["parameters"]["XAccountIdHeader"];
4584
+ };
4585
+ path: {
4586
+ /** @description The ID of the void to update */
4587
+ id: string;
4588
+ };
4589
+ cookie?: never;
4590
+ };
4591
+ requestBody: {
4592
+ content: {
4593
+ "application/json": components["schemas"]["UpdateVoidRequest"];
4594
+ };
4595
+ };
4596
+ responses: {
4597
+ /** @description Void updated successfully */
4598
+ 200: {
4599
+ headers: {
4600
+ [name: string]: unknown;
4601
+ };
4602
+ content: {
4603
+ "application/json": components["schemas"]["Void"];
4604
+ };
4605
+ };
4606
+ };
4607
+ };
4194
4608
  ListWebhookAttempts: {
4195
4609
  parameters: {
4196
4610
  query: {
@@ -4277,6 +4691,15 @@ interface operations {
4277
4691
  "application/json": components["schemas"]["WebhookEndpoint"];
4278
4692
  };
4279
4693
  };
4694
+ /** @description Unprocessable entity */
4695
+ 422: {
4696
+ headers: {
4697
+ [name: string]: unknown;
4698
+ };
4699
+ content: {
4700
+ "application/json": components["schemas"]["Error"];
4701
+ };
4702
+ };
4280
4703
  };
4281
4704
  };
4282
4705
  GetWebhookEndpoint: {
@@ -4404,6 +4827,40 @@ interface operations {
4404
4827
  };
4405
4828
  content?: never;
4406
4829
  };
4830
+ /** @description Unprocessable entity */
4831
+ 422: {
4832
+ headers: {
4833
+ [name: string]: unknown;
4834
+ };
4835
+ content: {
4836
+ "application/json": components["schemas"]["Error"];
4837
+ };
4838
+ };
4839
+ };
4840
+ };
4841
+ RetrieveWebhookRequest: {
4842
+ parameters: {
4843
+ query?: never;
4844
+ header: {
4845
+ "X-Api-Version": components["parameters"]["XApiVersionHeader"];
4846
+ };
4847
+ path: {
4848
+ /** @description The ID of the webhook request to retrieve */
4849
+ id: string;
4850
+ };
4851
+ cookie?: never;
4852
+ };
4853
+ requestBody?: never;
4854
+ responses: {
4855
+ /** @description Webhook request retrieved successfully */
4856
+ 200: {
4857
+ headers: {
4858
+ [name: string]: unknown;
4859
+ };
4860
+ content: {
4861
+ "application/json": components["schemas"]["WebhookRequest"];
4862
+ };
4863
+ };
4407
4864
  };
4408
4865
  };
4409
4866
  }