Class: CheckoutSdk::Sessions::SessionRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/sessions/session_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source: CardSource.new, authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR, authentication_category: CheckoutSdk::Sessions::Category::PAYMENT, challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE, transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE) ⇒ SessionRequest

Returns a new instance of SessionRequest.



78
79
80
81
82
83
84
85
86
87
88
# File 'lib/checkout_sdk/sessions/session_request.rb', line 78

def initialize(source: CardSource.new,
               authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
               authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
               challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
               transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
  @source = source
  @authentication_type = authentication_type
  @authentication_category = authentication_category
  @challenge_indicator = challenge_indicator
  @transaction_type = transaction_type
end

Instance Attribute Details

#account_infoCardHolderAccountInfo

Returns:

  • (CardHolderAccountInfo)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#amountInteger

Returns:

  • (Integer)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#authentication_categoryString

Returns Category.

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#authentication_typeString

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#billing_descriptorSessionsBillingDescriptor



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#challenge_indicatorString

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#channel_dataChannelData

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#completionCompletion

Returns:

  • (Completion)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#currencyString

Returns Common::Currency.

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#initial_transactionInitialTransaction

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#installmentInstallment

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#marketplaceSessionMarketplaceData



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#merchant_risk_infoMerchantRiskInfo

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#optimizationOptimization

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#prior_transaction_referenceString

Returns:

  • (String)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#processing_channel_idString

Returns:

  • (String)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#recurringRecurring

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#referenceString

Returns:

  • (String)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#shipping_addressSessionAddress

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#shipping_address_matches_billingTrueClass, FalseClass

Returns:

  • (TrueClass, FalseClass)


54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#sourceSessionSource

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end

#transaction_typeString

Returns TransactionType.

Returns:



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/checkout_sdk/sessions/session_request.rb', line 54

class SessionRequest
  attr_accessor :source,
                :amount,
                :currency,
                :processing_channel_id,
                :marketplace,
                :authentication_type,
                :authentication_category,
                :account_info,
                :challenge_indicator,
                :billing_descriptor,
                :reference,
                :merchant_risk_info,
                :prior_transaction_reference,
                :transaction_type,
                :shipping_address,
                :shipping_address_matches_billing,
                :completion,
                :channel_data,
                :recurring,
                :installment,
                :optimization,
                :initial_transaction

  def initialize(source: CardSource.new,
                 authentication_type: CheckoutSdk::Sessions::AuthenticationType::REGULAR,
                 authentication_category: CheckoutSdk::Sessions::Category::PAYMENT,
                 challenge_indicator: CheckoutSdk::Common::ChallengeIndicator::NO_PREFERENCE,
                 transaction_type: CheckoutSdk::Sessions::TransactionType::GOODS_SERVICE)
    @source = source
    @authentication_type = authentication_type
    @authentication_category = authentication_category
    @challenge_indicator = challenge_indicator
    @transaction_type = transaction_type
  end
end