leal 0.0.12 → 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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +2 -2
- data/lib/leal/cards/types/create_cards_request_card.rb +2 -0
- data/lib/leal/cards/types/create_cards_response.rb +2 -0
- data/lib/leal/cards/types/get_cards_response.rb +2 -0
- data/lib/leal/cards/types/list_cards_response_item.rb +2 -0
- data/lib/leal/cards/types/update_cards_request_card.rb +2 -0
- data/lib/leal/cards/types/update_cards_response.rb +2 -0
- data/lib/leal/client.rb +6 -1
- data/lib/leal/version.rb +1 -1
- data/lib/leal/webhook_subscriptions/client.rb +316 -0
- data/lib/leal/webhook_subscriptions/types/delete_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
- data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
- data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +41 -0
- data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_request.rb +13 -0
- data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_response_item.rb +39 -0
- data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +25 -0
- data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +39 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_request.rb +13 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_response.rb +41 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_request.rb +13 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_response.rb +17 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_request.rb +23 -0
- data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_response.rb +41 -0
- data/lib/leal.rb +14 -0
- data/reference.md +602 -0
- metadata +16 -2
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>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: leal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: The Leal Ruby library provides convenient access to the Leal API from
|
|
14
14
|
Ruby.
|
|
@@ -142,6 +142,20 @@ files:
|
|
|
142
142
|
- lib/leal/types/error.rb
|
|
143
143
|
- lib/leal/types/error_errors.rb
|
|
144
144
|
- lib/leal/version.rb
|
|
145
|
+
- lib/leal/webhook_subscriptions/client.rb
|
|
146
|
+
- lib/leal/webhook_subscriptions/types/delete_api_v1accounts_account_id_webhook_subscriptions_id_request.rb
|
|
147
|
+
- lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_request.rb
|
|
148
|
+
- lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_response.rb
|
|
149
|
+
- lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_request.rb
|
|
150
|
+
- lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_response_item.rb
|
|
151
|
+
- lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_request.rb
|
|
152
|
+
- lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_response.rb
|
|
153
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_request.rb
|
|
154
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_response.rb
|
|
155
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_request.rb
|
|
156
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_response.rb
|
|
157
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_request.rb
|
|
158
|
+
- lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_response.rb
|
|
145
159
|
- reference.md
|
|
146
160
|
homepage:
|
|
147
161
|
licenses: []
|