whop_sdk 0.0.8 → 0.0.10
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/CHANGELOG.md +25 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/models/account_link_create_params.rb +62 -0
- data/lib/whop_sdk/models/account_link_create_response.rb +28 -0
- data/lib/whop_sdk/models/app_build_create_params.rb +9 -1
- data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
- data/lib/whop_sdk/models/company_list_params.rb +17 -1
- data/lib/whop_sdk/models/dispute_list_params.rb +17 -1
- data/lib/whop_sdk/models/entry_list_params.rb +17 -1
- data/lib/whop_sdk/models/experience_list_params.rb +17 -1
- data/lib/whop_sdk/models/invoice_list_params.rb +17 -1
- data/lib/whop_sdk/models/payment.rb +90 -1
- data/lib/whop_sdk/models/payment_create_params.rb +307 -0
- data/lib/whop_sdk/models/payment_list_response.rb +90 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payment_token_list_params.rb +78 -0
- data/lib/whop_sdk/models/payment_token_list_response.rb +86 -0
- data/lib/whop_sdk/models/payment_token_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/payment_token_retrieve_response.rb +86 -0
- data/lib/whop_sdk/models/plan_create_params.rb +3 -21
- data/lib/whop_sdk/models/plan_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_update_params.rb +1 -61
- data/lib/whop_sdk/models/promo_code_list_params.rb +17 -1
- data/lib/whop_sdk/models/refund_list_params.rb +17 -1
- data/lib/whop_sdk/models/review_list_params.rb +17 -1
- data/lib/whop_sdk/models/setup_intent.rb +253 -0
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_list_params.rb +78 -0
- data/lib/whop_sdk/models/setup_intent_list_response.rb +255 -0
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/setup_intent_status.rb +18 -0
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +7 -1
- data/lib/whop_sdk/models.rb +22 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +8 -2
- data/lib/whop_sdk/resources/authorized_users.rb +5 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +5 -1
- data/lib/whop_sdk/resources/companies.rb +5 -1
- data/lib/whop_sdk/resources/disputes.rb +5 -1
- data/lib/whop_sdk/resources/entries.rb +5 -1
- data/lib/whop_sdk/resources/experiences.rb +5 -1
- data/lib/whop_sdk/resources/invoices.rb +5 -1
- data/lib/whop_sdk/resources/payment_tokens.rb +83 -0
- data/lib/whop_sdk/resources/payments.rb +48 -0
- data/lib/whop_sdk/resources/plans.rb +7 -7
- data/lib/whop_sdk/resources/products.rb +6 -4
- data/lib/whop_sdk/resources/promo_codes.rb +5 -1
- data/lib/whop_sdk/resources/refunds.rb +5 -1
- data/lib/whop_sdk/resources/reviews.rb +5 -1
- data/lib/whop_sdk/resources/setup_intents.rb +83 -0
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +19 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/account_link_create_params.rbi +101 -0
- data/rbi/whop_sdk/models/account_link_create_response.rbi +38 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +5 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/entry_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/experience_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/invoice_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/payment.rbi +142 -0
- data/rbi/whop_sdk/models/payment_create_params.rbi +384 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +167 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payment_token_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/payment_token_list_response.rbi +139 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_response.rbi +144 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +2 -22
- data/rbi/whop_sdk/models/plan_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +0 -110
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/refund_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/setup_intent.rbi +412 -0
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/setup_intent_list_response.rbi +492 -0
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/setup_intent_status.rbi +25 -0
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -0
- data/rbi/whop_sdk/models.rbi +25 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +9 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +6 -0
- data/rbi/whop_sdk/resources/companies.rbi +6 -0
- data/rbi/whop_sdk/resources/disputes.rbi +6 -0
- data/rbi/whop_sdk/resources/entries.rbi +6 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/invoices.rbi +6 -0
- data/rbi/whop_sdk/resources/payment_tokens.rbi +76 -0
- data/rbi/whop_sdk/resources/payments.rbi +42 -0
- data/rbi/whop_sdk/resources/plans.rbi +7 -9
- data/rbi/whop_sdk/resources/products.rbi +6 -9
- data/rbi/whop_sdk/resources/promo_codes.rbi +6 -0
- data/rbi/whop_sdk/resources/refunds.rbi +6 -0
- data/rbi/whop_sdk/resources/reviews.rbi +6 -0
- data/rbi/whop_sdk/resources/setup_intents.rbi +77 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/account_link_create_params.rbs +52 -0
- data/sig/whop_sdk/models/account_link_create_response.rbs +15 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +5 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_list_params.rbs +2 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
- data/sig/whop_sdk/models/company_list_params.rbs +10 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +10 -0
- data/sig/whop_sdk/models/entry_list_params.rbs +10 -0
- data/sig/whop_sdk/models/experience_list_params.rbs +10 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +10 -0
- data/sig/whop_sdk/models/payment.rbs +69 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +210 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +69 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payment_token_list_params.rbs +61 -0
- data/sig/whop_sdk/models/payment_token_list_response.rbs +67 -0
- data/sig/whop_sdk/models/payment_token_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/payment_token_retrieve_response.rbs +67 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +0 -10
- data/sig/whop_sdk/models/plan_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_update_params.rbs +0 -36
- data/sig/whop_sdk/models/promo_code_list_params.rbs +10 -0
- data/sig/whop_sdk/models/refund_list_params.rbs +10 -0
- data/sig/whop_sdk/models/review_list_params.rbs +10 -0
- data/sig/whop_sdk/models/setup_intent.rbs +189 -0
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_list_params.rbs +61 -0
- data/sig/whop_sdk/models/setup_intent_list_response.rbs +193 -0
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/setup_intent_status.rbs +17 -0
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
- data/sig/whop_sdk/models.rbs +22 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +3 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -0
- data/sig/whop_sdk/resources/disputes.rbs +2 -0
- data/sig/whop_sdk/resources/entries.rbs +2 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/payment_tokens.rbs +25 -0
- data/sig/whop_sdk/resources/payments.rbs +9 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/products.rbs +2 -1
- data/sig/whop_sdk/resources/promo_codes.rbs +2 -0
- data/sig/whop_sdk/resources/refunds.rbs +2 -0
- data/sig/whop_sdk/resources/reviews.rbs +2 -0
- data/sig/whop_sdk/resources/setup_intents.rbs +24 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -0
- metadata +56 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52fccd60ae7ccaf64e90bd05372f51f66c31948db48f36e7720e3d0ea41bef5b
|
|
4
|
+
data.tar.gz: 240f956383f8b5133ef2190734e248cdd7458caddda070bebb92a6ad8a8d2970
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62b83235379a23d717ec6639bf7cef6c42600a8944a7348ffede85eafee4c5e45d7fdeb936a6c623bd0d8db28f1dd5fdcbd5c11c81c5f9131c75580f6c825089
|
|
7
|
+
data.tar.gz: 128fd87f073ed68505f29d9b73aa581ea030de9541a25ed18962b3e765d602593f2d7696370c759ac91ae35e38edacd979bd1b6bbcb006fa18d0fdc70af4e0a5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.10 (2025-12-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.9...v0.0.10](https://github.com/whopio/whopsdk-ruby/compare/v0.0.9...v0.0.10)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([1cc25a9](https://github.com/whopio/whopsdk-ruby/commit/1cc25a9b5da017f2929c9660d8fec707fc66210d))
|
|
10
|
+
* **api:** manual updates ([6b53095](https://github.com/whopio/whopsdk-ruby/commit/6b5309501f02321f3653ff353b612f046d0c4ab0))
|
|
11
|
+
|
|
12
|
+
## 0.0.9 (2025-12-01)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v0.0.8...v0.0.9](https://github.com/whopio/whopsdk-ruby/compare/v0.0.8...v0.0.9)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** api update ([b9f7830](https://github.com/whopio/whopsdk-ruby/commit/b9f7830e02fce7ea744123f9391bd63477777791))
|
|
19
|
+
* **api:** api update ([0d6de41](https://github.com/whopio/whopsdk-ruby/commit/0d6de416cc96a1dff8176a8c986c1e5170439708))
|
|
20
|
+
* **api:** api update ([cb2a10b](https://github.com/whopio/whopsdk-ruby/commit/cb2a10bf8cf75a57e4714c1af3d8687e9fd0a45f))
|
|
21
|
+
* **api:** manual updates ([b5db9c0](https://github.com/whopio/whopsdk-ruby/commit/b5db9c035ee748775db6be426484057806f1fcd8))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Chores
|
|
25
|
+
|
|
26
|
+
* explicitly require "base64" gem ([07c9cd7](https://github.com/whopio/whopsdk-ruby/commit/07c9cd76d730e34b7170f5ebdb0596dc0c978155))
|
|
27
|
+
|
|
3
28
|
## 0.0.8 (2025-11-21)
|
|
4
29
|
|
|
5
30
|
Full Changelog: [v0.0.7...v0.0.8](https://github.com/whopio/whopsdk-ruby/compare/v0.0.7...v0.0.8)
|
data/README.md
CHANGED
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -132,6 +132,15 @@ module WhopSDK
|
|
|
132
132
|
# @return [WhopSDK::Resources::Withdrawals]
|
|
133
133
|
attr_reader :withdrawals
|
|
134
134
|
|
|
135
|
+
# @return [WhopSDK::Resources::AccountLinks]
|
|
136
|
+
attr_reader :account_links
|
|
137
|
+
|
|
138
|
+
# @return [WhopSDK::Resources::SetupIntents]
|
|
139
|
+
attr_reader :setup_intents
|
|
140
|
+
|
|
141
|
+
# @return [WhopSDK::Resources::PaymentTokens]
|
|
142
|
+
attr_reader :payment_tokens
|
|
143
|
+
|
|
135
144
|
# @api private
|
|
136
145
|
#
|
|
137
146
|
# @return [Hash{String=>String}]
|
|
@@ -225,6 +234,9 @@ module WhopSDK
|
|
|
225
234
|
@disputes = WhopSDK::Resources::Disputes.new(client: self)
|
|
226
235
|
@refunds = WhopSDK::Resources::Refunds.new(client: self)
|
|
227
236
|
@withdrawals = WhopSDK::Resources::Withdrawals.new(client: self)
|
|
237
|
+
@account_links = WhopSDK::Resources::AccountLinks.new(client: self)
|
|
238
|
+
@setup_intents = WhopSDK::Resources::SetupIntents.new(client: self)
|
|
239
|
+
@payment_tokens = WhopSDK::Resources::PaymentTokens.new(client: self)
|
|
228
240
|
end
|
|
229
241
|
|
|
230
242
|
# Verifies a Whop user token
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::AccountLinks#create
|
|
6
|
+
class AccountLinkCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute company_id
|
|
11
|
+
# The ID of the Company to generate the url for. The company must be a
|
|
12
|
+
# sub-merchant of the API key's company.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :company_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute refresh_url
|
|
18
|
+
# The URL to redirect to if the session expires and needs to be re-authenticated
|
|
19
|
+
# due to the token expiring.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :refresh_url, String
|
|
23
|
+
|
|
24
|
+
# @!attribute return_url
|
|
25
|
+
# The URL to redirect to when the customer wants to return to your site.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :return_url, String
|
|
29
|
+
|
|
30
|
+
# @!attribute use_case
|
|
31
|
+
# The use case for which the link will be used.
|
|
32
|
+
#
|
|
33
|
+
# @return [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase]
|
|
34
|
+
required :use_case, enum: -> { WhopSDK::AccountLinkCreateParams::UseCase }
|
|
35
|
+
|
|
36
|
+
# @!method initialize(company_id:, refresh_url:, return_url:, use_case:, request_options: {})
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {WhopSDK::Models::AccountLinkCreateParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# @param company_id [String] The ID of the Company to generate the url for. The company must be a sub-merchan
|
|
41
|
+
#
|
|
42
|
+
# @param refresh_url [String] The URL to redirect to if the session expires and needs to be re-authenticated d
|
|
43
|
+
#
|
|
44
|
+
# @param return_url [String] The URL to redirect to when the customer wants to return to your site.
|
|
45
|
+
#
|
|
46
|
+
# @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The use case for which the link will be used.
|
|
47
|
+
#
|
|
48
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
49
|
+
|
|
50
|
+
# The use case for which the link will be used.
|
|
51
|
+
module UseCase
|
|
52
|
+
extend WhopSDK::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
ACCOUNT_ONBOARDING = :account_onboarding
|
|
55
|
+
PAYOUTS_PORTAL = :payouts_portal
|
|
56
|
+
|
|
57
|
+
# @!method self.values
|
|
58
|
+
# @return [Array<Symbol>]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::AccountLinks#create
|
|
6
|
+
class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute expires_at
|
|
8
|
+
# The expiration timestamp of the url.
|
|
9
|
+
#
|
|
10
|
+
# @return [Time]
|
|
11
|
+
required :expires_at, Time
|
|
12
|
+
|
|
13
|
+
# @!attribute url
|
|
14
|
+
# The URL to navigate the user to.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :url, String
|
|
18
|
+
|
|
19
|
+
# @!method initialize(expires_at:, url:)
|
|
20
|
+
# An object representing a url that a user can be directed to to access their
|
|
21
|
+
# account.
|
|
22
|
+
#
|
|
23
|
+
# @param expires_at [Time] The expiration timestamp of the url.
|
|
24
|
+
#
|
|
25
|
+
# @param url [String] The URL to navigate the user to.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -29,6 +29,12 @@ module WhopSDK
|
|
|
29
29
|
# @return [Symbol, WhopSDK::Models::AppBuildPlatforms]
|
|
30
30
|
required :platform, enum: -> { WhopSDK::AppBuildPlatforms }
|
|
31
31
|
|
|
32
|
+
# @!attribute ai_prompt_id
|
|
33
|
+
# The id of the ai prompt that created this build
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
optional :ai_prompt_id, String, nil?: true
|
|
37
|
+
|
|
32
38
|
# @!attribute app_id
|
|
33
39
|
# The ID of the app to create a build for. By default the current app from the api
|
|
34
40
|
# key is used.
|
|
@@ -45,7 +51,7 @@ module WhopSDK
|
|
|
45
51
|
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::AppViewType] },
|
|
46
52
|
nil?: true
|
|
47
53
|
|
|
48
|
-
# @!method initialize(attachment:, checksum:, platform:, app_id: nil, supported_app_view_types: nil, request_options: {})
|
|
54
|
+
# @!method initialize(attachment:, checksum:, platform:, ai_prompt_id: nil, app_id: nil, supported_app_view_types: nil, request_options: {})
|
|
49
55
|
# Some parameter documentations has been truncated, see
|
|
50
56
|
# {WhopSDK::Models::AppBuildCreateParams} for more details.
|
|
51
57
|
#
|
|
@@ -55,6 +61,8 @@ module WhopSDK
|
|
|
55
61
|
#
|
|
56
62
|
# @param platform [Symbol, WhopSDK::Models::AppBuildPlatforms] The platform of the app build (ios, android, web)
|
|
57
63
|
#
|
|
64
|
+
# @param ai_prompt_id [String, nil] The id of the ai prompt that created this build
|
|
65
|
+
#
|
|
58
66
|
# @param app_id [String, nil] The ID of the app to create a build for. By default the current app from the api
|
|
59
67
|
#
|
|
60
68
|
# @param supported_app_view_types [Array<Symbol, WhopSDK::Models::AppViewType>, nil] Supported app view types for the app build. A build can specify multiple view ty
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute first
|
|
29
41
|
# Returns the first _n_ elements from the list.
|
|
30
42
|
#
|
|
@@ -49,13 +61,17 @@ module WhopSDK
|
|
|
49
61
|
# @return [Symbol, WhopSDK::Models::AppBuildStatuses, nil]
|
|
50
62
|
optional :status, enum: -> { WhopSDK::AppBuildStatuses }, nil?: true
|
|
51
63
|
|
|
52
|
-
# @!method initialize(app_id:, after: nil, before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
|
|
64
|
+
# @!method initialize(app_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
|
|
53
65
|
# @param app_id [String] The ID of the app to filter app builds by
|
|
54
66
|
#
|
|
55
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
56
68
|
#
|
|
57
69
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
58
70
|
#
|
|
71
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
72
|
+
#
|
|
73
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
74
|
+
#
|
|
59
75
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
60
76
|
#
|
|
61
77
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
@@ -108,6 +108,7 @@ module WhopSDK
|
|
|
108
108
|
|
|
109
109
|
DISCOVERABLE_AT = :discoverable_at
|
|
110
110
|
TOTAL_INSTALLS_LAST_30_DAYS = :total_installs_last_30_days
|
|
111
|
+
TOTAL_INSTALLS_LAST_7_DAYS = :total_installs_last_7_days
|
|
111
112
|
TIME_SPENT = :time_spent
|
|
112
113
|
TIME_SPENT_LAST_24_HOURS = :time_spent_last_24_hours
|
|
113
114
|
DAILY_ACTIVE_USERS = :daily_active_users
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute first
|
|
29
41
|
# Returns the first _n_ elements from the list.
|
|
30
42
|
#
|
|
@@ -49,13 +61,17 @@ module WhopSDK
|
|
|
49
61
|
# @return [String, nil]
|
|
50
62
|
optional :user_id, String, nil?: true
|
|
51
63
|
|
|
52
|
-
# @!method initialize(company_id:, after: nil, before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
|
|
64
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
|
|
53
65
|
# @param company_id [String] The ID of the company to list authorized users for
|
|
54
66
|
#
|
|
55
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
56
68
|
#
|
|
57
69
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
58
70
|
#
|
|
71
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
72
|
+
#
|
|
73
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
74
|
+
#
|
|
59
75
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
60
76
|
#
|
|
61
77
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -49,13 +61,17 @@ module WhopSDK
|
|
|
49
61
|
# @return [String, nil]
|
|
50
62
|
optional :plan_id, String, nil?: true
|
|
51
63
|
|
|
52
|
-
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
|
|
64
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
|
|
53
65
|
# @param company_id [String] The ID of the company to list checkout configurations for
|
|
54
66
|
#
|
|
55
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
56
68
|
#
|
|
57
69
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
58
70
|
#
|
|
71
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
72
|
+
#
|
|
73
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
74
|
+
#
|
|
59
75
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
60
76
|
#
|
|
61
77
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -43,13 +55,17 @@ module WhopSDK
|
|
|
43
55
|
# @return [Integer, nil]
|
|
44
56
|
optional :last, Integer, nil?: true
|
|
45
57
|
|
|
46
|
-
# @!method initialize(parent_company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
58
|
+
# @!method initialize(parent_company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
47
59
|
# @param parent_company_id [String] The ID of the parent company to list sub companies for
|
|
48
60
|
#
|
|
49
61
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
50
62
|
#
|
|
51
63
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
52
64
|
#
|
|
65
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
66
|
+
#
|
|
67
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
68
|
+
#
|
|
53
69
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
54
70
|
#
|
|
55
71
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -43,13 +55,17 @@ module WhopSDK
|
|
|
43
55
|
# @return [Integer, nil]
|
|
44
56
|
optional :last, Integer, nil?: true
|
|
45
57
|
|
|
46
|
-
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
58
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
47
59
|
# @param company_id [String] The ID of the company to list disputes for
|
|
48
60
|
#
|
|
49
61
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
50
62
|
#
|
|
51
63
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
52
64
|
#
|
|
65
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
66
|
+
#
|
|
67
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
68
|
+
#
|
|
53
69
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
54
70
|
#
|
|
55
71
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute direction
|
|
29
41
|
# The direction of the sort.
|
|
30
42
|
#
|
|
@@ -67,13 +79,17 @@ module WhopSDK
|
|
|
67
79
|
# @return [Array<Symbol, WhopSDK::Models::EntryStatus>, nil]
|
|
68
80
|
optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::EntryStatus] }, nil?: true
|
|
69
81
|
|
|
70
|
-
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
82
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
71
83
|
# @param company_id [String] The ID of the company
|
|
72
84
|
#
|
|
73
85
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
74
86
|
#
|
|
75
87
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
76
88
|
#
|
|
89
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
90
|
+
#
|
|
91
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
92
|
+
#
|
|
77
93
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
78
94
|
#
|
|
79
95
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -31,6 +31,18 @@ module WhopSDK
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
optional :before, String, nil?: true
|
|
33
33
|
|
|
34
|
+
# @!attribute created_after
|
|
35
|
+
# The minimum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_after, Time, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute created_before
|
|
41
|
+
# The maximum creation date to filter by
|
|
42
|
+
#
|
|
43
|
+
# @return [Time, nil]
|
|
44
|
+
optional :created_before, Time, nil?: true
|
|
45
|
+
|
|
34
46
|
# @!attribute first
|
|
35
47
|
# Returns the first _n_ elements from the list.
|
|
36
48
|
#
|
|
@@ -49,7 +61,7 @@ module WhopSDK
|
|
|
49
61
|
# @return [String, nil]
|
|
50
62
|
optional :product_id, String, nil?: true
|
|
51
63
|
|
|
52
|
-
# @!method initialize(company_id:, after: nil, app_id: nil, before: nil, first: nil, last: nil, product_id: nil, request_options: {})
|
|
64
|
+
# @!method initialize(company_id:, after: nil, app_id: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, product_id: nil, request_options: {})
|
|
53
65
|
# @param company_id [String] The ID of the company to filter experiences by
|
|
54
66
|
#
|
|
55
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
@@ -58,6 +70,10 @@ module WhopSDK
|
|
|
58
70
|
#
|
|
59
71
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
60
72
|
#
|
|
73
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
74
|
+
#
|
|
75
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
76
|
+
#
|
|
61
77
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
62
78
|
#
|
|
63
79
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
@@ -33,6 +33,18 @@ module WhopSDK
|
|
|
33
33
|
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CollectionMethod] },
|
|
34
34
|
nil?: true
|
|
35
35
|
|
|
36
|
+
# @!attribute created_after
|
|
37
|
+
# The minimum creation date to filter by
|
|
38
|
+
#
|
|
39
|
+
# @return [Time, nil]
|
|
40
|
+
optional :created_after, Time, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!attribute created_before
|
|
43
|
+
# The maximum creation date to filter by
|
|
44
|
+
#
|
|
45
|
+
# @return [Time, nil]
|
|
46
|
+
optional :created_before, Time, nil?: true
|
|
47
|
+
|
|
36
48
|
# @!attribute direction
|
|
37
49
|
# The direction of the sort.
|
|
38
50
|
#
|
|
@@ -69,7 +81,7 @@ module WhopSDK
|
|
|
69
81
|
# @return [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil]
|
|
70
82
|
optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::InvoiceStatus] }, nil?: true
|
|
71
83
|
|
|
72
|
-
# @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
84
|
+
# @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
|
|
73
85
|
# @param company_id [String] The ID of the company to list invoices for
|
|
74
86
|
#
|
|
75
87
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
@@ -78,6 +90,10 @@ module WhopSDK
|
|
|
78
90
|
#
|
|
79
91
|
# @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
|
|
80
92
|
#
|
|
93
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
94
|
+
#
|
|
95
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
96
|
+
#
|
|
81
97
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
82
98
|
#
|
|
83
99
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
@@ -112,6 +112,12 @@ module WhopSDK
|
|
|
112
112
|
# @return [Symbol, WhopSDK::Models::PaymentMethodTypes, nil]
|
|
113
113
|
required :payment_method_type, enum: -> { WhopSDK::PaymentMethodTypes }, nil?: true
|
|
114
114
|
|
|
115
|
+
# @!attribute payment_token
|
|
116
|
+
# The payment token used for the payment, if available.
|
|
117
|
+
#
|
|
118
|
+
# @return [WhopSDK::Models::Payment::PaymentToken, nil]
|
|
119
|
+
required :payment_token, -> { WhopSDK::Payment::PaymentToken }, nil?: true
|
|
120
|
+
|
|
115
121
|
# @!attribute plan
|
|
116
122
|
# The plan attached to this payment.
|
|
117
123
|
#
|
|
@@ -200,7 +206,7 @@ module WhopSDK
|
|
|
200
206
|
# @return [Boolean]
|
|
201
207
|
required :voidable, WhopSDK::Internal::Type::Boolean
|
|
202
208
|
|
|
203
|
-
# @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, paid_at:, payment_method_type:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
209
|
+
# @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, paid_at:, payment_method_type:, payment_token:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
|
|
204
210
|
# Some parameter documentations has been truncated, see {WhopSDK::Models::Payment}
|
|
205
211
|
# for more details.
|
|
206
212
|
#
|
|
@@ -242,6 +248,8 @@ module WhopSDK
|
|
|
242
248
|
#
|
|
243
249
|
# @param payment_method_type [Symbol, WhopSDK::Models::PaymentMethodTypes, nil] The different types of payment methods that can be used.
|
|
244
250
|
#
|
|
251
|
+
# @param payment_token [WhopSDK::Models::Payment::PaymentToken, nil] The payment token used for the payment, if available.
|
|
252
|
+
#
|
|
245
253
|
# @param plan [WhopSDK::Models::Payment::Plan, nil] The plan attached to this payment.
|
|
246
254
|
#
|
|
247
255
|
# @param product [WhopSDK::Models::Payment::Product, nil] The product this payment was made for
|
|
@@ -406,6 +414,87 @@ module WhopSDK
|
|
|
406
414
|
# @param status [Symbol, WhopSDK::Models::MembershipStatus] The state of the membership.
|
|
407
415
|
end
|
|
408
416
|
|
|
417
|
+
# @see WhopSDK::Models::Payment#payment_token
|
|
418
|
+
class PaymentToken < WhopSDK::Internal::Type::BaseModel
|
|
419
|
+
# @!attribute id
|
|
420
|
+
# The ID of the payment token
|
|
421
|
+
#
|
|
422
|
+
# @return [String]
|
|
423
|
+
required :id, String
|
|
424
|
+
|
|
425
|
+
# @!attribute card
|
|
426
|
+
# The card data associated with the payment token, if its a debit or credit card
|
|
427
|
+
# token.
|
|
428
|
+
#
|
|
429
|
+
# @return [WhopSDK::Models::Payment::PaymentToken::Card, nil]
|
|
430
|
+
required :card, -> { WhopSDK::Payment::PaymentToken::Card }, nil?: true
|
|
431
|
+
|
|
432
|
+
# @!attribute created_at
|
|
433
|
+
# The date and time the payment token was created
|
|
434
|
+
#
|
|
435
|
+
# @return [Time]
|
|
436
|
+
required :created_at, Time
|
|
437
|
+
|
|
438
|
+
# @!attribute payment_method_type
|
|
439
|
+
# The payment method type of the payment token
|
|
440
|
+
#
|
|
441
|
+
# @return [Symbol, WhopSDK::Models::PaymentMethodTypes]
|
|
442
|
+
required :payment_method_type, enum: -> { WhopSDK::PaymentMethodTypes }
|
|
443
|
+
|
|
444
|
+
# @!method initialize(id:, card:, created_at:, payment_method_type:)
|
|
445
|
+
# Some parameter documentations has been truncated, see
|
|
446
|
+
# {WhopSDK::Models::Payment::PaymentToken} for more details.
|
|
447
|
+
#
|
|
448
|
+
# The payment token used for the payment, if available.
|
|
449
|
+
#
|
|
450
|
+
# @param id [String] The ID of the payment token
|
|
451
|
+
#
|
|
452
|
+
# @param card [WhopSDK::Models::Payment::PaymentToken::Card, nil] The card data associated with the payment token, if its a debit or credit card t
|
|
453
|
+
#
|
|
454
|
+
# @param created_at [Time] The date and time the payment token was created
|
|
455
|
+
#
|
|
456
|
+
# @param payment_method_type [Symbol, WhopSDK::Models::PaymentMethodTypes] The payment method type of the payment token
|
|
457
|
+
|
|
458
|
+
# @see WhopSDK::Models::Payment::PaymentToken#card
|
|
459
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
460
|
+
# @!attribute brand
|
|
461
|
+
# Possible card brands that a payment token can have
|
|
462
|
+
#
|
|
463
|
+
# @return [Symbol, WhopSDK::Models::CardBrands, nil]
|
|
464
|
+
required :brand, enum: -> { WhopSDK::CardBrands }, nil?: true
|
|
465
|
+
|
|
466
|
+
# @!attribute exp_month
|
|
467
|
+
# Card expiration month, like 03 for March.
|
|
468
|
+
#
|
|
469
|
+
# @return [Integer, nil]
|
|
470
|
+
required :exp_month, Integer, nil?: true
|
|
471
|
+
|
|
472
|
+
# @!attribute exp_year
|
|
473
|
+
# Card expiration year, like 27 for 2027.
|
|
474
|
+
#
|
|
475
|
+
# @return [Integer, nil]
|
|
476
|
+
required :exp_year, Integer, nil?: true
|
|
477
|
+
|
|
478
|
+
# @!attribute last4
|
|
479
|
+
# Last four digits of the card.
|
|
480
|
+
#
|
|
481
|
+
# @return [String, nil]
|
|
482
|
+
required :last4, String, nil?: true
|
|
483
|
+
|
|
484
|
+
# @!method initialize(brand:, exp_month:, exp_year:, last4:)
|
|
485
|
+
# The card data associated with the payment token, if its a debit or credit card
|
|
486
|
+
# token.
|
|
487
|
+
#
|
|
488
|
+
# @param brand [Symbol, WhopSDK::Models::CardBrands, nil] Possible card brands that a payment token can have
|
|
489
|
+
#
|
|
490
|
+
# @param exp_month [Integer, nil] Card expiration month, like 03 for March.
|
|
491
|
+
#
|
|
492
|
+
# @param exp_year [Integer, nil] Card expiration year, like 27 for 2027.
|
|
493
|
+
#
|
|
494
|
+
# @param last4 [String, nil] Last four digits of the card.
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
409
498
|
# @see WhopSDK::Models::Payment#plan
|
|
410
499
|
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
411
500
|
# @!attribute id
|