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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +2 -2
  3. data/lib/leal/cards/types/create_cards_request_card.rb +2 -0
  4. data/lib/leal/cards/types/create_cards_response.rb +2 -0
  5. data/lib/leal/cards/types/get_cards_response.rb +2 -0
  6. data/lib/leal/cards/types/list_cards_response_item.rb +2 -0
  7. data/lib/leal/cards/types/update_cards_request_card.rb +2 -0
  8. data/lib/leal/cards/types/update_cards_response.rb +2 -0
  9. data/lib/leal/client.rb +6 -1
  10. data/lib/leal/version.rb +1 -1
  11. data/lib/leal/webhook_subscriptions/client.rb +316 -0
  12. data/lib/leal/webhook_subscriptions/types/delete_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
  13. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +13 -0
  14. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +41 -0
  15. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_request.rb +13 -0
  16. data/lib/leal/webhook_subscriptions/types/get_api_v1accounts_account_id_webhook_subscriptions_response_item.rb +39 -0
  17. data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_request.rb +25 -0
  18. data/lib/leal/webhook_subscriptions/types/patch_api_v1accounts_account_id_webhook_subscriptions_id_response.rb +39 -0
  19. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_request.rb +13 -0
  20. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_rotate_secret_response.rb +41 -0
  21. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_request.rb +13 -0
  22. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_id_test_response.rb +17 -0
  23. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_request.rb +23 -0
  24. data/lib/leal/webhook_subscriptions/types/post_api_v1accounts_account_id_webhook_subscriptions_response.rb +41 -0
  25. data/lib/leal.rb +14 -0
  26. data/reference.md +602 -0
  27. metadata +16 -2
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module WebhookSubscriptions
5
+ module Types
6
+ class PostAPIV1AccountsAccountIDWebhookSubscriptionsIDRotateSecretResponse < 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
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module WebhookSubscriptions
5
+ module Types
6
+ class PostAPIV1AccountsAccountIDWebhookSubscriptionsIDTestRequest < Internal::Types::Model
7
+ field :account_id, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :id, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leal
4
+ module WebhookSubscriptions
5
+ module Types
6
+ class PostAPIV1AccountsAccountIDWebhookSubscriptionsIDTestResponse < Internal::Types::Model
7
+ field :delivered, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :error, -> { String }, optional: false, nullable: false
10
+
11
+ field :event_id, -> { String }, optional: false, nullable: false
12
+
13
+ field :status, -> { Integer }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -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"