Class: Aws::AppMonetization::Types::CreateSubscriptionCheckoutSessionRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMonetization::Types::CreateSubscriptionCheckoutSessionRequest
- Defined in:
- gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb
Overview
Input for CreateSubscriptionCheckoutSession.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#app_id ⇒ String
The ID of the app the subscription is for.
-
#client_token ⇒ String
A unique, case-sensitive identifier to ensure that the operation completes no more than one time.
-
#plan_id ⇒ String
The plan to subscribe to or change to.
-
#refresh_url ⇒ String
The URL the buyer's browser is sent to if they cancel or abandon the hosted checkout page without completing payment (the checkout page's cancel-redirect target).
-
#return_url ⇒ String
The URL the buyer's browser is sent to after they complete payment at checkout.
-
#scope ⇒ String
Required.
-
#session_duration_seconds ⇒ Integer
The lifetime of the hosted session, in seconds, counted from this call.
-
#user_id ⇒ String
The ID of the end user being subscribed.
Instance Attribute Details
#app_id ⇒ String
The ID of the app the subscription is for.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#client_token ⇒ String
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
A suitable default value is auto-generated. You should normally not need to pass this option.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#plan_id ⇒ String
The plan to subscribe to or change to. Absent to open the hosted pricing page for the buyer to choose; the response then carries planSelectionRequired.pricingUrl.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#refresh_url ⇒ String
The URL the buyer's browser is sent to if they cancel or abandon
the hosted checkout page without completing payment (the checkout
page's cancel-redirect target). Point it at a page where the buyer
can retry. If you omit planId, the buyer chooses a plan on a
hosted pricing page. After that checkout, the buyer returns to the
hosted pages, not to this URL.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#return_url ⇒ String
The URL the buyer's browser is sent to after they complete payment
at checkout. If the buyer is sent to a hosted checkout page, this is
that page's success-redirect target. If you omit planId, the
buyer chooses a plan on a hosted pricing page. After that checkout,
the buyer returns to the hosted pages, not to this URL.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#scope ⇒ String
Required. The environment: live or sandbox.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#session_duration_seconds ⇒ Integer
The lifetime of the hosted session, in seconds, counted from this call. Omit to use the service default. It does not set how long pricingUrl works; see expiresAt.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |
#user_id ⇒ String
The ID of the end user being subscribed. Do not include personally identifiable or otherwise sensitive data in this value.
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1570 class CreateSubscriptionCheckoutSessionRequest < Struct.new( :app_id, :user_id, :plan_id, :return_url, :refresh_url, :session_duration_seconds, :client_token, :scope) SENSITIVE = [] include Aws::Structure end |