Class: Aws::AppMonetization::Types::CreateOneTimeCheckoutSessionRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb

Overview

Input for CreateOneTimeCheckoutSession.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#app_id ⇒ String

The ID of the app the purchase is for.

Returns:

  • (String)


1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :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.

Returns:

  • (String)


1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :client_token,
  :scope)
  SENSITIVE = []
  include Aws::Structure
end

#items ⇒ Array<Types::CheckoutItem>

The purchasables to buy. Each line is a usage pack or add-on and the number of units to buy.

Returns:



1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :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 (the checkout page's success-redirect target). A one-time purchase always requires payment, so there is no cancel-redirect field on this operation.

Returns:

  • (String)


1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :client_token,
  :scope)
  SENSITIVE = []
  include Aws::Structure
end

#scope ⇒ String

Required. The environment: live or sandbox.

Returns:

  • (String)


1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :client_token,
  :scope)
  SENSITIVE = []
  include Aws::Structure
end

#user_id ⇒ String

The ID of the end user making the purchase. Do not include personally identifiable or otherwise sensitive data in this value.

Returns:

  • (String)


1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1369

class CreateOneTimeCheckoutSessionRequest < Struct.new(
  :app_id,
  :user_id,
  :items,
  :return_url,
  :client_token,
  :scope)
  SENSITIVE = []
  include Aws::Structure
end