leal 0.0.13 → 0.0.14

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.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +2 -2
  3. data/lib/leal/client.rb +6 -1
  4. data/lib/leal/version.rb +1 -1
  5. data/lib/leal/webhook_subscriptions/client.rb +316 -0
  6. data/lib/leal/webhook_subscriptions/types/delete_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
  7. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
  8. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +41 -0
  9. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_request.rb +13 -0
  10. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_response_item.rb +39 -0
  11. data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +25 -0
  12. data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +39 -0
  13. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_request.rb +13 -0
  14. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_response.rb +41 -0
  15. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_request.rb +13 -0
  16. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_response.rb +17 -0
  17. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_request.rb +23 -0
  18. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_response.rb +41 -0
  19. data/lib/leal.rb +14 -0
  20. data/reference.md +602 -0
  21. metadata +16 -2
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module WebhookSubscriptions
5
+ module Types
6
+ class PostAPIV1AccountsAccountIDWebhookSubscriptionsRequest < Internal::Types::Model
7
+ field :account_id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :description, -> { String }, optional: true, nullable: false
10
+
11
+ field :enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
12
+
13
+ field :event, -> { String }, optional: true, nullable: false
14
+
15
+ field :events, -> { Internal::Types::Array[String] }, optional: true, nullable: false
16
+
17
+ field :payload_format, -> { String }, optional: true, nullable: false
18
+
19
+ field :target_url, -> { String }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module WebhookSubscriptions
5
+ module Types
6
+ class PostAPIV1AccountsAccountIDWebhookSubscriptionsResponse < Internal::Types::Model
7
+ field :account_id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :created_at, -> { String }, optional: false, nullable: false
10
+
11
+ field :description, -> { String }, optional: false, nullable: false
12
+
13
+ field :disabled_at, -> { String }, optional: false, nullable: false
14
+
15
+ field :disabled_reason, -> { String }, optional: false, nullable: false
16
+
17
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
18
+
19
+ field :event, -> { String }, optional: false, nullable: false
20
+
21
+ field :events, -> { Internal::Types::Array[String] }, optional: false, nullable: false
22
+
23
+ field :id, -> { Integer }, optional: false, nullable: false
24
+
25
+ field :last_delivery_at, -> { String }, optional: false, nullable: false
26
+
27
+ field :last_delivery_error, -> { String }, optional: false, nullable: false
28
+
29
+ field :last_delivery_status, -> { Integer }, optional: false, nullable: false
30
+
31
+ field :payload_format, -> { String }, optional: false, nullable: false
32
+
33
+ field :secret, -> { String }, optional: false, nullable: false
34
+
35
+ field :target_url, -> { String }, optional: false, nullable: false
36
+
37
+ field :updated_at, -> { String }, optional: false, nullable: false
38
+ end
39
+ end
40
+ end
41
+ end
data/lib/leal.rb CHANGED
@@ -75,6 +75,12 @@ require_relative "leal/rewards/types/create_rewards_response"
75
75
  require_relative "leal/rewards/types/get_rewards_response"
76
76
  require_relative "leal/rewards/types/update_rewards_request_reward"
77
77
  require_relative "leal/rewards/types/update_rewards_response"
78
+ require_relative "leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_response_item"
79
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_response"
80
+ require_relative "leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_response"
81
+ require_relative "leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_response"
82
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_response"
83
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_response"
78
84
  require_relative "leal/status/types/check_status_response_rate_limit"
79
85
  require_relative "leal/status/types/check_status_response_versioning"
80
86
  require_relative "leal/status/types/check_status_response"
@@ -117,5 +123,13 @@ require_relative "leal/rewards/types/create_rewards_request"
117
123
  require_relative "leal/rewards/types/get_rewards_request"
118
124
  require_relative "leal/rewards/types/delete_rewards_request"
119
125
  require_relative "leal/rewards/types/update_rewards_request"
126
+ require_relative "leal/webhook_subscriptions/client"
127
+ require_relative "leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_request"
128
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_request"
129
+ require_relative "leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_request"
130
+ require_relative "leal/webhook_subscriptions/types/delete_api_v1accounts_account_id_webhook_subscriptions_id_request"
131
+ require_relative "leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_request"
132
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_request"
133
+ require_relative "leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_request"
120
134
  require_relative "leal/status/client"
121
135
  require_relative "leal/environment"
