whop_sdk 0.0.14 → 0.0.16

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +8 -0
  5. data/lib/whop_sdk/models/checkout_configuration.rb +9 -1
  6. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
  7. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +9 -1
  8. data/lib/whop_sdk/models/course.rb +57 -1
  9. data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
  10. data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
  11. data/lib/whop_sdk/models/experience.rb +9 -1
  12. data/lib/whop_sdk/models/experience_create_params.rb +9 -1
  13. data/lib/whop_sdk/models/experience_list_response.rb +9 -1
  14. data/lib/whop_sdk/models/experience_update_params.rb +9 -1
  15. data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
  16. data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
  17. data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
  18. data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
  19. data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
  20. data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
  21. data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
  22. data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
  23. data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
  24. data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
  25. data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
  26. data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
  27. data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
  28. data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
  29. data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
  30. data/lib/whop_sdk/models.rb +14 -0
  31. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  32. data/lib/whop_sdk/resources/experiences.rb +6 -2
  33. data/lib/whop_sdk/resources/fee_markups.rb +112 -0
  34. data/lib/whop_sdk/resources/payment_methods.rb +2 -2
  35. data/lib/whop_sdk/resources/payments.rb +35 -0
  36. data/lib/whop_sdk/resources/payout_methods.rb +49 -0
  37. data/lib/whop_sdk/resources/withdrawals.rb +34 -0
  38. data/lib/whop_sdk/version.rb +1 -1
  39. data/lib/whop_sdk.rb +15 -0
  40. data/rbi/whop_sdk/client.rbi +6 -0
  41. data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
  42. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
  43. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
  44. data/rbi/whop_sdk/models/course.rbi +115 -3
  45. data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
  46. data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
  47. data/rbi/whop_sdk/models/experience.rbi +8 -0
  48. data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
  49. data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
  50. data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
  51. data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
  52. data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
  53. data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
  54. data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
  55. data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
  56. data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
  57. data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
  58. data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
  59. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
  60. data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
  61. data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
  62. data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
  63. data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
  64. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
  65. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
  66. data/rbi/whop_sdk/models.rbi +14 -0
  67. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  68. data/rbi/whop_sdk/resources/experiences.rbi +6 -0
  69. data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
  70. data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
  71. data/rbi/whop_sdk/resources/payments.rbi +34 -0
  72. data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
  73. data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
  74. data/sig/whop_sdk/client.rbs +4 -0
  75. data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
  76. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  77. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
  78. data/sig/whop_sdk/models/course.rbs +45 -3
  79. data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
  80. data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
  81. data/sig/whop_sdk/models/experience.rbs +5 -0
  82. data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
  83. data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
  84. data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
  85. data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
  86. data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
  87. data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
  88. data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
  89. data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
  90. data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
  91. data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
  92. data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
  93. data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
  94. data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
  95. data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
  96. data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
  97. data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
  98. data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
  99. data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
  100. data/sig/whop_sdk/models.rbs +14 -0
  101. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  102. data/sig/whop_sdk/resources/experiences.rbs +2 -0
  103. data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
  104. data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
  105. data/sig/whop_sdk/resources/payments.rbs +9 -0
  106. data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
  107. data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
  108. metadata +47 -2
