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,51 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_create_params =
4
+ {
5
+ company_id: String,
6
+ fee_type: WhopSDK::Models::fee_markup_type,
7
+ fixed_fee_usd: Float?,
8
+ metadata: ::Hash[Symbol, top]?,
9
+ notes: String?,
10
+ percentage_fee: Float?
11
+ }
12
+ & WhopSDK::Internal::Type::request_parameters
13
+
14
+ class FeeMarkupCreateParams < WhopSDK::Internal::Type::BaseModel
15
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
16
+ include WhopSDK::Internal::Type::RequestParameters
17
+
18
+ attr_accessor company_id: String
19
+
20
+ attr_accessor fee_type: WhopSDK::Models::fee_markup_type
21
+
22
+ attr_accessor fixed_fee_usd: Float?
23
+
24
+ attr_accessor metadata: ::Hash[Symbol, top]?
25
+
26
+ attr_accessor notes: String?
27
+
28
+ attr_accessor percentage_fee: Float?
29
+
30
+ def initialize: (
31
+ company_id: String,
32
+ fee_type: WhopSDK::Models::fee_markup_type,
33
+ ?fixed_fee_usd: Float?,
34
+ ?metadata: ::Hash[Symbol, top]?,
35
+ ?notes: String?,
36
+ ?percentage_fee: Float?,
37
+ ?request_options: WhopSDK::request_opts
38
+ ) -> void
39
+
40
+ def to_hash: -> {
41
+ company_id: String,
42
+ fee_type: WhopSDK::Models::fee_markup_type,
43
+ fixed_fee_usd: Float?,
44
+ metadata: ::Hash[Symbol, top]?,
45
+ notes: String?,
46
+ percentage_fee: Float?,
47
+ request_options: WhopSDK::RequestOptions
48
+ }
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,50 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_create_response =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ fee_type: WhopSDK::Models::fee_markup_type,
8
+ fixed_fee_usd: Float?,
9
+ notes: String?,
10
+ percentage_fee: Float?,
11
+ updated_at: Time
12
+ }
13
+
14
+ class FeeMarkupCreateResponse < WhopSDK::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor created_at: Time
18
+
19
+ attr_accessor fee_type: WhopSDK::Models::fee_markup_type
20
+
21
+ attr_accessor fixed_fee_usd: Float?
22
+
23
+ attr_accessor notes: String?
24
+
25
+ attr_accessor percentage_fee: Float?
26
+
27
+ attr_accessor updated_at: Time
28
+
29
+ def initialize: (
30
+ id: String,
31
+ created_at: Time,
32
+ fee_type: WhopSDK::Models::fee_markup_type,
33
+ fixed_fee_usd: Float?,
34
+ notes: String?,
35
+ percentage_fee: Float?,
36
+ updated_at: Time
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ id: String,
41
+ created_at: Time,
42
+ fee_type: WhopSDK::Models::fee_markup_type,
43
+ fixed_fee_usd: Float?,
44
+ notes: String?,
45
+ percentage_fee: Float?,
46
+ updated_at: Time
47
+ }
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_delete_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class FeeMarkupDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ module WhopSDK
2
+ module Models
3
+ FeeMarkupDeleteResponse: WhopSDK::Internal::Type::Converter
4
+ end
5
+ end
@@ -0,0 +1,46 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_list_params =
4
+ {
5
+ company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ first: Integer?,
9
+ last: Integer?
10
+ }
11
+ & WhopSDK::Internal::Type::request_parameters
12
+
13
+ class FeeMarkupListParams < WhopSDK::Internal::Type::BaseModel
14
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
15
+ include WhopSDK::Internal::Type::RequestParameters
16
+
17
+ attr_accessor company_id: String
18
+
19
+ attr_accessor after: String?
20
+
21
+ attr_accessor before: String?
22
+
23
+ attr_accessor first: Integer?
24
+
25
+ attr_accessor last: Integer?
26
+
27
+ def initialize: (
28
+ company_id: String,
29
+ ?after: String?,
30
+ ?before: String?,
31
+ ?first: Integer?,
32
+ ?last: Integer?,
33
+ ?request_options: WhopSDK::request_opts
34
+ ) -> void
35
+
36
+ def to_hash: -> {
37
+ company_id: String,
38
+ after: String?,
39
+ before: String?,
40
+ first: Integer?,
41
+ last: Integer?,
42
+ request_options: WhopSDK::RequestOptions
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,50 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_list_response =
4
+ {
5
+ id: String,
6
+ created_at: Time,
7
+ fee_type: WhopSDK::Models::fee_markup_type,
8
+ fixed_fee_usd: Float?,
9
+ notes: String?,
10
+ percentage_fee: Float?,
11
+ updated_at: Time
12
+ }
13
+
14
+ class FeeMarkupListResponse < WhopSDK::Internal::Type::BaseModel
15
+ attr_accessor id: String
16
+
17
+ attr_accessor created_at: Time
18
+
19
+ attr_accessor fee_type: WhopSDK::Models::fee_markup_type
20
+
21
+ attr_accessor fixed_fee_usd: Float?
22
+
23
+ attr_accessor notes: String?
24
+
25
+ attr_accessor percentage_fee: Float?
26
+
27
+ attr_accessor updated_at: Time
28
+
29
+ def initialize: (
30
+ id: String,
31
+ created_at: Time,
32
+ fee_type: WhopSDK::Models::fee_markup_type,
33
+ fixed_fee_usd: Float?,
34
+ notes: String?,
35
+ percentage_fee: Float?,
36
+ updated_at: Time
37
+ ) -> void
38
+
39
+ def to_hash: -> {
40
+ id: String,
41
+ created_at: Time,
42
+ fee_type: WhopSDK::Models::fee_markup_type,
43
+ fixed_fee_usd: Float?,
44
+ notes: String?,
45
+ percentage_fee: Float?,
46
+ updated_at: Time
47
+ }
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,22 @@
1
+ module WhopSDK
2
+ module Models
3
+ type fee_markup_type =
4
+ :crypto_withdrawal_markup
5
+ | :rtp_withdrawal_markup
6
+ | :next_day_bank_withdrawal_markup
7
+ | :bank_wire_withdrawal_markup
8
+ | :digital_wallet_withdrawal_markup
9
+
10
+ module FeeMarkupType
11
+ extend WhopSDK::Internal::Type::Enum
12
+
13
+ CRYPTO_WITHDRAWAL_MARKUP: :crypto_withdrawal_markup
14
+ RTP_WITHDRAWAL_MARKUP: :rtp_withdrawal_markup
15
+ NEXT_DAY_BANK_WITHDRAWAL_MARKUP: :next_day_bank_withdrawal_markup
16
+ BANK_WIRE_WITHDRAWAL_MARKUP: :bank_wire_withdrawal_markup
17
+ DIGITAL_WALLET_WITHDRAWAL_MARKUP: :digital_wallet_withdrawal_markup
18
+
19
+ def self?.values: -> ::Array[WhopSDK::Models::fee_markup_type]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,36 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payment_list_fees_params =
4
+ { after: String?, before: String?, first: Integer?, last: Integer? }
5
+ & WhopSDK::Internal::Type::request_parameters
6
+
7
+ class PaymentListFeesParams < WhopSDK::Internal::Type::BaseModel
8
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
9
+ include WhopSDK::Internal::Type::RequestParameters
10
+
11
+ attr_accessor after: String?
12
+
13
+ attr_accessor before: String?
14
+
15
+ attr_accessor first: Integer?
16
+
17
+ attr_accessor last: Integer?
18
+
19
+ def initialize: (
20
+ ?after: String?,
21
+ ?before: String?,
22
+ ?first: Integer?,
23
+ ?last: Integer?,
24
+ ?request_options: WhopSDK::request_opts
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ after: String?,
29
+ before: String?,
30
+ first: Integer?,
31
+ last: Integer?,
32
+ request_options: WhopSDK::RequestOptions
33
+ }
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,104 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payment_list_fees_response =
4
+ {
5
+ amount: Float,
6
+ currency: WhopSDK::Models::currency,
7
+ name: String,
8
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
9
+ }
10
+
11
+ class PaymentListFeesResponse < WhopSDK::Internal::Type::BaseModel
12
+ attr_accessor amount: Float
13
+
14
+ attr_accessor currency: WhopSDK::Models::currency
15
+
16
+ attr_accessor name: String
17
+
18
+ attr_accessor type: WhopSDK::Models::PaymentListFeesResponse::type_
19
+
20
+ def initialize: (
21
+ amount: Float,
22
+ currency: WhopSDK::Models::currency,
23
+ name: String,
24
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ amount: Float,
29
+ currency: WhopSDK::Models::currency,
30
+ name: String,
31
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
32
+ }
33
+
34
+ type type_ =
35
+ :stripe_domestic_processing_fee
36
+ | :stripe_international_processing_fee
37
+ | :stripe_fixed_processing_fee
38
+ | :stripe_billing_fee
39
+ | :stripe_radar_fee
40
+ | :sales_tax_remittance
41
+ | :sales_tax_remittance_reversal
42
+ | :stripe_sales_tax_fee
43
+ | :whop_processing_fee
44
+ | :marketplace_affiliate_fee
45
+ | :affiliate_fee
46
+ | :crypto_fee
47
+ | :stripe_standard_processing_fee
48
+ | :paypal_fee
49
+ | :stripe_payout_fee
50
+ | :dispute_fee
51
+ | :dispute_alert_fee
52
+ | :apple_processing_fee
53
+ | :buyer_fee
54
+ | :sezzle_processing_fee
55
+ | :splitit_processing_fee
56
+ | :platform_balance_processing_fee
57
+ | :payment_processing_percentage_fee
58
+ | :payment_processing_fixed_fee
59
+ | :cross_border_percentage_fee
60
+ | :fx_percentage_fee
61
+ | :orchestration_percentage_fee
62
+ | :three_ds_fixed_fee
63
+ | :billing_percentage_fee
64
+ | :revshare_percentage_fee
65
+
66
+ module Type
67
+ extend WhopSDK::Internal::Type::Enum
68
+
69
+ STRIPE_DOMESTIC_PROCESSING_FEE: :stripe_domestic_processing_fee
70
+ STRIPE_INTERNATIONAL_PROCESSING_FEE: :stripe_international_processing_fee
71
+ STRIPE_FIXED_PROCESSING_FEE: :stripe_fixed_processing_fee
72
+ STRIPE_BILLING_FEE: :stripe_billing_fee
73
+ STRIPE_RADAR_FEE: :stripe_radar_fee
74
+ SALES_TAX_REMITTANCE: :sales_tax_remittance
75
+ SALES_TAX_REMITTANCE_REVERSAL: :sales_tax_remittance_reversal
76
+ STRIPE_SALES_TAX_FEE: :stripe_sales_tax_fee
77
+ WHOP_PROCESSING_FEE: :whop_processing_fee
78
+ MARKETPLACE_AFFILIATE_FEE: :marketplace_affiliate_fee
79
+ AFFILIATE_FEE: :affiliate_fee
80
+ CRYPTO_FEE: :crypto_fee
81
+ STRIPE_STANDARD_PROCESSING_FEE: :stripe_standard_processing_fee
82
+ PAYPAL_FEE: :paypal_fee
83
+ STRIPE_PAYOUT_FEE: :stripe_payout_fee
84
+ DISPUTE_FEE: :dispute_fee
85
+ DISPUTE_ALERT_FEE: :dispute_alert_fee
86
+ APPLE_PROCESSING_FEE: :apple_processing_fee
87
+ BUYER_FEE: :buyer_fee
88
+ SEZZLE_PROCESSING_FEE: :sezzle_processing_fee
89
+ SPLITIT_PROCESSING_FEE: :splitit_processing_fee
90
+ PLATFORM_BALANCE_PROCESSING_FEE: :platform_balance_processing_fee
91
+ PAYMENT_PROCESSING_PERCENTAGE_FEE: :payment_processing_percentage_fee
92
+ PAYMENT_PROCESSING_FIXED_FEE: :payment_processing_fixed_fee
93
+ CROSS_BORDER_PERCENTAGE_FEE: :cross_border_percentage_fee
94
+ FX_PERCENTAGE_FEE: :fx_percentage_fee
95
+ ORCHESTRATION_PERCENTAGE_FEE: :orchestration_percentage_fee
96
+ THREE_DS_FIXED_FEE: :three_ds_fixed_fee
97
+ BILLING_PERCENTAGE_FEE: :billing_percentage_fee
98
+ REVSHARE_PERCENTAGE_FEE: :revshare_percentage_fee
99
+
100
+ def self?.values: -> ::Array[WhopSDK::Models::PaymentListFeesResponse::type_]
101
+ end
102
+ end
103
+ end
104
+ end
@@ -1,67 +1,175 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type payment_method_list_response =
4
- {
5
- id: String,
6
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
7
- created_at: Time,
8
- payment_method_type: WhopSDK::Models::payment_method_types
9
- }
4
+ WhopSDK::Models::PaymentMethodListResponse::BasePaymentMethod
5
+ | WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod
6
+ | WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod
10
7
 
11
- class PaymentMethodListResponse < WhopSDK::Internal::Type::BaseModel
12
- attr_accessor id: String
8
+ module PaymentMethodListResponse
9
+ extend WhopSDK::Internal::Type::Union
13
10
 
14
- attr_accessor card: WhopSDK::Models::PaymentMethodListResponse::Card?
11
+ type base_payment_method =
12
+ {
13
+ id: String,
14
+ created_at: Time,
15
+ payment_method_type: WhopSDK::Models::payment_method_types,
16
+ typename: :BasePaymentMethod
17
+ }
18
+
19
+ class BasePaymentMethod < WhopSDK::Internal::Type::BaseModel
20
+ attr_accessor id: String
15
21
 
16
- attr_accessor created_at: Time
22
+ attr_accessor created_at: Time
17
23
 
18
- attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
24
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
19
25
 
20
- def initialize: (
21
- id: String,
22
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
23
- created_at: Time,
24
- payment_method_type: WhopSDK::Models::payment_method_types
25
- ) -> void
26
+ attr_accessor typename: :BasePaymentMethod
27
+
28
+ def initialize: (
29
+ id: String,
30
+ created_at: Time,
31
+ payment_method_type: WhopSDK::Models::payment_method_types,
32
+ ?typename: :BasePaymentMethod
33
+ ) -> void
26
34
 
27
- def to_hash: -> {
28
- id: String,
29
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
30
- created_at: Time,
31
- payment_method_type: WhopSDK::Models::payment_method_types
32
- }
35
+ def to_hash: -> {
36
+ id: String,
37
+ created_at: Time,
38
+ payment_method_type: WhopSDK::Models::payment_method_types,
39
+ typename: :BasePaymentMethod
40
+ }
41
+ end
33
42
 
34
- type card =
43
+ type card_payment_method =
35
44
  {
36
- brand: WhopSDK::Models::card_brands?,
37
- exp_month: Integer?,
38
- exp_year: Integer?,
39
- :last4 => String?
45
+ id: String,
46
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
47
+ created_at: Time,
48
+ payment_method_type: WhopSDK::Models::payment_method_types,
49
+ typename: :CardPaymentMethod
40
50
  }
41
51
 
42
- class Card < WhopSDK::Internal::Type::BaseModel
43
- attr_accessor brand: WhopSDK::Models::card_brands?
52
+ class CardPaymentMethod < WhopSDK::Internal::Type::BaseModel
53
+ attr_accessor id: String
54
+
55
+ attr_accessor card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card
44
56
 
45
- attr_accessor exp_month: Integer?
57
+ attr_accessor created_at: Time
46
58
 
47
- attr_accessor exp_year: Integer?
59
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
48
60
 
49
- attr_accessor last4: String?
61
+ attr_accessor typename: :CardPaymentMethod
50
62
 
51
63
  def initialize: (
52
- brand: WhopSDK::Models::card_brands?,
53
- exp_month: Integer?,
54
- exp_year: Integer?,
55
- last4: String?
64
+ id: String,
65
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
66
+ created_at: Time,
67
+ payment_method_type: WhopSDK::Models::payment_method_types,
68
+ ?typename: :CardPaymentMethod
56
69
  ) -> void
57
70
 
58
71
  def to_hash: -> {
59
- brand: WhopSDK::Models::card_brands?,
60
- exp_month: Integer?,
61
- exp_year: Integer?,
62
- :last4 => String?
72
+ id: String,
73
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
74
+ created_at: Time,
75
+ payment_method_type: WhopSDK::Models::payment_method_types,
76
+ typename: :CardPaymentMethod
63
77
  }
78
+
79
+ type card =
80
+ {
81
+ brand: WhopSDK::Models::card_brands?,
82
+ exp_month: Integer?,
83
+ exp_year: Integer?,
84
+ :last4 => String?
85
+ }
86
+
87
+ class Card < WhopSDK::Internal::Type::BaseModel
88
+ attr_accessor brand: WhopSDK::Models::card_brands?
89
+
90
+ attr_accessor exp_month: Integer?
91
+
92
+ attr_accessor exp_year: Integer?
93
+
94
+ attr_accessor last4: String?
95
+
96
+ def initialize: (
97
+ brand: WhopSDK::Models::card_brands?,
98
+ exp_month: Integer?,
99
+ exp_year: Integer?,
100
+ last4: String?
101
+ ) -> void
102
+
103
+ def to_hash: -> {
104
+ brand: WhopSDK::Models::card_brands?,
105
+ exp_month: Integer?,
106
+ exp_year: Integer?,
107
+ :last4 => String?
108
+ }
109
+ end
64
110
  end
111
+
112
+ type us_bank_account_payment_method =
113
+ {
114
+ id: String,
115
+ created_at: Time,
116
+ payment_method_type: WhopSDK::Models::payment_method_types,
117
+ typename: :UsBankAccountPaymentMethod,
118
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
119
+ }
120
+
121
+ class UsBankAccountPaymentMethod < WhopSDK::Internal::Type::BaseModel
122
+ attr_accessor id: String
123
+
124
+ attr_accessor created_at: Time
125
+
126
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
127
+
128
+ attr_accessor typename: :UsBankAccountPaymentMethod
129
+
130
+ attr_accessor us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
131
+
132
+ def initialize: (
133
+ id: String,
134
+ created_at: Time,
135
+ payment_method_type: WhopSDK::Models::payment_method_types,
136
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount,
137
+ ?typename: :UsBankAccountPaymentMethod
138
+ ) -> void
139
+
140
+ def to_hash: -> {
141
+ id: String,
142
+ created_at: Time,
143
+ payment_method_type: WhopSDK::Models::payment_method_types,
144
+ typename: :UsBankAccountPaymentMethod,
145
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
146
+ }
147
+
148
+ type us_bank_account =
149
+ { account_type: String, bank_name: String, :last4 => String }
150
+
151
+ class UsBankAccount < WhopSDK::Internal::Type::BaseModel
152
+ attr_accessor account_type: String
153
+
154
+ attr_accessor bank_name: String
155
+
156
+ attr_accessor last4: String
157
+
158
+ def initialize: (
159
+ account_type: String,
160
+ bank_name: String,
161
+ last4: String
162
+ ) -> void
163
+
164
+ def to_hash: -> {
165
+ account_type: String,
166
+ bank_name: String,
167
+ :last4 => String
168
+ }
169
+ end
170
+ end
171
+
172
+ def self?.variants: -> ::Array[WhopSDK::Models::payment_method_list_response]
65
173
  end
66
174
  end
67
175
  end