dodopayments 2.9.0 → 2.10.0
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 +23 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/transport/base_client.rb +2 -0
- data/lib/dodopayments/internal/type/union.rb +21 -7
- data/lib/dodopayments/models/abandoned_checkout_detected_webhook_event.rb +4 -16
- data/lib/dodopayments/models/abandoned_checkout_recovered_webhook_event.rb +4 -16
- data/lib/dodopayments/models/checkout_session_request.rb +15 -2
- data/lib/dodopayments/models/credit_added_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_balance_low_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_deducted_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_manual_adjustment_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_overage_charged_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_overage_reset_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_rolled_over_webhook_event.rb +4 -16
- data/lib/dodopayments/models/credit_rollover_forfeited_webhook_event.rb +4 -16
- data/lib/dodopayments/models/digital_product_delivery.rb +14 -7
- data/lib/dodopayments/models/digital_product_delivery_file.rb +12 -5
- data/lib/dodopayments/models/dispute_accepted_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_challenged_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_lost_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_opened_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dispute_won_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dunning_recovered_webhook_event.rb +4 -16
- data/lib/dodopayments/models/dunning_started_webhook_event.rb +4 -16
- data/lib/dodopayments/models/entitlement.rb +31 -20
- data/lib/dodopayments/models/entitlement_create_params.rb +3 -3
- data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +10 -17
- data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +10 -17
- data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +10 -17
- data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +10 -17
- data/lib/dodopayments/models/entitlement_update_params.rb +3 -3
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +50 -32
- data/lib/dodopayments/models/entitlements/file_upload_response.rb +3 -3
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +14 -9
- data/lib/dodopayments/models/integration_config.rb +70 -27
- data/lib/dodopayments/models/integration_config_response.rb +88 -48
- data/lib/dodopayments/models/license_key_created_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment.rb +153 -3
- data/lib/dodopayments/models/payment_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_create_params.rb +15 -3
- data/lib/dodopayments/models/payment_create_response.rb +14 -3
- data/lib/dodopayments/models/payment_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_processing_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payment_succeeded_webhook_event.rb +4 -16
- data/lib/dodopayments/models/payout_list_response.rb +6 -3
- data/lib/dodopayments/models/price.rb +20 -48
- data/lib/dodopayments/models/product.rb +6 -8
- data/lib/dodopayments/models/product_create_params.rb +3 -3
- data/lib/dodopayments/models/product_entitlement_summary.rb +5 -5
- data/lib/dodopayments/models/product_item_req.rb +42 -1
- data/lib/dodopayments/models/product_update_params.rb +3 -3
- data/lib/dodopayments/models/refund_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/refund_succeeded_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription.rb +153 -5
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_create_params.rb +15 -3
- data/lib/dodopayments/models/subscription_create_response.rb +14 -3
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_list_response.rb +36 -5
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_preview_change_plan_response.rb +21 -49
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +4 -16
- data/lib/dodopayments/models/subscription_update_payment_method_params.rb +12 -30
- data/lib/dodopayments/models/subscription_updated_webhook_event.rb +4 -16
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +41 -39
- data/lib/dodopayments/models/unwrap_webhook_event.rb +41 -39
- data/lib/dodopayments/models/update_subscription_plan_req.rb +17 -6
- data/lib/dodopayments/models/webhook_event_type.rb +3 -0
- data/lib/dodopayments/models/webhook_payload.rb +57 -143
- data/lib/dodopayments/resources/checkout_sessions.rb +8 -4
- data/lib/dodopayments/resources/entitlements/files.rb +3 -10
- data/lib/dodopayments/resources/entitlements/grants.rb +2 -4
- data/lib/dodopayments/resources/entitlements.rb +2 -2
- data/lib/dodopayments/resources/payments.rb +4 -2
- data/lib/dodopayments/resources/subscriptions.rb +12 -6
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/abandoned_checkout_detected_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/checkout_session_request.rbi +14 -0
- data/rbi/dodopayments/models/credit_added_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/credit_balance_low_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_deducted_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_expired_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_manual_adjustment_webhook_event.rbi +4 -39
- data/rbi/dodopayments/models/credit_overage_charged_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/credit_overage_reset_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/credit_rolled_over_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/credit_rollover_forfeited_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/digital_product_delivery.rbi +15 -5
- data/rbi/dodopayments/models/digital_product_delivery_file.rbi +11 -0
- data/rbi/dodopayments/models/dispute_accepted_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_cancelled_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_challenged_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/dispute_expired_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_lost_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/dispute_opened_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dispute_won_webhook_event.rbi +4 -29
- data/rbi/dodopayments/models/dunning_recovered_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/dunning_started_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/entitlement.rbi +35 -20
- data/rbi/dodopayments/models/entitlement_create_params.rbi +8 -5
- data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +8 -40
- data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +8 -40
- data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +8 -39
- data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +8 -40
- data/rbi/dodopayments/models/entitlement_update_params.rbi +4 -4
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +54 -20
- data/rbi/dodopayments/models/entitlements/file_upload_response.rbi +4 -4
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +10 -4
- data/rbi/dodopayments/models/integration_config.rbi +141 -26
- data/rbi/dodopayments/models/integration_config_response.rbi +153 -38
- data/rbi/dodopayments/models/license_key_created_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/payment.rbi +170 -2
- data/rbi/dodopayments/models/payment_cancelled_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/payment_create_params.rbi +14 -2
- data/rbi/dodopayments/models/payment_create_response.rbi +12 -2
- data/rbi/dodopayments/models/payment_failed_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/payment_processing_webhook_event.rbi +4 -34
- data/rbi/dodopayments/models/payment_succeeded_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/price.rbi +18 -90
- data/rbi/dodopayments/models/product.rbi +4 -8
- data/rbi/dodopayments/models/product_entitlement_summary.rbi +8 -8
- data/rbi/dodopayments/models/product_item_req.rbi +74 -3
- data/rbi/dodopayments/models/refund_failed_webhook_event.rbi +4 -31
- data/rbi/dodopayments/models/refund_succeeded_webhook_event.rbi +4 -33
- data/rbi/dodopayments/models/subscription.rbi +173 -4
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_create_params.rbi +14 -2
- data/rbi/dodopayments/models/subscription_create_response.rbi +12 -2
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_list_response.rbi +67 -4
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +4 -40
- data/rbi/dodopayments/models/subscription_preview_change_plan_response.rbi +18 -123
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/subscription_update_payment_method_params.rbi +12 -96
- data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +4 -36
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +18 -8
- data/rbi/dodopayments/models/webhook_event_type.rbi +15 -0
- data/rbi/dodopayments/models/webhook_payload.rbi +48 -466
- data/rbi/dodopayments/resources/checkout_sessions.rbi +12 -0
- data/rbi/dodopayments/resources/entitlements/files.rbi +3 -10
- data/rbi/dodopayments/resources/entitlements/grants.rbi +2 -4
- data/rbi/dodopayments/resources/entitlements.rbi +4 -4
- data/rbi/dodopayments/resources/payments.rbi +6 -1
- data/rbi/dodopayments/resources/subscriptions.rbi +22 -9
- data/sig/dodopayments/models/abandoned_checkout_detected_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/abandoned_checkout_recovered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/checkout_session_request.rbs +5 -0
- data/sig/dodopayments/models/credit_added_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_balance_low_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_deducted_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_manual_adjustment_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_overage_charged_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_overage_reset_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_rolled_over_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/credit_rollover_forfeited_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_accepted_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_challenged_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_lost_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_opened_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dispute_won_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dunning_recovered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/dunning_started_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement.rbs +8 -10
- data/sig/dodopayments/models/entitlement_create_params.rbs +6 -4
- data/sig/dodopayments/models/entitlement_grant_created_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_delivered_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlement_grant_revoked_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +4 -11
- data/sig/dodopayments/models/integration_config.rbs +28 -4
- data/sig/dodopayments/models/integration_config_response.rbs +28 -9
- data/sig/dodopayments/models/license_key_created_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment.rbs +97 -0
- data/sig/dodopayments/models/payment_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_create_params.rbs +5 -0
- data/sig/dodopayments/models/payment_create_response.rbs +5 -0
- data/sig/dodopayments/models/payment_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_processing_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/payment_succeeded_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/price.rbs +15 -45
- data/sig/dodopayments/models/product_item_req.rbs +27 -3
- data/sig/dodopayments/models/refund_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/refund_succeeded_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription.rbs +97 -0
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_create_params.rbs +5 -0
- data/sig/dodopayments/models/subscription_create_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_list_response.rbs +24 -0
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_preview_change_plan_response.rbs +15 -45
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/subscription_update_payment_method_params.rbs +8 -48
- data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +4 -14
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +5 -0
- data/sig/dodopayments/models/webhook_event_type.rbs +6 -0
- data/sig/dodopayments/models/webhook_payload.rbs +50 -213
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/entitlements.rbs +1 -1
- data/sig/dodopayments/resources/payments.rbs +1 -0
- data/sig/dodopayments/resources/subscriptions.rbs +3 -0
- metadata +2 -2
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"entitlement_grant.failed"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class EntitlementGrantFailedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"entitlement_grant.failed"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"entitlement_grant.failed"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"entitlement_grant.failed"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"entitlement_grant.failed"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
ENTITLEMENT_GRANT_FAILED: :"entitlement_grant.failed"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::EntitlementGrantFailedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"entitlement_grant.revoked"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class EntitlementGrantRevokedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"entitlement_grant.revoked"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"entitlement_grant.revoked"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Entitlements::EntitlementGrant,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"entitlement_grant.revoked"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"entitlement_grant.revoked"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
ENTITLEMENT_GRANT_REVOKED: :"entitlement_grant.revoked"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::EntitlementGrantRevokedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
created_at: Time,
|
|
11
11
|
customer_id: String,
|
|
12
12
|
entitlement_id: String,
|
|
13
|
-
|
|
13
|
+
metadata: ::Hash[Symbol, String],
|
|
14
14
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
15
15
|
updated_at: Time,
|
|
16
16
|
delivered_at: Time?,
|
|
@@ -18,7 +18,6 @@ module Dodopayments
|
|
|
18
18
|
error_code: String?,
|
|
19
19
|
error_message: String?,
|
|
20
20
|
license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
21
|
-
metadata: top,
|
|
22
21
|
oauth_expires_at: Time?,
|
|
23
22
|
oauth_url: String?,
|
|
24
23
|
payment_id: String?,
|
|
@@ -38,7 +37,7 @@ module Dodopayments
|
|
|
38
37
|
|
|
39
38
|
attr_accessor entitlement_id: String
|
|
40
39
|
|
|
41
|
-
attr_accessor
|
|
40
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
42
41
|
|
|
43
42
|
attr_accessor status: Dodopayments::Models::Entitlements::EntitlementGrant::status
|
|
44
43
|
|
|
@@ -54,10 +53,6 @@ module Dodopayments
|
|
|
54
53
|
|
|
55
54
|
attr_accessor license_key: Dodopayments::Entitlements::LicenseKeyGrant?
|
|
56
55
|
|
|
57
|
-
attr_reader metadata: top?
|
|
58
|
-
|
|
59
|
-
def metadata=: (top) -> top
|
|
60
|
-
|
|
61
56
|
attr_accessor oauth_expires_at: Time?
|
|
62
57
|
|
|
63
58
|
attr_accessor oauth_url: String?
|
|
@@ -76,7 +71,7 @@ module Dodopayments
|
|
|
76
71
|
created_at: Time,
|
|
77
72
|
customer_id: String,
|
|
78
73
|
entitlement_id: String,
|
|
79
|
-
|
|
74
|
+
metadata: ::Hash[Symbol, String],
|
|
80
75
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
81
76
|
updated_at: Time,
|
|
82
77
|
?delivered_at: Time?,
|
|
@@ -84,7 +79,6 @@ module Dodopayments
|
|
|
84
79
|
?error_code: String?,
|
|
85
80
|
?error_message: String?,
|
|
86
81
|
?license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
87
|
-
?metadata: top,
|
|
88
82
|
?oauth_expires_at: Time?,
|
|
89
83
|
?oauth_url: String?,
|
|
90
84
|
?payment_id: String?,
|
|
@@ -99,7 +93,7 @@ module Dodopayments
|
|
|
99
93
|
created_at: Time,
|
|
100
94
|
customer_id: String,
|
|
101
95
|
entitlement_id: String,
|
|
102
|
-
|
|
96
|
+
metadata: ::Hash[Symbol, String],
|
|
103
97
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
104
98
|
updated_at: Time,
|
|
105
99
|
delivered_at: Time?,
|
|
@@ -107,7 +101,6 @@ module Dodopayments
|
|
|
107
101
|
error_code: String?,
|
|
108
102
|
error_message: String?,
|
|
109
103
|
license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
110
|
-
metadata: top,
|
|
111
104
|
oauth_expires_at: Time?,
|
|
112
105
|
oauth_url: String?,
|
|
113
106
|
payment_id: String?,
|
|
@@ -13,16 +13,40 @@ module Dodopayments
|
|
|
13
13
|
module IntegrationConfig
|
|
14
14
|
extend Dodopayments::Internal::Type::Union
|
|
15
15
|
|
|
16
|
-
type github_config =
|
|
16
|
+
type github_config =
|
|
17
|
+
{
|
|
18
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
19
|
+
target_id: String
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
19
|
-
attr_accessor permission:
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission
|
|
20
24
|
|
|
21
25
|
attr_accessor target_id: String
|
|
22
26
|
|
|
23
|
-
def initialize: (
|
|
27
|
+
def initialize: (
|
|
28
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
29
|
+
target_id: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
34
|
+
target_id: String
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
+
|
|
39
|
+
module Permission
|
|
40
|
+
extend Dodopayments::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
PULL: :pull
|
|
43
|
+
PUSH: :push
|
|
44
|
+
ADMIN: :admin
|
|
45
|
+
MAINTAIN: :maintain
|
|
46
|
+
TRIAGE: :triage
|
|
24
47
|
|
|
25
|
-
|
|
48
|
+
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfig::GitHubConfig::permission]
|
|
49
|
+
end
|
|
26
50
|
end
|
|
27
51
|
|
|
28
52
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -13,16 +13,40 @@ module Dodopayments
|
|
|
13
13
|
module IntegrationConfigResponse
|
|
14
14
|
extend Dodopayments::Internal::Type::Union
|
|
15
15
|
|
|
16
|
-
type github_config =
|
|
16
|
+
type github_config =
|
|
17
|
+
{
|
|
18
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
19
|
+
target_id: String
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
19
|
-
attr_accessor permission:
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission
|
|
20
24
|
|
|
21
25
|
attr_accessor target_id: String
|
|
22
26
|
|
|
23
|
-
def initialize: (
|
|
27
|
+
def initialize: (
|
|
28
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
29
|
+
target_id: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
34
|
+
target_id: String
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
+
|
|
39
|
+
module Permission
|
|
40
|
+
extend Dodopayments::Internal::Type::Enum
|
|
24
41
|
|
|
25
|
-
|
|
42
|
+
PULL: :pull
|
|
43
|
+
PUSH: :push
|
|
44
|
+
ADMIN: :admin
|
|
45
|
+
MAINTAIN: :maintain
|
|
46
|
+
TRIAGE: :triage
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission]
|
|
49
|
+
end
|
|
26
50
|
end
|
|
27
51
|
|
|
28
52
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -125,7 +149,6 @@ module Dodopayments
|
|
|
125
149
|
expires_in: Integer,
|
|
126
150
|
file_id: String,
|
|
127
151
|
filename: String,
|
|
128
|
-
source: String,
|
|
129
152
|
content_type: String?,
|
|
130
153
|
file_size: Integer?
|
|
131
154
|
}
|
|
@@ -139,8 +162,6 @@ module Dodopayments
|
|
|
139
162
|
|
|
140
163
|
attr_accessor filename: String
|
|
141
164
|
|
|
142
|
-
attr_accessor source: String
|
|
143
|
-
|
|
144
165
|
attr_accessor content_type: String?
|
|
145
166
|
|
|
146
167
|
attr_accessor file_size: Integer?
|
|
@@ -150,7 +171,6 @@ module Dodopayments
|
|
|
150
171
|
expires_in: Integer,
|
|
151
172
|
file_id: String,
|
|
152
173
|
filename: String,
|
|
153
|
-
source: String,
|
|
154
174
|
?content_type: String?,
|
|
155
175
|
?file_size: Integer?
|
|
156
176
|
) -> void
|
|
@@ -160,7 +180,6 @@ module Dodopayments
|
|
|
160
180
|
expires_in: Integer,
|
|
161
181
|
file_id: String,
|
|
162
182
|
filename: String,
|
|
163
|
-
source: String,
|
|
164
183
|
content_type: String?,
|
|
165
184
|
file_size: Integer?
|
|
166
185
|
}
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::LicenseKey,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"license_key.created"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class LicenseKeyCreatedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"license_key.created"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::LicenseKey,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"license_key.created"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::LicenseKey,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"license_key.created"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"license_key.created"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
LICENSE_KEY_CREATED: :"license_key.created"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::LicenseKeyCreatedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -24,6 +24,7 @@ module Dodopayments
|
|
|
24
24
|
checkout_session_id: String?,
|
|
25
25
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
26
26
|
discount_id: String?,
|
|
27
|
+
discounts: ::Array[Dodopayments::Payment::Discount]?,
|
|
27
28
|
error_code: String?,
|
|
28
29
|
error_message: String?,
|
|
29
30
|
invoice_id: String?,
|
|
@@ -85,6 +86,8 @@ module Dodopayments
|
|
|
85
86
|
|
|
86
87
|
attr_accessor discount_id: String?
|
|
87
88
|
|
|
89
|
+
attr_accessor discounts: ::Array[Dodopayments::Payment::Discount]?
|
|
90
|
+
|
|
88
91
|
attr_accessor error_code: String?
|
|
89
92
|
|
|
90
93
|
attr_accessor error_message: String?
|
|
@@ -136,6 +139,7 @@ module Dodopayments
|
|
|
136
139
|
?checkout_session_id: String?,
|
|
137
140
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
138
141
|
?discount_id: String?,
|
|
142
|
+
?discounts: ::Array[Dodopayments::Payment::Discount]?,
|
|
139
143
|
?error_code: String?,
|
|
140
144
|
?error_message: String?,
|
|
141
145
|
?invoice_id: String?,
|
|
@@ -175,6 +179,7 @@ module Dodopayments
|
|
|
175
179
|
checkout_session_id: String?,
|
|
176
180
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
177
181
|
discount_id: String?,
|
|
182
|
+
discounts: ::Array[Dodopayments::Payment::Discount]?,
|
|
178
183
|
error_code: String?,
|
|
179
184
|
error_message: String?,
|
|
180
185
|
invoice_id: String?,
|
|
@@ -191,6 +196,98 @@ module Dodopayments
|
|
|
191
196
|
updated_at: Time?
|
|
192
197
|
}
|
|
193
198
|
|
|
199
|
+
type discount =
|
|
200
|
+
{
|
|
201
|
+
amount: Integer,
|
|
202
|
+
business_id: String,
|
|
203
|
+
code: String,
|
|
204
|
+
created_at: Time,
|
|
205
|
+
discount_id: String,
|
|
206
|
+
metadata: ::Hash[Symbol, String],
|
|
207
|
+
position: Integer,
|
|
208
|
+
preserve_on_plan_change: bool,
|
|
209
|
+
restricted_to: ::Array[String],
|
|
210
|
+
times_used: Integer,
|
|
211
|
+
type: Dodopayments::Models::discount_type,
|
|
212
|
+
cycles_remaining: Integer?,
|
|
213
|
+
expires_at: Time?,
|
|
214
|
+
name: String?,
|
|
215
|
+
subscription_cycles: Integer?,
|
|
216
|
+
usage_limit: Integer?
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
class Discount < Dodopayments::Internal::Type::BaseModel
|
|
220
|
+
attr_accessor amount: Integer
|
|
221
|
+
|
|
222
|
+
attr_accessor business_id: String
|
|
223
|
+
|
|
224
|
+
attr_accessor code: String
|
|
225
|
+
|
|
226
|
+
attr_accessor created_at: Time
|
|
227
|
+
|
|
228
|
+
attr_accessor discount_id: String
|
|
229
|
+
|
|
230
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
231
|
+
|
|
232
|
+
attr_accessor position: Integer
|
|
233
|
+
|
|
234
|
+
attr_accessor preserve_on_plan_change: bool
|
|
235
|
+
|
|
236
|
+
attr_accessor restricted_to: ::Array[String]
|
|
237
|
+
|
|
238
|
+
attr_accessor times_used: Integer
|
|
239
|
+
|
|
240
|
+
attr_accessor type: Dodopayments::Models::discount_type
|
|
241
|
+
|
|
242
|
+
attr_accessor cycles_remaining: Integer?
|
|
243
|
+
|
|
244
|
+
attr_accessor expires_at: Time?
|
|
245
|
+
|
|
246
|
+
attr_accessor name: String?
|
|
247
|
+
|
|
248
|
+
attr_accessor subscription_cycles: Integer?
|
|
249
|
+
|
|
250
|
+
attr_accessor usage_limit: Integer?
|
|
251
|
+
|
|
252
|
+
def initialize: (
|
|
253
|
+
amount: Integer,
|
|
254
|
+
business_id: String,
|
|
255
|
+
code: String,
|
|
256
|
+
created_at: Time,
|
|
257
|
+
discount_id: String,
|
|
258
|
+
metadata: ::Hash[Symbol, String],
|
|
259
|
+
position: Integer,
|
|
260
|
+
preserve_on_plan_change: bool,
|
|
261
|
+
restricted_to: ::Array[String],
|
|
262
|
+
times_used: Integer,
|
|
263
|
+
type: Dodopayments::Models::discount_type,
|
|
264
|
+
?cycles_remaining: Integer?,
|
|
265
|
+
?expires_at: Time?,
|
|
266
|
+
?name: String?,
|
|
267
|
+
?subscription_cycles: Integer?,
|
|
268
|
+
?usage_limit: Integer?
|
|
269
|
+
) -> void
|
|
270
|
+
|
|
271
|
+
def to_hash: -> {
|
|
272
|
+
amount: Integer,
|
|
273
|
+
business_id: String,
|
|
274
|
+
code: String,
|
|
275
|
+
created_at: Time,
|
|
276
|
+
discount_id: String,
|
|
277
|
+
metadata: ::Hash[Symbol, String],
|
|
278
|
+
position: Integer,
|
|
279
|
+
preserve_on_plan_change: bool,
|
|
280
|
+
restricted_to: ::Array[String],
|
|
281
|
+
times_used: Integer,
|
|
282
|
+
type: Dodopayments::Models::discount_type,
|
|
283
|
+
cycles_remaining: Integer?,
|
|
284
|
+
expires_at: Time?,
|
|
285
|
+
name: String?,
|
|
286
|
+
subscription_cycles: Integer?,
|
|
287
|
+
usage_limit: Integer?
|
|
288
|
+
}
|
|
289
|
+
end
|
|
290
|
+
|
|
194
291
|
type product_cart = { product_id: String, quantity: Integer }
|
|
195
292
|
|
|
196
293
|
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Payment,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"payment.cancelled"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class PaymentCancelledWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"payment.cancelled"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Payment,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"payment.cancelled"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Payment,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"payment.cancelled"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"payment.cancelled"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PAYMENT_CANCELLED: :"payment.cancelled"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::PaymentCancelledWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -9,6 +9,7 @@ module Dodopayments
|
|
|
9
9
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
10
10
|
billing_currency: Dodopayments::Models::currency?,
|
|
11
11
|
discount_code: String?,
|
|
12
|
+
discount_codes: ::Array[String]?,
|
|
12
13
|
:force_3ds => bool?,
|
|
13
14
|
metadata: ::Hash[Symbol, String],
|
|
14
15
|
payment_link: bool?,
|
|
@@ -40,6 +41,8 @@ module Dodopayments
|
|
|
40
41
|
|
|
41
42
|
attr_accessor discount_code: String?
|
|
42
43
|
|
|
44
|
+
attr_accessor discount_codes: ::Array[String]?
|
|
45
|
+
|
|
43
46
|
attr_accessor force_3ds: bool?
|
|
44
47
|
|
|
45
48
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
@@ -76,6 +79,7 @@ module Dodopayments
|
|
|
76
79
|
?allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
77
80
|
?billing_currency: Dodopayments::Models::currency?,
|
|
78
81
|
?discount_code: String?,
|
|
82
|
+
?discount_codes: ::Array[String]?,
|
|
79
83
|
?force_3ds: bool?,
|
|
80
84
|
?metadata: ::Hash[Symbol, String],
|
|
81
85
|
?payment_link: bool?,
|
|
@@ -97,6 +101,7 @@ module Dodopayments
|
|
|
97
101
|
allowed_payment_method_types: ::Array[Dodopayments::Models::payment_method_types]?,
|
|
98
102
|
billing_currency: Dodopayments::Models::currency?,
|
|
99
103
|
discount_code: String?,
|
|
104
|
+
discount_codes: ::Array[String]?,
|
|
100
105
|
:force_3ds => bool?,
|
|
101
106
|
metadata: ::Hash[Symbol, String],
|
|
102
107
|
payment_link: bool?,
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
payment_id: String,
|
|
9
9
|
total_amount: Integer,
|
|
10
10
|
discount_id: String?,
|
|
11
|
+
discount_ids: ::Array[String]?,
|
|
11
12
|
expires_on: Time?,
|
|
12
13
|
payment_link: String?,
|
|
13
14
|
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -26,6 +27,8 @@ module Dodopayments
|
|
|
26
27
|
|
|
27
28
|
attr_accessor discount_id: String?
|
|
28
29
|
|
|
30
|
+
attr_accessor discount_ids: ::Array[String]?
|
|
31
|
+
|
|
29
32
|
attr_accessor expires_on: Time?
|
|
30
33
|
|
|
31
34
|
attr_accessor payment_link: String?
|
|
@@ -39,6 +42,7 @@ module Dodopayments
|
|
|
39
42
|
payment_id: String,
|
|
40
43
|
total_amount: Integer,
|
|
41
44
|
?discount_id: String?,
|
|
45
|
+
?discount_ids: ::Array[String]?,
|
|
42
46
|
?expires_on: Time?,
|
|
43
47
|
?payment_link: String?,
|
|
44
48
|
?product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -51,6 +55,7 @@ module Dodopayments
|
|
|
51
55
|
payment_id: String,
|
|
52
56
|
total_amount: Integer,
|
|
53
57
|
discount_id: String?,
|
|
58
|
+
discount_ids: ::Array[String]?,
|
|
54
59
|
expires_on: Time?,
|
|
55
60
|
payment_link: String?,
|
|
56
61
|
product_cart: ::Array[Dodopayments::OneTimeProductCartItem]?
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Payment,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"payment.failed"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class PaymentFailedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"payment.failed"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Payment,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"payment.failed"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Payment,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"payment.failed"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"payment.failed"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PAYMENT_FAILED: :"payment.failed"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::PaymentFailedWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|
|
@@ -5,7 +5,7 @@ module Dodopayments
|
|
|
5
5
|
business_id: String,
|
|
6
6
|
data: Dodopayments::Payment,
|
|
7
7
|
timestamp: Time,
|
|
8
|
-
type:
|
|
8
|
+
type: :"payment.processing"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class PaymentProcessingWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
@@ -15,31 +15,21 @@ module Dodopayments
|
|
|
15
15
|
|
|
16
16
|
attr_accessor timestamp: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor type:
|
|
18
|
+
attr_accessor type: :"payment.processing"
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
business_id: String,
|
|
22
22
|
data: Dodopayments::Payment,
|
|
23
23
|
timestamp: Time,
|
|
24
|
-
type:
|
|
24
|
+
?type: :"payment.processing"
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
business_id: String,
|
|
29
29
|
data: Dodopayments::Payment,
|
|
30
30
|
timestamp: Time,
|
|
31
|
-
type:
|
|
31
|
+
type: :"payment.processing"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type type_ = :"payment.processing"
|
|
35
|
-
|
|
36
|
-
module Type
|
|
37
|
-
extend Dodopayments::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PAYMENT_PROCESSING: :"payment.processing"
|
|
40
|
-
|
|
41
|
-
def self?.values: -> ::Array[Dodopayments::Models::PaymentProcessingWebhookEvent::type_]
|
|
42
|
-
end
|
|
43
33
|
end
|
|
44
34
|
end
|
|
45
35
|
end
|