data/reference.md CHANGED
@@ -2349,6 +2349,608 @@ client.rewards.update(
2349
2349
  </dl>
2350
2350
 
2351
2351
 
2352
+ </dd>
2353
+ </dl>
2354
+ </details>
2355
+
2356
+ ## Webhook Subscriptions
2357
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">get_api_v1accounts_account_id_webhook_subscriptions</a>(account_id:) -> Internal::Types::Array[Leal::WebhookSubscriptions::Types::GetAPIV1AccountsAccountIDWebhookSubscriptionsResponseItem]</code></summary>
2358
+ <dl>
2359
+ <dd>
2360
+
2361
+ #### 📝 Description
2362
+
2363
+ <dl>
2364
+ <dd>
2365
+
2366
+ <dl>
2367
+ <dd>
2368
+
2369
+ Returns every webhook subscription for the store, oldest first. Signing secrets are not included; fetch a single subscription to read its secret.
2370
+ </dd>
2371
+ </dl>
2372
+ </dd>
2373
+ </dl>
2374
+
2375
+ #### 🔌 Usage
2376
+
2377
+ <dl>
2378
+ <dd>
2379
+
2380
+ <dl>
2381
+ <dd>
2382
+
2383
+ ```ruby
2384
+ client.webhook_subscriptions.get_api_v1accounts_account_id_webhook_subscriptions(account_id: 1)
2385
+ ```
2386
+ </dd>
2387
+ </dl>
2388
+ </dd>
2389
+ </dl>
2390
+
2391
+ #### ⚙️ Parameters
2392
+
2393
+ <dl>
2394
+ <dd>
2395
+
2396
+ <dl>
2397
+ <dd>
2398
+
2399
+ **account_id:** `Integer` — Store (account) ID
2400
+
2401
+ </dd>
2402
+ </dl>
2403
+
2404
+ <dl>
2405
+ <dd>
2406
+
2407
+ **event:** `String` — Only return subscriptions that list this event (or `*`)
2408
+
2409
+ </dd>
2410
+ </dl>
2411
+
2412
+ <dl>
2413
+ <dd>
2414
+
2415
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2416
+
2417
+ </dd>
2418
+ </dl>
2419
+ </dd>
2420
+ </dl>
2421
+
2422
+
2423
+ </dd>
2424
+ </dl>
2425
+ </details>
2426
+
2427
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">post_api_v1accounts_account_id_webhook_subscriptions</a>(account_id:, request) -> Leal::WebhookSubscriptions::Types::PostAPIV1AccountsAccountIDWebhookSubscriptionsResponse</code></summary>
2428
+ <dl>
2429
+ <dd>
2430
+
2431
+ #### 📝 Description
2432
+
2433
+ <dl>
2434
+ <dd>
2435
+
2436
+ <dl>
2437
+ <dd>
2438
+
2439
+ Subscribes a URL to one or more events. The response includes the signing `secret`; store it to
2440
+ verify deliveries. The URL must be publicly reachable over https.
2441
+
2442
+ Events: `customer.created`, `customer.updated`, `customer_card.created`, `stamp.earned`, `stamp.removed`, `reward.unlocked`, `reward.redeemed`, or `*` for all of them.
2443
+ </dd>
2444
+ </dl>
2445
+ </dd>
2446
+ </dl>
2447
+
2448
+ #### 🔌 Usage
2449
+
2450
+ <dl>
2451
+ <dd>
2452
+
2453
+ <dl>
2454
+ <dd>
2455
+
2456
+ ```ruby
2457
+ client.webhook_subscriptions.post_api_v1accounts_account_id_webhook_subscriptions(
2458
+ account_id: 1,
2459
+ target_url: "target_url"
2460
+ )
2461
+ ```
2462
+ </dd>
2463
+ </dl>
2464
+ </dd>
2465
+ </dl>
2466
+
2467
+ #### ⚙️ Parameters
2468
+
2469
+ <dl>
2470
+ <dd>
2471
+
2472
+ <dl>
2473
+ <dd>
2474
+
2475
+ **account_id:** `Integer` — Store (account) ID
2476
+
2477
+ </dd>
2478
+ </dl>
2479
+
2480
+ <dl>
2481
+ <dd>
2482
+
2483
+ **description:** `String` — Your own label, up to 255 characters
2484
+
2485
+ </dd>
2486
+ </dl>
2487
+
2488
+ <dl>
2489
+ <dd>
2490
+
2491
+ **enabled:** `Internal::Types::Boolean` — Create the subscription disabled by passing false (defaults to true)
2492
+
2493
+ </dd>
2494
+ </dl>
2495
+
2496
+ <dl>
2497
+ <dd>
2498
+
2499
+ **event:** `String` — A single event to subscribe to. Same as `events` with one entry
2500
+
2501
+ </dd>
2502
+ </dl>
2503
+
2504
+ <dl>
2505
+ <dd>
2506
+
2507
+ **events:** `Internal::Types::Array[String]` — Events to subscribe to, or `["*"]` for every event. Required unless `event` is given
2508
+
2509
+ </dd>
2510
+ </dl>
2511
+
2512
+ <dl>
2513
+ <dd>
2514
+
2515
+ **payload_format:** `String` — `envelope` (default) or `flat`. `flat` sends the bare data object and cannot be combined with `*`
2516
+
2517
+ </dd>
2518
+ </dl>
2519
+
2520
+ <dl>
2521
+ <dd>
2522
+
2523
+ **target_url:** `String` — Public https URL that will receive the POST requests
2524
+
2525
+ </dd>
2526
+ </dl>
2527
+
2528
+ <dl>
2529
+ <dd>
2530
+
2531
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2532
+
2533
+ </dd>
2534
+ </dl>
2535
+ </dd>
2536
+ </dl>
2537
+
2538
+
2539
+ </dd>
2540
+ </dl>
2541
+ </details>
2542
+
2543
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">get_api_v1accounts_account_id_webhook_subscriptions_id</a>(account_id:, id:) -> Leal::WebhookSubscriptions::Types::GetAPIV1AccountsAccountIDWebhookSubscriptionsIDResponse</code></summary>
2544
+ <dl>
2545
+ <dd>
2546
+
2547
+ #### 📝 Description
2548
+
2549
+ <dl>
2550
+ <dd>
2551
+
2552
+ <dl>
2553
+ <dd>
2554
+
2555
+ Returns a single subscription, including its signing secret and the result of the most recent delivery.
2556
+ </dd>
2557
+ </dl>
2558
+ </dd>
2559
+ </dl>
2560
+
2561
+ #### 🔌 Usage
2562
+
2563
+ <dl>
2564
+ <dd>
2565
+
2566
+ <dl>
2567
+ <dd>
2568
+
2569
+ ```ruby
2570
+ client.webhook_subscriptions.get_api_v1accounts_account_id_webhook_subscriptions_id(
2571
+ account_id: 1,
2572
+ id: 1
2573
+ )
2574
+ ```
2575
+ </dd>
2576
+ </dl>
2577
+ </dd>
2578
+ </dl>
2579
+
2580
+ #### ⚙️ Parameters
2581
+
2582
+ <dl>
2583
+ <dd>
2584
+
2585
+ <dl>
2586
+ <dd>
2587
+
2588
+ **account_id:** `Integer` — Store (account) ID
2589
+
2590
+ </dd>
2591
+ </dl>
2592
+
2593
+ <dl>
2594
+ <dd>
2595
+
2596
+ **id:** `Integer` — Webhook subscription ID
2597
+
2598
+ </dd>
2599
+ </dl>
2600
+
2601
+ <dl>
2602
+ <dd>
2603
+
2604
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2605
+
2606
+ </dd>
2607
+ </dl>
2608
+ </dd>
2609
+ </dl>
2610
+
2611
+
2612
+ </dd>
2613
+ </dl>
2614
+ </details>
2615
+
2616
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">delete_api_v1accounts_account_id_webhook_subscriptions_id</a>(account_id:, id:) -> </code></summary>
2617
+ <dl>
2618
+ <dd>
2619
+
2620
+ #### 📝 Description
2621
+
2622
+ <dl>
2623
+ <dd>
2624
+
2625
+ <dl>
2626
+ <dd>
2627
+
2628
+ Stops deliveries and deletes the subscription. This cannot be undone.
2629
+ </dd>
2630
+ </dl>
2631
+ </dd>
2632
+ </dl>
2633
+
2634
+ #### 🔌 Usage
2635
+
2636
+ <dl>
2637
+ <dd>
2638
+
2639
+ <dl>
2640
+ <dd>
2641
+
2642
+ ```ruby
2643
+ client.webhook_subscriptions.delete_api_v1accounts_account_id_webhook_subscriptions_id(
2644
+ account_id: 1,
2645
+ id: 1
2646
+ )
2647
+ ```
2648
+ </dd>
2649
+ </dl>
2650
+ </dd>
2651
+ </dl>
2652
+
2653
+ #### ⚙️ Parameters
2654
+
2655
+ <dl>
2656
+ <dd>
2657
+
2658
+ <dl>
2659
+ <dd>
2660
+
2661
+ **account_id:** `Integer` — Store (account) ID
2662
+
2663
+ </dd>
2664
+ </dl>
2665
+
2666
+ <dl>
2667
+ <dd>
2668
+
2669
+ **id:** `Integer` — Webhook subscription ID
2670
+
2671
+ </dd>
2672
+ </dl>
2673
+
2674
+ <dl>
2675
+ <dd>
2676
+
2677
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2678
+
2679
+ </dd>
2680
+ </dl>
2681
+ </dd>
2682
+ </dl>
2683
+
2684
+
2685
+ </dd>
2686
+ </dl>
2687
+ </details>
2688
+
2689
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">patch_api_v1accounts_account_id_webhook_subscriptions_id</a>(account_id:, id:, request) -> Leal::WebhookSubscriptions::Types::PatchAPIV1AccountsAccountIDWebhookSubscriptionsIDResponse</code></summary>
2690
+ <dl>
2691
+ <dd>
2692
+
2693
+ #### 📝 Description
2694
+
2695
+ <dl>
2696
+ <dd>
2697
+
2698
+ <dl>
2699
+ <dd>
2700
+
2701
+ Changes the URL, events, label or payload format, or turns the subscription off and on. Re-enabling a subscription that was disabled for failing clears its failure state.
2702
+ </dd>
2703
+ </dl>
2704
+ </dd>
2705
+ </dl>
2706
+
2707
+ #### 🔌 Usage
2708
+
2709
+ <dl>
2710
+ <dd>
2711
+
2712
+ <dl>
2713
+ <dd>
2714
+
2715
+ ```ruby
2716
+ client.webhook_subscriptions.patch_api_v1accounts_account_id_webhook_subscriptions_id(
2717
+ account_id: 1,
2718
+ id: 1
2719
+ )
2720
+ ```
2721
+ </dd>
2722
+ </dl>
2723
+ </dd>
2724
+ </dl>
2725
+
2726
+ #### ⚙️ Parameters
2727
+
2728
+ <dl>
2729
+ <dd>
2730
+
2731
+ <dl>
2732
+ <dd>
2733
+
2734
+ **account_id:** `Integer` — Store (account) ID
2735
+
2736
+ </dd>
2737
+ </dl>
2738
+
2739
+ <dl>
2740
+ <dd>
2741
+
2742
+ **id:** `Integer` — Webhook subscription ID
2743
+
2744
+ </dd>
2745
+ </dl>
2746
+
2747
+ <dl>
2748
+ <dd>
2749
+
2750
+ **description:** `String` — Your own label, up to 255 characters
2751
+
2752
+ </dd>
2753
+ </dl>
2754
+
2755
+ <dl>
2756
+ <dd>
2757
+
2758
+ **enabled:** `Internal::Types::Boolean` — false to pause deliveries, true to resume them
2759
+
2760
+ </dd>
2761
+ </dl>
2762
+
2763
+ <dl>
2764
+ <dd>
2765
+
2766
+ **event:** `String` — A single event. Same as `events` with one entry
2767
+
2768
+ </dd>
2769
+ </dl>
2770
+
2771
+ <dl>
2772
+ <dd>
2773
+
2774
+ **events:** `Internal::Types::Array[String]` — Replaces the list of events, or `["*"]` for every event
2775
+
2776
+ </dd>
2777
+ </dl>
2778
+
2779
+ <dl>
2780
+ <dd>
2781
+
2782
+ **payload_format:** `String` — `envelope` or `flat`
2783
+
2784
+ </dd>
2785
+ </dl>
2786
+
2787
+ <dl>
2788
+ <dd>
2789
+
2790
+ **target_url:** `String` — Public https URL that will receive the POST requests
2791
+
2792
+ </dd>
2793
+ </dl>
2794
+
2795
+ <dl>
2796
+ <dd>
2797
+
2798
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2799
+
2800
+ </dd>
2801
+ </dl>
2802
+ </dd>
2803
+ </dl>
2804
+
2805
+
2806
+ </dd>
2807
+ </dl>
2808
+ </details>
2809
+
2810
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret</a>(account_id:, id:) -> Leal::WebhookSubscriptions::Types::PostAPIV1AccountsAccountIDWebhookSubscriptionsIDRotateSecretResponse</code></summary>
2811
+ <dl>
2812
+ <dd>
2813
+
2814
+ #### 📝 Description
2815
+
2816
+ <dl>
2817
+ <dd>
2818
+
2819
+ <dl>
2820
+ <dd>
2821
+
2822
+ Replaces the subscription's signing secret. Deliveries are signed with the new secret straight away, so update your receiver at the same time.
2823
+ </dd>
2824
+ </dl>
2825
+ </dd>
2826
+ </dl>
2827
+
2828
+ #### 🔌 Usage
2829
+
2830
+ <dl>
2831
+ <dd>
2832
+
2833
+ <dl>
2834
+ <dd>
2835
+
2836
+ ```ruby
2837
+ client.webhook_subscriptions.post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret(
2838
+ account_id: 1,
2839
+ id: 1
2840
+ )
2841
+ ```
2842
+ </dd>
2843
+ </dl>
2844
+ </dd>
2845
+ </dl>
2846
+
2847
+ #### ⚙️ Parameters
2848
+
2849
+ <dl>
2850
+ <dd>
2851
+
2852
+ <dl>
2853
+ <dd>
2854
+
2855
+ **account_id:** `Integer` — Store (account) ID
2856
+
2857
+ </dd>
2858
+ </dl>
2859
+
2860
+ <dl>
2861
+ <dd>
2862
+
2863
+ **id:** `Integer` — Webhook subscription ID
2864
+
2865
+ </dd>
2866
+ </dl>
2867
+
2868
+ <dl>
2869
+ <dd>
2870
+
2871
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2872
+
2873
+ </dd>
2874
+ </dl>
2875
+ </dd>
2876
+ </dl>
2877
+
2878
+
2879
+ </dd>
2880
+ </dl>
2881
+ </details>
2882
+
2883
+ <details><summary><code>client.webhook_subscriptions.<a href="/lib/leal/webhook_subscriptions/client.rb">post_api_v1accounts_account_id_webhook_subscriptions_id_test</a>(account_id:, id:) -> Leal::WebhookSubscriptions::Types::PostAPIV1AccountsAccountIDWebhookSubscriptionsIDTestResponse</code></summary>
2884
+ <dl>
2885
+ <dd>
2886
+
2887
+ #### 📝 Description
2888
+
2889
+ <dl>
2890
+ <dd>
2891
+
2892
+ <dl>
2893
+ <dd>
2894
+
2895
+ Immediately sends a signed `webhook.test` event to the subscription's URL and reports what
2896
+ happened, so you can check your endpoint and signature verification without waiting for real
2897
+ activity. Test events are not retried and do not count towards disabling the subscription.
2898
+ </dd>
2899
+ </dl>
2900
+ </dd>
2901
+ </dl>
2902
+
2903
+ #### 🔌 Usage
2904
+
2905
+ <dl>
2906
+ <dd>
2907
+
2908
+ <dl>
2909
+ <dd>
2910
+
2911
+ ```ruby
2912
+ client.webhook_subscriptions.post_api_v1accounts_account_id_webhook_subscriptions_id_test(
2913
+ account_id: 1,
2914
+ id: 1
2915
+ )
2916
+ ```
2917
+ </dd>
2918
+ </dl>
2919
+ </dd>
2920
+ </dl>
2921
+
2922
+ #### ⚙️ Parameters
2923
+
2924
+ <dl>
2925
+ <dd>
2926
+
2927
+ <dl>
2928
+ <dd>
2929
+
2930
+ **account_id:** `Integer` — Store (account) ID
2931
+
2932
+ </dd>
2933
+ </dl>
2934
+
2935
+ <dl>
2936
+ <dd>
2937
+
2938
+ **id:** `Integer` — Webhook subscription ID
2939
+
2940
+ </dd>
2941
+ </dl>
2942
+
2943
+ <dl>
2944
+ <dd>
2945
+
2946
+ **request_options:** `Leal::WebhookSubscriptions::RequestOptions`
2947
+
2948
+ </dd>
2949
+ </dl>
2950
+ </dd>
2951
+ </dl>
2952
+
2953
+
2352
2954
  </dd>
2353
2955
  </dl>
2354
2956
  </details>