@@ -0,0 +1,83 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class FeeMarkupCreateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::FeeMarkupCreateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The ID (tag) of the company you want to update the fee markup for.
15
+ sig { returns(String) }
16
+ attr_accessor :company_id
17
+
18
+ # The type of fee this markup applies to.
19
+ sig { returns(WhopSDK::FeeMarkupType::OrSymbol) }
20
+ attr_accessor :fee_type
21
+
22
+ # The fixed fee in USD to charge (0-50).
23
+ sig { returns(T.nilable(Float)) }
24
+ attr_accessor :fixed_fee_usd
25
+
26
+ # Custom metadata to attach to this fee markup.
27
+ sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
28
+ attr_accessor :metadata
29
+
30
+ # Internal notes about this fee markup.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :notes
33
+
34
+ # The percentage fee to charge (0-25).
35
+ sig { returns(T.nilable(Float)) }
36
+ attr_accessor :percentage_fee
37
+
38
+ sig do
39
+ params(
40
+ company_id: String,
41
+ fee_type: WhopSDK::FeeMarkupType::OrSymbol,
42
+ fixed_fee_usd: T.nilable(Float),
43
+ metadata: T.nilable(T::Hash[Symbol, T.anything]),
44
+ notes: T.nilable(String),
45
+ percentage_fee: T.nilable(Float),
46
+ request_options: WhopSDK::RequestOptions::OrHash
47
+ ).returns(T.attached_class)
48
+ end
49
+ def self.new(
50
+ # The ID (tag) of the company you want to update the fee markup for.
51
+ company_id:,
52
+ # The type of fee this markup applies to.
53
+ fee_type:,
54
+ # The fixed fee in USD to charge (0-50).
55
+ fixed_fee_usd: nil,
56
+ # Custom metadata to attach to this fee markup.
57
+ metadata: nil,
58
+ # Internal notes about this fee markup.
59
+ notes: nil,
60
+ # The percentage fee to charge (0-25).
61
+ percentage_fee: nil,
62
+ request_options: {}
63
+ )
64
+ end
65
+
66
+ sig do
67
+ override.returns(
68
+ {
69
+ company_id: String,
70
+ fee_type: WhopSDK::FeeMarkupType::OrSymbol,
71
+ fixed_fee_usd: T.nilable(Float),
72
+ metadata: T.nilable(T::Hash[Symbol, T.anything]),
73
+ notes: T.nilable(String),
74
+ percentage_fee: T.nilable(Float),
75
+ request_options: WhopSDK::RequestOptions
76
+ }
77
+ )
78
+ end
79
+ def to_hash
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,89 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class FeeMarkupCreateResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::FeeMarkupCreateResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The unique identifier of the fee markup.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # When this fee markup was created.
19
+ sig { returns(Time) }
20
+ attr_accessor :created_at
21
+
22
+ # The type of fee this markup applies to.
23
+ sig { returns(WhopSDK::FeeMarkupType::TaggedSymbol) }
24
+ attr_accessor :fee_type
25
+
26
+ # The fixed fee in USD to charge (0-50).
27
+ sig { returns(T.nilable(Float)) }
28
+ attr_accessor :fixed_fee_usd
29
+
30
+ # Internal notes about this fee markup.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :notes
33
+
34
+ # The percentage fee to charge (0-25).
35
+ sig { returns(T.nilable(Float)) }
36
+ attr_accessor :percentage_fee
37
+
38
+ # When this fee markup was last updated.
39
+ sig { returns(Time) }
40
+ attr_accessor :updated_at
41
+
42
+ # Represents a fee markup configuration for a company
43
+ sig do
44
+ params(
45
+ id: String,
46
+ created_at: Time,
47
+ fee_type: WhopSDK::FeeMarkupType::OrSymbol,
48
+ fixed_fee_usd: T.nilable(Float),
49
+ notes: T.nilable(String),
50
+ percentage_fee: T.nilable(Float),
51
+ updated_at: Time
52
+ ).returns(T.attached_class)
53
+ end
54
+ def self.new(
55
+ # The unique identifier of the fee markup.
56
+ id:,
57
+ # When this fee markup was created.
58
+ created_at:,
59
+ # The type of fee this markup applies to.
60
+ fee_type:,
61
+ # The fixed fee in USD to charge (0-50).
62
+ fixed_fee_usd:,
63
+ # Internal notes about this fee markup.
64
+ notes:,
65
+ # The percentage fee to charge (0-25).
66
+ percentage_fee:,
67
+ # When this fee markup was last updated.
68
+ updated_at:
69
+ )
70
+ end
71
+
72
+ sig do
73
+ override.returns(
74
+ {
75
+ id: String,
76
+ created_at: Time,
77
+ fee_type: WhopSDK::FeeMarkupType::TaggedSymbol,
78
+ fixed_fee_usd: T.nilable(Float),
79
+ notes: T.nilable(String),
80
+ percentage_fee: T.nilable(Float),
81
+ updated_at: Time
82
+ }
83
+ )
84
+ end
85
+ def to_hash
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class FeeMarkupDeleteParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::FeeMarkupDeleteParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: WhopSDK::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,8 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ FeeMarkupDeleteResponse =
6
+ T.let(T::Boolean, WhopSDK::Internal::Type::Converter)
7
+ end
8
+ end
@@ -0,0 +1,77 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class FeeMarkupListParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::FeeMarkupListParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The ID (tag) of the company you want to list the fee markups for. If you pass
15
+ # your platform account, you will get the platform default markups.
16
+ sig { returns(String) }
17
+ attr_accessor :company_id
18
+
19
+ # Returns the elements in the list that come after the specified cursor.
20
+ sig { returns(T.nilable(String)) }
21
+ attr_accessor :after
22
+
23
+ # Returns the elements in the list that come before the specified cursor.
24
+ sig { returns(T.nilable(String)) }
25
+ attr_accessor :before
26
+
27
+ # Returns the first _n_ elements from the list.
28
+ sig { returns(T.nilable(Integer)) }
29
+ attr_accessor :first
30
+
31
+ # Returns the last _n_ elements from the list.
32
+ sig { returns(T.nilable(Integer)) }
33
+ attr_accessor :last
34
+
35
+ sig do
36
+ params(
37
+ company_id: String,
38
+ after: T.nilable(String),
39
+ before: T.nilable(String),
40
+ first: T.nilable(Integer),
41
+ last: T.nilable(Integer),
42
+ request_options: WhopSDK::RequestOptions::OrHash
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ # The ID (tag) of the company you want to list the fee markups for. If you pass
47
+ # your platform account, you will get the platform default markups.
48
+ company_id:,
49
+ # Returns the elements in the list that come after the specified cursor.
50
+ after: nil,
51
+ # Returns the elements in the list that come before the specified cursor.
52
+ before: nil,
53
+ # Returns the first _n_ elements from the list.
54
+ first: nil,
55
+ # Returns the last _n_ elements from the list.
56
+ last: nil,
57
+ request_options: {}
58
+ )
59
+ end
60
+
61
+ sig do
62
+ override.returns(
63
+ {
64
+ company_id: String,
65
+ after: T.nilable(String),
66
+ before: T.nilable(String),
67
+ first: T.nilable(Integer),
68
+ last: T.nilable(Integer),
69
+ request_options: WhopSDK::RequestOptions
70
+ }
71
+ )
72
+ end
73
+ def to_hash
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,89 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class FeeMarkupListResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::FeeMarkupListResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The unique identifier of the fee markup.
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # When this fee markup was created.
19
+ sig { returns(Time) }
20
+ attr_accessor :created_at
21
+
22
+ # The type of fee this markup applies to.
23
+ sig { returns(WhopSDK::FeeMarkupType::TaggedSymbol) }
24
+ attr_accessor :fee_type
25
+
26
+ # The fixed fee in USD to charge (0-50).
27
+ sig { returns(T.nilable(Float)) }
28
+ attr_accessor :fixed_fee_usd
29
+
30
+ # Internal notes about this fee markup.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :notes
33
+
34
+ # The percentage fee to charge (0-25).
35
+ sig { returns(T.nilable(Float)) }
36
+ attr_accessor :percentage_fee
37
+
38
+ # When this fee markup was last updated.
39
+ sig { returns(Time) }
40
+ attr_accessor :updated_at
41
+
42
+ # Represents a fee markup configuration for a company
43
+ sig do
44
+ params(
45
+ id: String,
46
+ created_at: Time,
47
+ fee_type: WhopSDK::FeeMarkupType::OrSymbol,
48
+ fixed_fee_usd: T.nilable(Float),
49
+ notes: T.nilable(String),
50
+ percentage_fee: T.nilable(Float),
51
+ updated_at: Time
52
+ ).returns(T.attached_class)
53
+ end
54
+ def self.new(
55
+ # The unique identifier of the fee markup.
56
+ id:,
57
+ # When this fee markup was created.
58
+ created_at:,
59
+ # The type of fee this markup applies to.
60
+ fee_type:,
61
+ # The fixed fee in USD to charge (0-50).
62
+ fixed_fee_usd:,
63
+ # Internal notes about this fee markup.
64
+ notes:,
65
+ # The percentage fee to charge (0-25).
66
+ percentage_fee:,
67
+ # When this fee markup was last updated.
68
+ updated_at:
69
+ )
70
+ end
71
+
72
+ sig do
73
+ override.returns(
74
+ {
75
+ id: String,
76
+ created_at: Time,
77
+ fee_type: WhopSDK::FeeMarkupType::TaggedSymbol,
78
+ fixed_fee_usd: T.nilable(Float),
79
+ notes: T.nilable(String),
80
+ percentage_fee: T.nilable(Float),
81
+ updated_at: Time
82
+ }
83
+ )
84
+ end
85
+ def to_hash
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,37 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The types of fee markups that can be configured
6
+ module FeeMarkupType
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::FeeMarkupType) }
10
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
11
+
12
+ CRYPTO_WITHDRAWAL_MARKUP =
13
+ T.let(:crypto_withdrawal_markup, WhopSDK::FeeMarkupType::TaggedSymbol)
14
+ RTP_WITHDRAWAL_MARKUP =
15
+ T.let(:rtp_withdrawal_markup, WhopSDK::FeeMarkupType::TaggedSymbol)
16
+ NEXT_DAY_BANK_WITHDRAWAL_MARKUP =
17
+ T.let(
18
+ :next_day_bank_withdrawal_markup,
19
+ WhopSDK::FeeMarkupType::TaggedSymbol
20
+ )
21
+ BANK_WIRE_WITHDRAWAL_MARKUP =
22
+ T.let(
23
+ :bank_wire_withdrawal_markup,
24
+ WhopSDK::FeeMarkupType::TaggedSymbol
25
+ )
26
+ DIGITAL_WALLET_WITHDRAWAL_MARKUP =
27
+ T.let(
28
+ :digital_wallet_withdrawal_markup,
29
+ WhopSDK::FeeMarkupType::TaggedSymbol
30
+ )
31
+
32
+ sig { override.returns(T::Array[WhopSDK::FeeMarkupType::TaggedSymbol]) }
33
+ def self.values
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,67 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class PaymentListFeesParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::PaymentListFeesParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # Returns the elements in the list that come after the specified cursor.
15
+ sig { returns(T.nilable(String)) }
16
+ attr_accessor :after
17
+
18
+ # Returns the elements in the list that come before the specified cursor.
19
+ sig { returns(T.nilable(String)) }
20
+ attr_accessor :before
21
+
22
+ # Returns the first _n_ elements from the list.
23
+ sig { returns(T.nilable(Integer)) }
24
+ attr_accessor :first
25
+
26
+ # Returns the last _n_ elements from the list.
27
+ sig { returns(T.nilable(Integer)) }
28
+ attr_accessor :last
29
+
30
+ sig do
31
+ params(
32
+ after: T.nilable(String),
33
+ before: T.nilable(String),
34
+ first: T.nilable(Integer),
35
+ last: T.nilable(Integer),
36
+ request_options: WhopSDK::RequestOptions::OrHash
37
+ ).returns(T.attached_class)
38
+ end
39
+ def self.new(
40
+ # Returns the elements in the list that come after the specified cursor.
41
+ after: nil,
42
+ # Returns the elements in the list that come before the specified cursor.
43
+ before: nil,
44
+ # Returns the first _n_ elements from the list.
45
+ first: nil,
46
+ # Returns the last _n_ elements from the list.
47
+ last: nil,
48
+ request_options: {}
49
+ )
50
+ end
51
+
52
+ sig do
53
+ override.returns(
54
+ {
55
+ after: T.nilable(String),
56
+ before: T.nilable(String),
57
+ first: T.nilable(Integer),
58
+ last: T.nilable(Integer),
59
+ request_options: WhopSDK::RequestOptions
60
+ }
61
+ )
62
+ end
63
+ def to_hash
64
+ end
65
+ end
66
+ end
67
+ end