class Stripe::CustomerSessionsApi

Defined in:

stripe/api/customer_sessions_api.cr

Constant Summary

POST_CUSTOMER_SESSIONS_MAX_LENGTH_FOR_CUSTOMER = 5000

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Stripe::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Stripe::CustomerSession #

Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.

@required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return [Stripe::CustomerSession]

[View source]
def post_customer_sessions(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return nil


[View source]
def post_customer_sessions_with_http_info(*, components : Stripe::Components | Nil = nil, customer : String | Nil = nil, expand : Array(String) | Nil = nil) : Tuple(Stripe::CustomerSession, Int32, Hash(String, Array(String) | String)) #

<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p> @required @param components [Stripe::Components?] @required @param customer [String?] The ID of an existing customer for which to create the Customer Session. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::CustomerSession, Integer, Hash)] Stripe::CustomerSession, response status code and response headers


[View source]