whop_sdk 0.0.37 → 0.0.39
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 +61 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +76 -10
- data/lib/whop_sdk/helpers/verify_user_token.rb +166 -34
- data/lib/whop_sdk/models/ad_campaign_list_params.rb +101 -0
- data/lib/whop_sdk/models/ad_campaign_list_response.rb +126 -0
- data/lib/whop_sdk/models/ad_campaign_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_campaign_pause_response.rb +328 -0
- data/lib/whop_sdk/models/ad_campaign_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +328 -0
- data/lib/whop_sdk/models/ad_campaign_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +328 -0
- data/lib/whop_sdk/models/ad_campaign_update_params.rb +33 -0
- data/lib/whop_sdk/models/ad_campaign_update_response.rb +328 -0
- data/lib/whop_sdk/models/ad_group_delete_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ad_group_list_params.rb +109 -0
- data/lib/whop_sdk/models/ad_group_list_response.rb +118 -0
- data/lib/whop_sdk/models/ad_group_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_retrieve_response.rb +140 -0
- data/lib/whop_sdk/models/ad_group_update_params.rb +3207 -0
- data/lib/whop_sdk/models/ad_group_update_response.rb +140 -0
- data/lib/whop_sdk/models/ad_list_params.rb +115 -0
- data/lib/whop_sdk/models/ad_list_response.rb +89 -0
- data/lib/whop_sdk/models/ad_report_retrieve_params.rb +77 -0
- data/lib/whop_sdk/models/ad_report_retrieve_response.rb +312 -0
- data/lib/whop_sdk/models/ad_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/ad_retrieve_response.rb +133 -0
- data/lib/whop_sdk/models/authorized_user_roles.rb +1 -0
- data/lib/whop_sdk/models/bounty_create_params.rb +105 -0
- data/lib/whop_sdk/models/bounty_create_response.rb +126 -0
- data/lib/whop_sdk/models/bounty_list_params.rb +85 -0
- data/lib/whop_sdk/models/bounty_list_response.rb +126 -0
- data/lib/whop_sdk/models/bounty_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/bounty_retrieve_response.rb +126 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +20 -2
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +97 -23
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +20 -2
- data/lib/whop_sdk/models/company_create_api_key_params.rb +109 -0
- data/lib/whop_sdk/models/company_create_api_key_response.rb +35 -0
- data/lib/whop_sdk/models/conversion_create_params.rb +462 -0
- data/lib/whop_sdk/models/conversion_create_response.rb +19 -0
- data/lib/whop_sdk/models/currency.rb +1 -0
- data/lib/whop_sdk/models/file_create_params.rb +22 -1
- data/lib/whop_sdk/models/file_create_response.rb +26 -3
- data/lib/whop_sdk/models/file_retrieve_response.rb +26 -3
- data/lib/whop_sdk/models/forum_post_list_params.rb +9 -1
- data/lib/whop_sdk/models/forum_update_params.rb +10 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +36 -18
- data/lib/whop_sdk/models/invoice_update_params.rb +29 -7
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +2 -2
- data/lib/whop_sdk/models/membership.rb +11 -1
- data/lib/whop_sdk/models/membership_list_response.rb +11 -1
- data/lib/whop_sdk/models/payment.rb +47 -2
- data/lib/whop_sdk/models/payment_list_response.rb +29 -2
- data/lib/whop_sdk/models/payment_method_types.rb +16 -0
- data/lib/whop_sdk/models/payment_refund_params.rb +4 -3
- data/lib/whop_sdk/models/payout_account_retrieve_response.rb +2 -2
- data/lib/whop_sdk/models/payout_account_status_updated_webhook_event.rb +2 -2
- data/lib/whop_sdk/models/plan.rb +12 -3
- data/lib/whop_sdk/models/plan_create_params.rb +26 -6
- data/lib/whop_sdk/models/plan_list_response.rb +12 -3
- data/lib/whop_sdk/models/plan_update_params.rb +26 -6
- data/lib/whop_sdk/models/support_channel_list_params.rb +31 -9
- data/lib/whop_sdk/models/user_retrieve_params.rb +14 -1
- data/lib/whop_sdk/models/{user_update_profile_params.rb → user_update_params.rb} +24 -7
- data/lib/whop_sdk/models/verification_list_response.rb +2 -2
- data/lib/whop_sdk/models/verification_retrieve_response.rb +2 -2
- data/lib/whop_sdk/models/verification_status.rb +1 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +2 -2
- data/lib/whop_sdk/models.rb +35 -1
- data/lib/whop_sdk/resources/ad_campaigns.rb +163 -0
- data/lib/whop_sdk/resources/ad_groups.rb +151 -0
- data/lib/whop_sdk/resources/ad_reports.rb +59 -0
- data/lib/whop_sdk/resources/ads.rb +88 -0
- data/lib/whop_sdk/resources/bounties.rb +124 -0
- data/lib/whop_sdk/resources/companies.rb +34 -0
- data/lib/whop_sdk/resources/conversions.rb +67 -0
- data/lib/whop_sdk/resources/files.rb +3 -1
- data/lib/whop_sdk/resources/forum_posts.rb +3 -1
- data/lib/whop_sdk/resources/forums.rb +3 -1
- data/lib/whop_sdk/resources/invoices.rb +9 -2
- data/lib/whop_sdk/resources/payments.rb +1 -1
- data/lib/whop_sdk/resources/plans.rb +6 -2
- data/lib/whop_sdk/resources/support_channels.rb +6 -4
- data/lib/whop_sdk/resources/users.rb +49 -37
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +41 -1
- data/rbi/whop_sdk/client.rbi +24 -0
- data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +142 -0
- data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +239 -0
- data/rbi/whop_sdk/models/ad_campaign_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_campaign_pause_response.rbi +668 -0
- data/rbi/whop_sdk/models/ad_campaign_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +679 -0
- data/rbi/whop_sdk/models/ad_campaign_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +675 -0
- data/rbi/whop_sdk/models/ad_campaign_update_params.rbi +51 -0
- data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +670 -0
- data/rbi/whop_sdk/models/ad_group_delete_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/ad_group_list_params.rbi +145 -0
- data/rbi/whop_sdk/models/ad_group_list_response.rbi +228 -0
- data/rbi/whop_sdk/models/ad_group_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +277 -0
- data/rbi/whop_sdk/models/ad_group_update_params.rbi +6133 -0
- data/rbi/whop_sdk/models/ad_group_update_response.rbi +274 -0
- data/rbi/whop_sdk/models/ad_list_params.rbi +146 -0
- data/rbi/whop_sdk/models/ad_list_response.rbi +146 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +99 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +629 -0
- data/rbi/whop_sdk/models/ad_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_retrieve_response.rbi +245 -0
- data/rbi/whop_sdk/models/authorized_user_roles.rbi +2 -0
- data/rbi/whop_sdk/models/bounty_create_params.rbi +129 -0
- data/rbi/whop_sdk/models/bounty_create_response.rbi +196 -0
- data/rbi/whop_sdk/models/bounty_list_params.rbi +115 -0
- data/rbi/whop_sdk/models/bounty_list_response.rbi +189 -0
- data/rbi/whop_sdk/models/bounty_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/bounty_retrieve_response.rbi +199 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +20 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +84 -16
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +20 -0
- data/rbi/whop_sdk/models/company_create_api_key_params.rbi +184 -0
- data/rbi/whop_sdk/models/company_create_api_key_response.rbi +51 -0
- data/rbi/whop_sdk/models/conversion_create_params.rbi +661 -0
- data/rbi/whop_sdk/models/conversion_create_response.rbi +31 -0
- data/rbi/whop_sdk/models/currency.rbi +1 -0
- data/rbi/whop_sdk/models/file_create_params.rbi +41 -1
- data/rbi/whop_sdk/models/file_create_response.rbi +52 -5
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +53 -5
- data/rbi/whop_sdk/models/forum_post_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/forum_update_params.rbi +10 -0
- data/rbi/whop_sdk/models/invoice_create_params.rbi +46 -26
- data/rbi/whop_sdk/models/invoice_update_params.rbi +28 -6
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +2 -2
- data/rbi/whop_sdk/models/membership.rbi +12 -0
- data/rbi/whop_sdk/models/membership_list_response.rbi +12 -0
- data/rbi/whop_sdk/models/payment.rbi +57 -3
- data/rbi/whop_sdk/models/payment_list_response.rbi +37 -3
- data/rbi/whop_sdk/models/payment_method_types.rbi +31 -0
- data/rbi/whop_sdk/models/payment_refund_params.rbi +6 -4
- data/rbi/whop_sdk/models/payout_account_retrieve_response.rbi +2 -2
- data/rbi/whop_sdk/models/payout_account_status_updated_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models/plan.rbi +12 -2
- data/rbi/whop_sdk/models/plan_create_params.rbi +22 -4
- data/rbi/whop_sdk/models/plan_list_response.rbi +12 -2
- data/rbi/whop_sdk/models/plan_update_params.rbi +22 -4
- data/rbi/whop_sdk/models/support_channel_list_params.rbi +50 -8
- data/rbi/whop_sdk/models/user_retrieve_params.rbi +18 -2
- data/rbi/whop_sdk/models/{user_update_profile_params.rbi → user_update_params.rbi} +25 -9
- data/rbi/whop_sdk/models/verification_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +2 -2
- data/rbi/whop_sdk/models/verification_status.rbi +2 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +2 -2
- data/rbi/whop_sdk/models.rbi +35 -1
- data/rbi/whop_sdk/resources/ad_campaigns.rbi +134 -0
- data/rbi/whop_sdk/resources/ad_groups.rbi +139 -0
- data/rbi/whop_sdk/resources/ad_reports.rbi +55 -0
- data/rbi/whop_sdk/resources/ads.rbi +81 -0
- data/rbi/whop_sdk/resources/bounties.rbi +116 -0
- data/rbi/whop_sdk/resources/companies.rbi +32 -0
- data/rbi/whop_sdk/resources/conversions.rbi +71 -0
- data/rbi/whop_sdk/resources/files.rbi +5 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +3 -0
- data/rbi/whop_sdk/resources/forums.rbi +4 -0
- data/rbi/whop_sdk/resources/invoices.rbi +10 -1
- data/rbi/whop_sdk/resources/payments.rbi +3 -2
- data/rbi/whop_sdk/resources/plans.rbi +6 -0
- data/rbi/whop_sdk/resources/support_channels.rbi +8 -3
- data/rbi/whop_sdk/resources/users.rbi +42 -29
- data/sig/whop_sdk/client.rbs +12 -0
- data/sig/whop_sdk/models/ad_campaign_list_params.rbs +82 -0
- data/sig/whop_sdk/models/ad_campaign_list_response.rbs +98 -0
- data/sig/whop_sdk/models/ad_campaign_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +232 -0
- data/sig/whop_sdk/models/ad_campaign_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +232 -0
- data/sig/whop_sdk/models/ad_campaign_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +232 -0
- data/sig/whop_sdk/models/ad_campaign_update_params.rbs +28 -0
- data/sig/whop_sdk/models/ad_campaign_update_response.rbs +232 -0
- data/sig/whop_sdk/models/ad_group_delete_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ad_group_list_params.rbs +87 -0
- data/sig/whop_sdk/models/ad_group_list_response.rbs +93 -0
- data/sig/whop_sdk/models/ad_group_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +108 -0
- data/sig/whop_sdk/models/ad_group_update_params.rbs +2439 -0
- data/sig/whop_sdk/models/ad_group_update_response.rbs +108 -0
- data/sig/whop_sdk/models/ad_list_params.rbs +87 -0
- data/sig/whop_sdk/models/ad_list_response.rbs +72 -0
- data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +56 -0
- data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +278 -0
- data/sig/whop_sdk/models/ad_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_retrieve_response.rbs +102 -0
- data/sig/whop_sdk/models/authorized_user_roles.rbs +2 -0
- data/sig/whop_sdk/models/bounty_create_params.rbs +71 -0
- data/sig/whop_sdk/models/bounty_create_response.rbs +93 -0
- data/sig/whop_sdk/models/bounty_list_params.rbs +67 -0
- data/sig/whop_sdk/models/bounty_list_response.rbs +93 -0
- data/sig/whop_sdk/models/bounty_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/bounty_retrieve_response.rbs +93 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +51 -16
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +10 -0
- data/sig/whop_sdk/models/company_create_api_key_params.rbs +83 -0
- data/sig/whop_sdk/models/company_create_api_key_response.rbs +18 -0
- data/sig/whop_sdk/models/conversion_create_params.rbs +349 -0
- data/sig/whop_sdk/models/conversion_create_response.rbs +13 -0
- data/sig/whop_sdk/models/currency.rbs +2 -0
- data/sig/whop_sdk/models/file_create_params.rbs +20 -1
- data/sig/whop_sdk/models/file_create_response.rbs +19 -3
- data/sig/whop_sdk/models/file_retrieve_response.rbs +19 -3
- data/sig/whop_sdk/models/forum_post_list_params.rbs +5 -0
- data/sig/whop_sdk/models/forum_update_params.rbs +5 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +24 -14
- data/sig/whop_sdk/models/invoice_update_params.rbs +15 -5
- data/sig/whop_sdk/models/membership.rbs +5 -0
- data/sig/whop_sdk/models/membership_list_response.rbs +5 -0
- data/sig/whop_sdk/models/payment.rbs +25 -3
- data/sig/whop_sdk/models/payment_list_response.rbs +15 -3
- data/sig/whop_sdk/models/payment_method_types.rbs +32 -0
- data/sig/whop_sdk/models/plan.rbs +5 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +14 -4
- data/sig/whop_sdk/models/plan_list_response.rbs +5 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +14 -4
- data/sig/whop_sdk/models/support_channel_list_params.rbs +23 -6
- data/sig/whop_sdk/models/user_retrieve_params.rbs +10 -2
- data/sig/whop_sdk/models/{user_update_profile_params.rbs → user_update_params.rbs} +16 -6
- data/sig/whop_sdk/models/verification_status.rbs +2 -0
- data/sig/whop_sdk/models.rbs +35 -1
- data/sig/whop_sdk/resources/ad_campaigns.rbs +41 -0
- data/sig/whop_sdk/resources/ad_groups.rbs +40 -0
- data/sig/whop_sdk/resources/ad_reports.rbs +18 -0
- data/sig/whop_sdk/resources/ads.rbs +26 -0
- data/sig/whop_sdk/resources/bounties.rbs +37 -0
- data/sig/whop_sdk/resources/companies.rbs +9 -0
- data/sig/whop_sdk/resources/conversions.rbs +25 -0
- data/sig/whop_sdk/resources/files.rbs +1 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +1 -0
- data/sig/whop_sdk/resources/forums.rbs +1 -0
- data/sig/whop_sdk/resources/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -0
- data/sig/whop_sdk/resources/support_channels.rbs +2 -1
- data/sig/whop_sdk/resources/users.rbs +11 -8
- metadata +125 -5
|
@@ -44,7 +44,8 @@ module WhopSDK
|
|
|
44
44
|
member_id: String?,
|
|
45
45
|
payment_method_id: String?,
|
|
46
46
|
payment_token_id: String?,
|
|
47
|
-
save_as_draft: bool
|
|
47
|
+
save_as_draft: bool?,
|
|
48
|
+
subscription_billing_anchor_at: Time?
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
class CreateInvoiceInputWithProduct < WhopSDK::Internal::Type::BaseModel
|
|
@@ -80,6 +81,8 @@ module WhopSDK
|
|
|
80
81
|
|
|
81
82
|
attr_accessor save_as_draft: bool?
|
|
82
83
|
|
|
84
|
+
attr_accessor subscription_billing_anchor_at: Time?
|
|
85
|
+
|
|
83
86
|
def initialize: (
|
|
84
87
|
collection_method: WhopSDK::Models::collection_method,
|
|
85
88
|
company_id: String,
|
|
@@ -96,7 +99,8 @@ module WhopSDK
|
|
|
96
99
|
?member_id: String?,
|
|
97
100
|
?payment_method_id: String?,
|
|
98
101
|
?payment_token_id: String?,
|
|
99
|
-
?save_as_draft: bool
|
|
102
|
+
?save_as_draft: bool?,
|
|
103
|
+
?subscription_billing_anchor_at: Time?
|
|
100
104
|
) -> void
|
|
101
105
|
|
|
102
106
|
def to_hash: -> {
|
|
@@ -115,7 +119,8 @@ module WhopSDK
|
|
|
115
119
|
member_id: String?,
|
|
116
120
|
payment_method_id: String?,
|
|
117
121
|
payment_token_id: String?,
|
|
118
|
-
save_as_draft: bool
|
|
122
|
+
save_as_draft: bool?,
|
|
123
|
+
subscription_billing_anchor_at: Time?
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
type plan =
|
|
@@ -250,7 +255,7 @@ module WhopSDK
|
|
|
250
255
|
{
|
|
251
256
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
252
257
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
253
|
-
include_platform_defaults: bool
|
|
258
|
+
include_platform_defaults: bool?
|
|
254
259
|
}
|
|
255
260
|
|
|
256
261
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -258,18 +263,18 @@ module WhopSDK
|
|
|
258
263
|
|
|
259
264
|
attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
260
265
|
|
|
261
|
-
attr_accessor include_platform_defaults: bool
|
|
266
|
+
attr_accessor include_platform_defaults: bool?
|
|
262
267
|
|
|
263
268
|
def initialize: (
|
|
264
269
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
265
270
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
266
|
-
include_platform_defaults: bool
|
|
271
|
+
?include_platform_defaults: bool?
|
|
267
272
|
) -> void
|
|
268
273
|
|
|
269
274
|
def to_hash: -> {
|
|
270
275
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
271
276
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
272
|
-
include_platform_defaults: bool
|
|
277
|
+
include_platform_defaults: bool?
|
|
273
278
|
}
|
|
274
279
|
end
|
|
275
280
|
end
|
|
@@ -392,7 +397,8 @@ module WhopSDK
|
|
|
392
397
|
member_id: String?,
|
|
393
398
|
payment_method_id: String?,
|
|
394
399
|
payment_token_id: String?,
|
|
395
|
-
save_as_draft: bool
|
|
400
|
+
save_as_draft: bool?,
|
|
401
|
+
subscription_billing_anchor_at: Time?
|
|
396
402
|
}
|
|
397
403
|
|
|
398
404
|
class CreateInvoiceInputWithProductID < WhopSDK::Internal::Type::BaseModel
|
|
@@ -428,6 +434,8 @@ module WhopSDK
|
|
|
428
434
|
|
|
429
435
|
attr_accessor save_as_draft: bool?
|
|
430
436
|
|
|
437
|
+
attr_accessor subscription_billing_anchor_at: Time?
|
|
438
|
+
|
|
431
439
|
def initialize: (
|
|
432
440
|
collection_method: WhopSDK::Models::collection_method,
|
|
433
441
|
company_id: String,
|
|
@@ -444,7 +452,8 @@ module WhopSDK
|
|
|
444
452
|
?member_id: String?,
|
|
445
453
|
?payment_method_id: String?,
|
|
446
454
|
?payment_token_id: String?,
|
|
447
|
-
?save_as_draft: bool
|
|
455
|
+
?save_as_draft: bool?,
|
|
456
|
+
?subscription_billing_anchor_at: Time?
|
|
448
457
|
) -> void
|
|
449
458
|
|
|
450
459
|
def to_hash: -> {
|
|
@@ -463,7 +472,8 @@ module WhopSDK
|
|
|
463
472
|
member_id: String?,
|
|
464
473
|
payment_method_id: String?,
|
|
465
474
|
payment_token_id: String?,
|
|
466
|
-
save_as_draft: bool
|
|
475
|
+
save_as_draft: bool?,
|
|
476
|
+
subscription_billing_anchor_at: Time?
|
|
467
477
|
}
|
|
468
478
|
|
|
469
479
|
type plan =
|
|
@@ -598,7 +608,7 @@ module WhopSDK
|
|
|
598
608
|
{
|
|
599
609
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
600
610
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
601
|
-
include_platform_defaults: bool
|
|
611
|
+
include_platform_defaults: bool?
|
|
602
612
|
}
|
|
603
613
|
|
|
604
614
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -606,18 +616,18 @@ module WhopSDK
|
|
|
606
616
|
|
|
607
617
|
attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
608
618
|
|
|
609
|
-
attr_accessor include_platform_defaults: bool
|
|
619
|
+
attr_accessor include_platform_defaults: bool?
|
|
610
620
|
|
|
611
621
|
def initialize: (
|
|
612
622
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
613
623
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
614
|
-
include_platform_defaults: bool
|
|
624
|
+
?include_platform_defaults: bool?
|
|
615
625
|
) -> void
|
|
616
626
|
|
|
617
627
|
def to_hash: -> {
|
|
618
628
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
619
629
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
620
|
-
include_platform_defaults: bool
|
|
630
|
+
include_platform_defaults: bool?
|
|
621
631
|
}
|
|
622
632
|
end
|
|
623
633
|
end
|
|
@@ -14,7 +14,9 @@ module WhopSDK
|
|
|
14
14
|
mailing_address_id: String?,
|
|
15
15
|
member_id: String?,
|
|
16
16
|
payment_method_id: String?,
|
|
17
|
-
plan: WhopSDK::InvoiceUpdateParams::Plan
|
|
17
|
+
plan: WhopSDK::InvoiceUpdateParams::Plan?,
|
|
18
|
+
product_id: String?,
|
|
19
|
+
subscription_billing_anchor_at: Time?
|
|
18
20
|
}
|
|
19
21
|
& WhopSDK::Internal::Type::request_parameters
|
|
20
22
|
|
|
@@ -48,6 +50,10 @@ module WhopSDK
|
|
|
48
50
|
|
|
49
51
|
attr_accessor plan: WhopSDK::InvoiceUpdateParams::Plan?
|
|
50
52
|
|
|
53
|
+
attr_accessor product_id: String?
|
|
54
|
+
|
|
55
|
+
attr_accessor subscription_billing_anchor_at: Time?
|
|
56
|
+
|
|
51
57
|
def initialize: (
|
|
52
58
|
id: String,
|
|
53
59
|
?automatically_finalizes_at: Time?,
|
|
@@ -62,6 +68,8 @@ module WhopSDK
|
|
|
62
68
|
?member_id: String?,
|
|
63
69
|
?payment_method_id: String?,
|
|
64
70
|
?plan: WhopSDK::InvoiceUpdateParams::Plan?,
|
|
71
|
+
?product_id: String?,
|
|
72
|
+
?subscription_billing_anchor_at: Time?,
|
|
65
73
|
?request_options: WhopSDK::request_opts
|
|
66
74
|
) -> void
|
|
67
75
|
|
|
@@ -79,6 +87,8 @@ module WhopSDK
|
|
|
79
87
|
member_id: String?,
|
|
80
88
|
payment_method_id: String?,
|
|
81
89
|
plan: WhopSDK::InvoiceUpdateParams::Plan?,
|
|
90
|
+
product_id: String?,
|
|
91
|
+
subscription_billing_anchor_at: Time?,
|
|
82
92
|
request_options: WhopSDK::RequestOptions
|
|
83
93
|
}
|
|
84
94
|
|
|
@@ -294,7 +304,7 @@ module WhopSDK
|
|
|
294
304
|
{
|
|
295
305
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
296
306
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
297
|
-
include_platform_defaults: bool
|
|
307
|
+
include_platform_defaults: bool?
|
|
298
308
|
}
|
|
299
309
|
|
|
300
310
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -302,18 +312,18 @@ module WhopSDK
|
|
|
302
312
|
|
|
303
313
|
attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
304
314
|
|
|
305
|
-
attr_accessor include_platform_defaults: bool
|
|
315
|
+
attr_accessor include_platform_defaults: bool?
|
|
306
316
|
|
|
307
317
|
def initialize: (
|
|
308
318
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
309
319
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
310
|
-
include_platform_defaults: bool
|
|
320
|
+
?include_platform_defaults: bool?
|
|
311
321
|
) -> void
|
|
312
322
|
|
|
313
323
|
def to_hash: -> {
|
|
314
324
|
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
315
325
|
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
316
|
-
include_platform_defaults: bool
|
|
326
|
+
include_platform_defaults: bool?
|
|
317
327
|
}
|
|
318
328
|
end
|
|
319
329
|
end
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
8
8
|
canceled_at: Time?,
|
|
9
9
|
cancellation_reason: String?,
|
|
10
|
+
checkout_configuration_id: String?,
|
|
10
11
|
company: WhopSDK::Membership::Company,
|
|
11
12
|
created_at: Time,
|
|
12
13
|
currency: WhopSDK::Models::currency?,
|
|
@@ -38,6 +39,8 @@ module WhopSDK
|
|
|
38
39
|
|
|
39
40
|
attr_accessor cancellation_reason: String?
|
|
40
41
|
|
|
42
|
+
attr_accessor checkout_configuration_id: String?
|
|
43
|
+
|
|
41
44
|
attr_accessor company: WhopSDK::Membership::Company
|
|
42
45
|
|
|
43
46
|
attr_accessor created_at: Time
|
|
@@ -80,6 +83,7 @@ module WhopSDK
|
|
|
80
83
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
81
84
|
canceled_at: Time?,
|
|
82
85
|
cancellation_reason: String?,
|
|
86
|
+
checkout_configuration_id: String?,
|
|
83
87
|
company: WhopSDK::Membership::Company,
|
|
84
88
|
created_at: Time,
|
|
85
89
|
currency: WhopSDK::Models::currency?,
|
|
@@ -106,6 +110,7 @@ module WhopSDK
|
|
|
106
110
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
107
111
|
canceled_at: Time?,
|
|
108
112
|
cancellation_reason: String?,
|
|
113
|
+
checkout_configuration_id: String?,
|
|
109
114
|
company: WhopSDK::Membership::Company,
|
|
110
115
|
created_at: Time,
|
|
111
116
|
currency: WhopSDK::Models::currency?,
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
8
8
|
canceled_at: Time?,
|
|
9
9
|
cancellation_reason: String?,
|
|
10
|
+
checkout_configuration_id: String?,
|
|
10
11
|
company: WhopSDK::Models::MembershipListResponse::Company,
|
|
11
12
|
created_at: Time,
|
|
12
13
|
currency: WhopSDK::Models::currency?,
|
|
@@ -37,6 +38,8 @@ module WhopSDK
|
|
|
37
38
|
|
|
38
39
|
attr_accessor cancellation_reason: String?
|
|
39
40
|
|
|
41
|
+
attr_accessor checkout_configuration_id: String?
|
|
42
|
+
|
|
40
43
|
attr_accessor company: WhopSDK::Models::MembershipListResponse::Company
|
|
41
44
|
|
|
42
45
|
attr_accessor created_at: Time
|
|
@@ -77,6 +80,7 @@ module WhopSDK
|
|
|
77
80
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
78
81
|
canceled_at: Time?,
|
|
79
82
|
cancellation_reason: String?,
|
|
83
|
+
checkout_configuration_id: String?,
|
|
80
84
|
company: WhopSDK::Models::MembershipListResponse::Company,
|
|
81
85
|
created_at: Time,
|
|
82
86
|
currency: WhopSDK::Models::currency?,
|
|
@@ -102,6 +106,7 @@ module WhopSDK
|
|
|
102
106
|
cancel_option: WhopSDK::Models::cancel_options?,
|
|
103
107
|
canceled_at: Time?,
|
|
104
108
|
cancellation_reason: String?,
|
|
109
|
+
checkout_configuration_id: String?,
|
|
105
110
|
company: WhopSDK::Models::MembershipListResponse::Company,
|
|
106
111
|
created_at: Time,
|
|
107
112
|
currency: WhopSDK::Models::currency?,
|
|
@@ -10,6 +10,7 @@ module WhopSDK
|
|
|
10
10
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
11
11
|
card_brand: WhopSDK::Models::card_brands?,
|
|
12
12
|
:card_last4 => String?,
|
|
13
|
+
checkout_configuration_id: String?,
|
|
13
14
|
company: WhopSDK::Payment::Company?,
|
|
14
15
|
created_at: Time,
|
|
15
16
|
currency: WhopSDK::Models::currency?,
|
|
@@ -35,6 +36,9 @@ module WhopSDK
|
|
|
35
36
|
refunded_at: Time?,
|
|
36
37
|
resolutions: ::Array[WhopSDK::Payment::Resolution]?,
|
|
37
38
|
retryable: bool,
|
|
39
|
+
settlement_amount: Float,
|
|
40
|
+
settlement_currency: String,
|
|
41
|
+
settlement_exchange_rate: Float?,
|
|
38
42
|
status: WhopSDK::Models::receipt_status?,
|
|
39
43
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
40
44
|
subtotal: Float?,
|
|
@@ -65,6 +69,8 @@ module WhopSDK
|
|
|
65
69
|
|
|
66
70
|
attr_accessor card_last4: String?
|
|
67
71
|
|
|
72
|
+
attr_accessor checkout_configuration_id: String?
|
|
73
|
+
|
|
68
74
|
attr_accessor company: WhopSDK::Payment::Company?
|
|
69
75
|
|
|
70
76
|
attr_accessor created_at: Time
|
|
@@ -115,6 +121,12 @@ module WhopSDK
|
|
|
115
121
|
|
|
116
122
|
attr_accessor retryable: bool
|
|
117
123
|
|
|
124
|
+
attr_accessor settlement_amount: Float
|
|
125
|
+
|
|
126
|
+
attr_accessor settlement_currency: String
|
|
127
|
+
|
|
128
|
+
attr_accessor settlement_exchange_rate: Float?
|
|
129
|
+
|
|
118
130
|
attr_accessor status: WhopSDK::Models::receipt_status?
|
|
119
131
|
|
|
120
132
|
attr_accessor substatus: WhopSDK::Models::friendly_receipt_status
|
|
@@ -146,6 +158,7 @@ module WhopSDK
|
|
|
146
158
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
147
159
|
card_brand: WhopSDK::Models::card_brands?,
|
|
148
160
|
card_last4: String?,
|
|
161
|
+
checkout_configuration_id: String?,
|
|
149
162
|
company: WhopSDK::Payment::Company?,
|
|
150
163
|
created_at: Time,
|
|
151
164
|
currency: WhopSDK::Models::currency?,
|
|
@@ -171,6 +184,9 @@ module WhopSDK
|
|
|
171
184
|
refunded_at: Time?,
|
|
172
185
|
resolutions: ::Array[WhopSDK::Payment::Resolution]?,
|
|
173
186
|
retryable: bool,
|
|
187
|
+
settlement_amount: Float,
|
|
188
|
+
settlement_currency: String,
|
|
189
|
+
settlement_exchange_rate: Float?,
|
|
174
190
|
status: WhopSDK::Models::receipt_status?,
|
|
175
191
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
176
192
|
subtotal: Float?,
|
|
@@ -193,6 +209,7 @@ module WhopSDK
|
|
|
193
209
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
194
210
|
card_brand: WhopSDK::Models::card_brands?,
|
|
195
211
|
:card_last4 => String?,
|
|
212
|
+
checkout_configuration_id: String?,
|
|
196
213
|
company: WhopSDK::Payment::Company?,
|
|
197
214
|
created_at: Time,
|
|
198
215
|
currency: WhopSDK::Models::currency?,
|
|
@@ -218,6 +235,9 @@ module WhopSDK
|
|
|
218
235
|
refunded_at: Time?,
|
|
219
236
|
resolutions: ::Array[WhopSDK::Payment::Resolution]?,
|
|
220
237
|
retryable: bool,
|
|
238
|
+
settlement_amount: Float,
|
|
239
|
+
settlement_currency: String,
|
|
240
|
+
settlement_exchange_rate: Float?,
|
|
221
241
|
status: WhopSDK::Models::receipt_status?,
|
|
222
242
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
223
243
|
subtotal: Float?,
|
|
@@ -582,14 +602,16 @@ module WhopSDK
|
|
|
582
602
|
end
|
|
583
603
|
end
|
|
584
604
|
|
|
585
|
-
type plan = { id: String }
|
|
605
|
+
type plan = { id: String, internal_notes: String? }
|
|
586
606
|
|
|
587
607
|
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
588
608
|
attr_accessor id: String
|
|
589
609
|
|
|
590
|
-
|
|
610
|
+
attr_accessor internal_notes: String?
|
|
611
|
+
|
|
612
|
+
def initialize: (id: String, internal_notes: String?) -> void
|
|
591
613
|
|
|
592
|
-
def to_hash: -> { id: String }
|
|
614
|
+
def to_hash: -> { id: String, internal_notes: String? }
|
|
593
615
|
end
|
|
594
616
|
|
|
595
617
|
type product = { id: String, route: String, title: String }
|
|
@@ -10,6 +10,7 @@ module WhopSDK
|
|
|
10
10
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
11
11
|
card_brand: WhopSDK::Models::card_brands?,
|
|
12
12
|
:card_last4 => String?,
|
|
13
|
+
checkout_configuration_id: String?,
|
|
13
14
|
company: WhopSDK::Models::PaymentListResponse::Company?,
|
|
14
15
|
created_at: Time,
|
|
15
16
|
currency: WhopSDK::Models::currency?,
|
|
@@ -31,6 +32,7 @@ module WhopSDK
|
|
|
31
32
|
refunded_amount: Float?,
|
|
32
33
|
refunded_at: Time?,
|
|
33
34
|
retryable: bool,
|
|
35
|
+
settlement_currency: String,
|
|
34
36
|
status: WhopSDK::Models::receipt_status?,
|
|
35
37
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
36
38
|
subtotal: Float?,
|
|
@@ -60,6 +62,8 @@ module WhopSDK
|
|
|
60
62
|
|
|
61
63
|
attr_accessor card_last4: String?
|
|
62
64
|
|
|
65
|
+
attr_accessor checkout_configuration_id: String?
|
|
66
|
+
|
|
63
67
|
attr_accessor company: WhopSDK::Models::PaymentListResponse::Company?
|
|
64
68
|
|
|
65
69
|
attr_accessor created_at: Time
|
|
@@ -102,6 +106,8 @@ module WhopSDK
|
|
|
102
106
|
|
|
103
107
|
attr_accessor retryable: bool
|
|
104
108
|
|
|
109
|
+
attr_accessor settlement_currency: String
|
|
110
|
+
|
|
105
111
|
attr_accessor status: WhopSDK::Models::receipt_status?
|
|
106
112
|
|
|
107
113
|
attr_accessor substatus: WhopSDK::Models::friendly_receipt_status
|
|
@@ -131,6 +137,7 @@ module WhopSDK
|
|
|
131
137
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
132
138
|
card_brand: WhopSDK::Models::card_brands?,
|
|
133
139
|
card_last4: String?,
|
|
140
|
+
checkout_configuration_id: String?,
|
|
134
141
|
company: WhopSDK::Models::PaymentListResponse::Company?,
|
|
135
142
|
created_at: Time,
|
|
136
143
|
currency: WhopSDK::Models::currency?,
|
|
@@ -152,6 +159,7 @@ module WhopSDK
|
|
|
152
159
|
refunded_amount: Float?,
|
|
153
160
|
refunded_at: Time?,
|
|
154
161
|
retryable: bool,
|
|
162
|
+
settlement_currency: String,
|
|
155
163
|
status: WhopSDK::Models::receipt_status?,
|
|
156
164
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
157
165
|
subtotal: Float?,
|
|
@@ -173,6 +181,7 @@ module WhopSDK
|
|
|
173
181
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
174
182
|
card_brand: WhopSDK::Models::card_brands?,
|
|
175
183
|
:card_last4 => String?,
|
|
184
|
+
checkout_configuration_id: String?,
|
|
176
185
|
company: WhopSDK::Models::PaymentListResponse::Company?,
|
|
177
186
|
created_at: Time,
|
|
178
187
|
currency: WhopSDK::Models::currency?,
|
|
@@ -194,6 +203,7 @@ module WhopSDK
|
|
|
194
203
|
refunded_amount: Float?,
|
|
195
204
|
refunded_at: Time?,
|
|
196
205
|
retryable: bool,
|
|
206
|
+
settlement_currency: String,
|
|
197
207
|
status: WhopSDK::Models::receipt_status?,
|
|
198
208
|
substatus: WhopSDK::Models::friendly_receipt_status,
|
|
199
209
|
subtotal: Float?,
|
|
@@ -404,14 +414,16 @@ module WhopSDK
|
|
|
404
414
|
end
|
|
405
415
|
end
|
|
406
416
|
|
|
407
|
-
type plan = { id: String }
|
|
417
|
+
type plan = { id: String, internal_notes: String? }
|
|
408
418
|
|
|
409
419
|
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
410
420
|
attr_accessor id: String
|
|
411
421
|
|
|
412
|
-
|
|
422
|
+
attr_accessor internal_notes: String?
|
|
423
|
+
|
|
424
|
+
def initialize: (id: String, internal_notes: String?) -> void
|
|
413
425
|
|
|
414
|
-
def to_hash: -> { id: String }
|
|
426
|
+
def to_hash: -> { id: String, internal_notes: String? }
|
|
415
427
|
end
|
|
416
428
|
|
|
417
429
|
type product = { id: String, route: String, title: String }
|
|
@@ -9,6 +9,7 @@ module WhopSDK
|
|
|
9
9
|
| :amazon_pay
|
|
10
10
|
| :apple
|
|
11
11
|
| :apple_pay
|
|
12
|
+
| :au_bank_transfer
|
|
12
13
|
| :au_becs_debit
|
|
13
14
|
| :bacs_debit
|
|
14
15
|
| :bancolombia
|
|
@@ -17,8 +18,13 @@ module WhopSDK
|
|
|
17
18
|
| :bizum
|
|
18
19
|
| :blik
|
|
19
20
|
| :boleto
|
|
21
|
+
| :bre_b
|
|
22
|
+
| :ca_bank_transfer
|
|
20
23
|
| :capchase_pay
|
|
21
24
|
| :card
|
|
25
|
+
| :card_installments_three
|
|
26
|
+
| :card_installments_six
|
|
27
|
+
| :card_installments_twelve
|
|
22
28
|
| :cashapp
|
|
23
29
|
| :claritypay
|
|
24
30
|
| :coinbase
|
|
@@ -30,6 +36,7 @@ module WhopSDK
|
|
|
30
36
|
| :eps
|
|
31
37
|
| :eu_bank_transfer
|
|
32
38
|
| :fpx
|
|
39
|
+
| :gb_bank_transfer
|
|
33
40
|
| :giropay
|
|
34
41
|
| :google_pay
|
|
35
42
|
| :gopay
|
|
@@ -39,12 +46,15 @@ module WhopSDK
|
|
|
39
46
|
| :interac
|
|
40
47
|
| :kakao_pay
|
|
41
48
|
| :klarna
|
|
49
|
+
| :klarna_pay_now
|
|
42
50
|
| :konbini
|
|
43
51
|
| :kr_card
|
|
44
52
|
| :kr_market
|
|
45
53
|
| :kriya
|
|
54
|
+
| :kueski
|
|
46
55
|
| :link
|
|
47
56
|
| :mb_way
|
|
57
|
+
| :m_pesa
|
|
48
58
|
| :mercado_pago
|
|
49
59
|
| :mobilepay
|
|
50
60
|
| :mondu
|
|
@@ -61,6 +71,7 @@ module WhopSDK
|
|
|
61
71
|
| :nz_bank_account
|
|
62
72
|
| :oxxo
|
|
63
73
|
| :p24
|
|
74
|
+
| :pago_efectivo
|
|
64
75
|
| :pse
|
|
65
76
|
| :pay_by_bank
|
|
66
77
|
| :payco
|
|
@@ -77,8 +88,10 @@ module WhopSDK
|
|
|
77
88
|
| :samsung_pay
|
|
78
89
|
| :satispay
|
|
79
90
|
| :scalapay
|
|
91
|
+
| :sencillito
|
|
80
92
|
| :sepa_debit
|
|
81
93
|
| :sequra
|
|
94
|
+
| :servipag
|
|
82
95
|
| :sezzle
|
|
83
96
|
| :shop_pay
|
|
84
97
|
| :shopeepay
|
|
@@ -92,9 +105,12 @@ module WhopSDK
|
|
|
92
105
|
| :twint
|
|
93
106
|
| :upi
|
|
94
107
|
| :us_bank_account
|
|
108
|
+
| :us_bank_transfer
|
|
95
109
|
| :venmo
|
|
96
110
|
| :vipps
|
|
111
|
+
| :webpay
|
|
97
112
|
| :wechat_pay
|
|
113
|
+
| :yape
|
|
98
114
|
| :zip
|
|
99
115
|
| :coinflow
|
|
100
116
|
| :unknown
|
|
@@ -110,6 +126,7 @@ module WhopSDK
|
|
|
110
126
|
AMAZON_PAY: :amazon_pay
|
|
111
127
|
APPLE: :apple
|
|
112
128
|
APPLE_PAY: :apple_pay
|
|
129
|
+
AU_BANK_TRANSFER: :au_bank_transfer
|
|
113
130
|
AU_BECS_DEBIT: :au_becs_debit
|
|
114
131
|
BACS_DEBIT: :bacs_debit
|
|
115
132
|
BANCOLOMBIA: :bancolombia
|
|
@@ -118,8 +135,13 @@ module WhopSDK
|
|
|
118
135
|
BIZUM: :bizum
|
|
119
136
|
BLIK: :blik
|
|
120
137
|
BOLETO: :boleto
|
|
138
|
+
BRE_B: :bre_b
|
|
139
|
+
CA_BANK_TRANSFER: :ca_bank_transfer
|
|
121
140
|
CAPCHASE_PAY: :capchase_pay
|
|
122
141
|
CARD: :card
|
|
142
|
+
CARD_INSTALLMENTS_THREE: :card_installments_three
|
|
143
|
+
CARD_INSTALLMENTS_SIX: :card_installments_six
|
|
144
|
+
CARD_INSTALLMENTS_TWELVE: :card_installments_twelve
|
|
123
145
|
CASHAPP: :cashapp
|
|
124
146
|
CLARITYPAY: :claritypay
|
|
125
147
|
COINBASE: :coinbase
|
|
@@ -131,6 +153,7 @@ module WhopSDK
|
|
|
131
153
|
EPS: :eps
|
|
132
154
|
EU_BANK_TRANSFER: :eu_bank_transfer
|
|
133
155
|
FPX: :fpx
|
|
156
|
+
GB_BANK_TRANSFER: :gb_bank_transfer
|
|
134
157
|
GIROPAY: :giropay
|
|
135
158
|
GOOGLE_PAY: :google_pay
|
|
136
159
|
GOPAY: :gopay
|
|
@@ -140,12 +163,15 @@ module WhopSDK
|
|
|
140
163
|
INTERAC: :interac
|
|
141
164
|
KAKAO_PAY: :kakao_pay
|
|
142
165
|
KLARNA: :klarna
|
|
166
|
+
KLARNA_PAY_NOW: :klarna_pay_now
|
|
143
167
|
KONBINI: :konbini
|
|
144
168
|
KR_CARD: :kr_card
|
|
145
169
|
KR_MARKET: :kr_market
|
|
146
170
|
KRIYA: :kriya
|
|
171
|
+
KUESKI: :kueski
|
|
147
172
|
LINK: :link
|
|
148
173
|
MB_WAY: :mb_way
|
|
174
|
+
M_PESA: :m_pesa
|
|
149
175
|
MERCADO_PAGO: :mercado_pago
|
|
150
176
|
MOBILEPAY: :mobilepay
|
|
151
177
|
MONDU: :mondu
|
|
@@ -162,6 +188,7 @@ module WhopSDK
|
|
|
162
188
|
NZ_BANK_ACCOUNT: :nz_bank_account
|
|
163
189
|
OXXO: :oxxo
|
|
164
190
|
P24: :p24
|
|
191
|
+
PAGO_EFECTIVO: :pago_efectivo
|
|
165
192
|
PSE: :pse
|
|
166
193
|
PAY_BY_BANK: :pay_by_bank
|
|
167
194
|
PAYCO: :payco
|
|
@@ -178,8 +205,10 @@ module WhopSDK
|
|
|
178
205
|
SAMSUNG_PAY: :samsung_pay
|
|
179
206
|
SATISPAY: :satispay
|
|
180
207
|
SCALAPAY: :scalapay
|
|
208
|
+
SENCILLITO: :sencillito
|
|
181
209
|
SEPA_DEBIT: :sepa_debit
|
|
182
210
|
SEQURA: :sequra
|
|
211
|
+
SERVIPAG: :servipag
|
|
183
212
|
SEZZLE: :sezzle
|
|
184
213
|
SHOP_PAY: :shop_pay
|
|
185
214
|
SHOPEEPAY: :shopeepay
|
|
@@ -193,9 +222,12 @@ module WhopSDK
|
|
|
193
222
|
TWINT: :twint
|
|
194
223
|
UPI: :upi
|
|
195
224
|
US_BANK_ACCOUNT: :us_bank_account
|
|
225
|
+
US_BANK_TRANSFER: :us_bank_transfer
|
|
196
226
|
VENMO: :venmo
|
|
197
227
|
VIPPS: :vipps
|
|
228
|
+
WEBPAY: :webpay
|
|
198
229
|
WECHAT_PAY: :wechat_pay
|
|
230
|
+
YAPE: :yape
|
|
199
231
|
ZIP: :zip
|
|
200
232
|
COINFLOW: :coinflow
|
|
201
233
|
UNKNOWN: :unknown
|
|
@@ -3,6 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type plan =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
adaptive_pricing_enabled: bool,
|
|
6
7
|
billing_period: Integer?,
|
|
7
8
|
collect_tax: bool,
|
|
8
9
|
company: WhopSDK::Plan::Company?,
|
|
@@ -34,6 +35,8 @@ module WhopSDK
|
|
|
34
35
|
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
35
36
|
attr_accessor id: String
|
|
36
37
|
|
|
38
|
+
attr_accessor adaptive_pricing_enabled: bool
|
|
39
|
+
|
|
37
40
|
attr_accessor billing_period: Integer?
|
|
38
41
|
|
|
39
42
|
attr_accessor collect_tax: bool
|
|
@@ -88,6 +91,7 @@ module WhopSDK
|
|
|
88
91
|
|
|
89
92
|
def initialize: (
|
|
90
93
|
id: String,
|
|
94
|
+
adaptive_pricing_enabled: bool,
|
|
91
95
|
billing_period: Integer?,
|
|
92
96
|
collect_tax: bool,
|
|
93
97
|
company: WhopSDK::Plan::Company?,
|
|
@@ -118,6 +122,7 @@ module WhopSDK
|
|
|
118
122
|
|
|
119
123
|
def to_hash: -> {
|
|
120
124
|
id: String,
|
|
125
|
+
adaptive_pricing_enabled: bool,
|
|
121
126
|
billing_period: Integer?,
|
|
122
127
|
collect_tax: bool,
|
|
123
128
|
company: WhopSDK::Plan::Company?,
|