Class: CheckoutSdk::AgenticCommerce::DelegatedPaymentAllowance

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb

Overview

Spend-limit allowance attached to a delegated payment.

Instance Attribute Summary collapse

Instance Attribute Details

#checkout_session_idString

Returns:

  • (String)


19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end

#currencyString

Returns Common::Currency.

Returns:



19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end

#expires_atString

Returns RFC 3339 timestamp.

Returns:

  • (String)

    RFC 3339 timestamp.



19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end

#max_amountInteger

Returns Maximum amount in the minor currency unit.

Returns:

  • (Integer)

    Maximum amount in the minor currency unit.



19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end

#merchant_idString

Returns:

  • (String)


19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end

#reasonString

Returns e.g. “purchase”.

Returns:

  • (String)

    e.g. “purchase”.



19
20
21
22
23
24
25
26
# File 'lib/checkout_sdk/agentic_commerce/delegated_payment_allowance.rb', line 19

class DelegatedPaymentAllowance
  attr_accessor :reason,
                :max_amount,
                :currency,
                :checkout_session_id,
                :merchant_id,
                :expires_at
end