class Stripe::PaymentLinksApi

Defined in:

stripe/api/payment_links_api.cr

Constant Summary

GET_PAYMENT_LINKS_MAX_LENGTH_FOR_ENDING_BEFORE = 5000
GET_PAYMENT_LINKS_MAX_LENGTH_FOR_STARTING_AFTER = 5000
GET_PAYMENT_LINKS_PAYMENT_LINK_LINE_ITEMS_MAX_LENGTH_FOR_ENDING_BEFORE = 5000
GET_PAYMENT_LINKS_PAYMENT_LINK_LINE_ITEMS_MAX_LENGTH_FOR_PAYMENT_LINK = 5000
GET_PAYMENT_LINKS_PAYMENT_LINK_LINE_ITEMS_MAX_LENGTH_FOR_STARTING_AFTER = 5000
GET_PAYMENT_LINKS_PAYMENT_LINK_MAX_LENGTH_FOR_PAYMENT_LINK = 5000
POST_PAYMENT_LINKS_MAX_LENGTH_FOR_INACTIVE_MESSAGE = 500
POST_PAYMENT_LINKS_PAYMENT_LINK_MAX_LENGTH_FOR_PAYMENT_LINK = 5000
POST_PAYMENT_LINKS_PAYMENT_LINK_VALID_VALUES_FOR_BILLING_ADDRESS_COLLECTION = String.static_array("auto", "required")
POST_PAYMENT_LINKS_PAYMENT_LINK_VALID_VALUES_FOR_CUSTOMER_CREATION = String.static_array("always", "if_required")
POST_PAYMENT_LINKS_PAYMENT_LINK_VALID_VALUES_FOR_PAYMENT_METHOD_COLLECTION = String.static_array("always", "if_required")
POST_PAYMENT_LINKS_VALID_VALUES_FOR_BILLING_ADDRESS_COLLECTION = String.static_array("auto", "required")
POST_PAYMENT_LINKS_VALID_VALUES_FOR_CUSTOMER_CREATION = String.static_array("always", "if_required")
POST_PAYMENT_LINKS_VALID_VALUES_FOR_PAYMENT_METHOD_COLLECTION = String.static_array("always", "if_required")
POST_PAYMENT_LINKS_VALID_VALUES_FOR_PAYMENT_METHOD_TYPES = String.static_array("affirm", "afterpay_clearpay", "alipay", "au_becs_debit", "bacs_debit", "bancontact", "blik", "boleto", "card", "cashapp", "eps", "fpx", "giropay", "grabpay", "ideal", "klarna", "konbini", "link", "mobilepay", "multibanco", "oxxo", "p24", "paynow", "paypal", "pix", "promptpay", "sepa_debit", "sofort", "swish", "twint", "us_bank_account", "wechat_pay", "zip")
POST_PAYMENT_LINKS_VALID_VALUES_FOR_SUBMIT_TYPE = String.static_array("auto", "book", "donate", "pay")

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_get_payment_links(*, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, active : Bool | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_get_payment_links_payment_link(*, payment_link : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_get_payment_links_payment_link_line_items(*, payment_link : String | Nil = nil, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_post_payment_links(*, line_items : Array(Stripe::LineItemsCreateParams) | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::ConsentCollectionParams | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::CustomFieldParam) | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::InvoiceCreationCreateParams | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil = nil, restrictions : Stripe::RestrictionsParams | Nil = nil, shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil = nil, shipping_options : Array(Stripe::ShippingOptionParams) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::SubscriptionDataParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, transfer_data : Stripe::TransferDataParams | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_post_payment_links_payment_link(*, payment_link : String | Nil = nil, active : Bool | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, custom_fields : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage | Nil = nil, invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil = nil, line_items : Array(Stripe::LineItemsUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil = nil, restrictions : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil = nil, shipping_address_collection : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | 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 get_payment_links(*, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, active : Bool | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Stripe::PaymentLinksResourcePaymentLinkList #

Returns a list of your payment links.

@optional @param ending_before [String?] A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param active [Bool?] Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links). @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::PaymentLinksResourcePaymentLinkList]

[View source]
def get_payment_links(*, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, active : Bool | Nil = nil, expand : Array(Array(String)) | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Returns a list of your payment links.</p> @optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param active [Bool?] Only return payment links that are active or inactive (e.g., pass false to list all inactive payment links). @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil


[View source]
def get_payment_links_payment_link(*, payment_link : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Stripe::PaymentLink #

Retrieve a payment link.

@required @param payment_link [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::PaymentLink]

[View source]
def get_payment_links_payment_link(*, payment_link : String | Nil = nil, expand : Array(Array(String)) | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Retrieve a payment link.</p> @required @param payment_link [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil


[View source]
def get_payment_links_payment_link_line_items(*, payment_link : String | Nil = nil, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Stripe::PaymentLinksResourceListLineItems #

When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

@required @param payment_link [String?] @optional @param ending_before [String?] A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::PaymentLinksResourceListLineItems]

[View source]
def get_payment_links_payment_link_line_items(*, payment_link : String | Nil = nil, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, expand : Array(Array(String)) | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>When retrieving a payment link, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p> @required @param payment_link [String?] @optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil


[View source]
def get_payment_links_payment_link_line_items_with_http_info(*, payment_link : String | Nil = nil, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Tuple(Stripe::PaymentLinksResourceListLineItems, Int32, Hash(String, Array(String) | String)) #

<p>When retrieving a payment link, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p> @required @param payment_link [String?] @optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::PaymentLinksResourceListLineItems, Integer, Hash)] Stripe::PaymentLinksResourceListLineItems, response status code and response headers


[View source]
def get_payment_links_payment_link_with_http_info(*, payment_link : String | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Tuple(Stripe::PaymentLink, Int32, Hash(String, Array(String) | String)) #

<p>Retrieve a payment link.</p> @required @param payment_link [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::PaymentLink, Integer, Hash)] Stripe::PaymentLink, response status code and response headers


[View source]
def get_payment_links_with_http_info(*, ending_before : String | Nil = nil, starting_after : String | Nil = nil, limit : Int64 | Nil = nil, active : Bool | Nil = nil, expand : Array(Array(String)) | Nil = nil) : Tuple(Stripe::PaymentLinksResourcePaymentLinkList, Int32, Hash(String, Array(String) | String)) #

<p>Returns a list of your payment links.</p> @optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param active [Bool?] Only return payment links that are active or inactive (e.g., pass false to list all inactive payment links). @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::PaymentLinksResourcePaymentLinkList, Integer, Hash)] Stripe::PaymentLinksResourcePaymentLinkList, response status code and response headers


[View source]
def post_payment_links(*, line_items : Array(Stripe::LineItemsCreateParams) | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::ConsentCollectionParams | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::CustomFieldParam) | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::InvoiceCreationCreateParams | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil = nil, restrictions : Stripe::RestrictionsParams | Nil = nil, shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil = nil, shipping_options : Array(Stripe::ShippingOptionParams) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::SubscriptionDataParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, transfer_data : Stripe::TransferDataParams | Nil = nil) : Stripe::PaymentLink #

Creates a payment link.

@required @param line_items [Array(Stripe::LineItemsCreateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param application_fee_amount [Int32?] The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices. @optional @param application_fee_percent [Float64?] A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to `auto`. @optional @param consent_collection [Stripe::ConsentCollectionParams?] @optional @param currency [String?] Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies) and supported by each line item's price. @optional @param custom_fields [Array(Stripe::CustomFieldParam)?] Collect additional information from your customer using custom fields. Up to 3 fields are supported. @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers). @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [String?] The custom message to be displayed to a customer when a payment link is no longer active. @optional @param invoice_creation [Stripe::InvoiceCreationCreateParams?] @optional @param metadata [Hash(String, String)?] @optional @param on_behalf_of [String?] The account on behalf of which to charge. @optional @param payment_intent_data [Stripe::PaymentIntentDataParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in `subscription` mode. Defaults to `always`. If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials). @optional @param payment_method_types [Array(String)?] The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods) (20+ payment methods [supported](https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support)). @optional @param phone_number_collection [Stripe::PhoneNumberCollectionParams?] @optional @param restrictions [Stripe::RestrictionsParams?] @optional @param shipping_address_collection [Stripe::ShippingAddressCollectionParams?] @optional @param shipping_options [Array(Stripe::ShippingOptionParams)?] The shipping rate options to apply to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. @optional @param submit_type [String?] Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). @optional @param subscription_data [Stripe::SubscriptionDataParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @optional @param transfer_data [Stripe::TransferDataParams?] @return [Stripe::PaymentLink]

[View source]
def post_payment_links(*, line_items : Array(Stripe::LineItemsCreateParams) | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::ConsentCollectionParams | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::CustomFieldParam) | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::InvoiceCreationCreateParams | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil = nil, restrictions : Stripe::RestrictionsParams | Nil = nil, shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil = nil, shipping_options : Array(Stripe::ShippingOptionParams) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::SubscriptionDataParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, transfer_data : Stripe::TransferDataParams | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Creates a payment link.</p> @required @param line_items [Array(Stripe::LineItemsCreateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param application_fee_amount [Int32?] The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices. @optional @param application_fee_percent [Float64?] A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to auto. @optional @param consent_collection [Stripe::ConsentCollectionParams?] @optional @param currency [String?] Three-letter ISO currency code, in lowercase. Must be a supported currency and supported by each line item's price. @optional @param custom_fields [Array(Stripe::CustomFieldParam)?] Collect additional information from your customer using custom fields. Up to 3 fields are supported. @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether checkout sessions created by this payment link create a Customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [String?] The custom message to be displayed to a customer when a payment link is no longer active. @optional @param invoice_creation [Stripe::InvoiceCreationCreateParams?] @optional @param metadata [Hash(String, String)?] @optional @param on_behalf_of [String?] The account on behalf of which to charge. @optional @param payment_intent_data [Stripe::PaymentIntentDataParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in subscription mode. Defaults to always. If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. @optional @param payment_method_types [Array(String)?] The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your payment method settings (20+ payment methods supported). @optional @param phone_number_collection [Stripe::PhoneNumberCollectionParams?] @optional @param restrictions [Stripe::RestrictionsParams?] @optional @param shipping_address_collection [Stripe::ShippingAddressCollectionParams?] @optional @param shipping_options [Array(Stripe::ShippingOptionParams)?] The shipping rate options to apply to checkout sessions created by this payment link. @optional @param submit_type [String?] Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the url property (example: donate.stripe.com). @optional @param subscription_data [Stripe::SubscriptionDataParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @optional @param transfer_data [Stripe::TransferDataParams?] @return nil


[View source]
def post_payment_links_payment_link(*, payment_link : String | Nil = nil, active : Bool | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, custom_fields : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage | Nil = nil, invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil = nil, line_items : Array(Stripe::LineItemsUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil = nil, restrictions : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil = nil, shipping_address_collection : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil) : Stripe::PaymentLink #

Updates a payment link.

@required @param payment_link [String?] @optional @param active [Bool?] Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to `auto`. @optional @param custom_fields [Stripe::PostPaymentLinksPaymentLinkRequestCustomFields?] @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link create a [Customer](https://stripe.com/docs/api/customers). @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage?] @optional @param invoice_creation [Stripe::InvoiceCreationUpdateParams?] @optional @param line_items [Array(Stripe::LineItemsUpdateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param metadata [Hash(String, String)?] @optional @param payment_intent_data [Stripe::PaymentIntentDataUpdateParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in `subscription` mode. Defaults to `always`. If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials). @optional @param payment_method_types [Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes?] @optional @param restrictions [Stripe::PostPaymentLinksPaymentLinkRequestRestrictions?] @optional @param shipping_address_collection [Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection?] @optional @param subscription_data [Stripe::SubscriptionDataUpdateParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @return [Stripe::PaymentLink]

[View source]
def post_payment_links_payment_link(*, payment_link : String | Nil = nil, active : Bool | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, custom_fields : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage | Nil = nil, invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil = nil, line_items : Array(Stripe::LineItemsUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil = nil, restrictions : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil = nil, shipping_address_collection : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Updates a payment link.</p> @required @param payment_link [String?] @optional @param active [Bool?] Whether the payment link's url is active. If false, customers visiting the URL will be shown a page saying that the link has been deactivated. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to auto. @optional @param custom_fields [Stripe::PostPaymentLinksPaymentLinkRequestCustomFields?] @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether checkout sessions created by this payment link create a Customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage?] @optional @param invoice_creation [Stripe::InvoiceCreationUpdateParams?] @optional @param line_items [Array(Stripe::LineItemsUpdateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param metadata [Hash(String, String)?] @optional @param payment_intent_data [Stripe::PaymentIntentDataUpdateParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in subscription mode. Defaults to always. If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. @optional @param payment_method_types [Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes?] @optional @param restrictions [Stripe::PostPaymentLinksPaymentLinkRequestRestrictions?] @optional @param shipping_address_collection [Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection?] @optional @param subscription_data [Stripe::SubscriptionDataUpdateParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @return nil


[View source]
def post_payment_links_payment_link_with_http_info(*, payment_link : String | Nil = nil, active : Bool | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, custom_fields : Stripe::PostPaymentLinksPaymentLinkRequestCustomFields | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage | Nil = nil, invoice_creation : Stripe::InvoiceCreationUpdateParams | Nil = nil, line_items : Array(Stripe::LineItemsUpdateParams) | Nil = nil, metadata : Hash(String, String) | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataUpdateParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes | Nil = nil, restrictions : Stripe::PostPaymentLinksPaymentLinkRequestRestrictions | Nil = nil, shipping_address_collection : Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection | Nil = nil, subscription_data : Stripe::SubscriptionDataUpdateParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil) : Tuple(Stripe::PaymentLink, Int32, Hash(String, Array(String) | String)) #

<p>Updates a payment link.</p> @required @param payment_link [String?] @optional @param active [Bool?] Whether the payment link's url is active. If false, customers visiting the URL will be shown a page saying that the link has been deactivated. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to auto. @optional @param custom_fields [Stripe::PostPaymentLinksPaymentLinkRequestCustomFields?] @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether checkout sessions created by this payment link create a Customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [Stripe::PostPaymentLinksPaymentLinkRequestInactiveMessage?] @optional @param invoice_creation [Stripe::InvoiceCreationUpdateParams?] @optional @param line_items [Array(Stripe::LineItemsUpdateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param metadata [Hash(String, String)?] @optional @param payment_intent_data [Stripe::PaymentIntentDataUpdateParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in subscription mode. Defaults to always. If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. @optional @param payment_method_types [Stripe::PostPaymentLinksPaymentLinkRequestPaymentMethodTypes?] @optional @param restrictions [Stripe::PostPaymentLinksPaymentLinkRequestRestrictions?] @optional @param shipping_address_collection [Stripe::PostPaymentLinksPaymentLinkRequestShippingAddressCollection?] @optional @param subscription_data [Stripe::SubscriptionDataUpdateParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @return [Tuple(Stripe::PaymentLink, Integer, Hash)] Stripe::PaymentLink, response status code and response headers


[View source]
def post_payment_links_with_http_info(*, line_items : Array(Stripe::LineItemsCreateParams) | Nil = nil, after_completion : Stripe::AfterCompletionParams | Nil = nil, allow_promotion_codes : Bool | Nil = nil, application_fee_amount : Int64 | Nil = nil, application_fee_percent : Float64 | Nil = nil, automatic_tax : Stripe::AutomaticTaxParams | Nil = nil, billing_address_collection : String | Nil = nil, consent_collection : Stripe::ConsentCollectionParams | Nil = nil, currency : String | Nil = nil, custom_fields : Array(Stripe::CustomFieldParam) | Nil = nil, custom_text : Stripe::CustomTextParam | Nil = nil, customer_creation : String | Nil = nil, expand : Array(String) | Nil = nil, inactive_message : String | Nil = nil, invoice_creation : Stripe::InvoiceCreationCreateParams | Nil = nil, metadata : Hash(String, String) | Nil = nil, on_behalf_of : String | Nil = nil, payment_intent_data : Stripe::PaymentIntentDataParams | Nil = nil, payment_method_collection : String | Nil = nil, payment_method_types : Array(String) | Nil = nil, phone_number_collection : Stripe::PhoneNumberCollectionParams | Nil = nil, restrictions : Stripe::RestrictionsParams | Nil = nil, shipping_address_collection : Stripe::ShippingAddressCollectionParams | Nil = nil, shipping_options : Array(Stripe::ShippingOptionParams) | Nil = nil, submit_type : String | Nil = nil, subscription_data : Stripe::SubscriptionDataParams | Nil = nil, tax_id_collection : Stripe::TaxIdCollectionParams | Nil = nil, transfer_data : Stripe::TransferDataParams | Nil = nil) : Tuple(Stripe::PaymentLink, Int32, Hash(String, Array(String) | String)) #

<p>Creates a payment link.</p> @required @param line_items [Array(Stripe::LineItemsCreateParams)?] The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported. @optional @param after_completion [Stripe::AfterCompletionParams?] @optional @param allow_promotion_codes [Bool?] Enables user redeemable promotion codes. @optional @param application_fee_amount [Int32?] The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices. @optional @param application_fee_percent [Float64?] A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. @optional @param automatic_tax [Stripe::AutomaticTaxParams?] @optional @param billing_address_collection [String?] Configuration for collecting the customer's billing address. Defaults to auto. @optional @param consent_collection [Stripe::ConsentCollectionParams?] @optional @param currency [String?] Three-letter ISO currency code, in lowercase. Must be a supported currency and supported by each line item's price. @optional @param custom_fields [Array(Stripe::CustomFieldParam)?] Collect additional information from your customer using custom fields. Up to 3 fields are supported. @optional @param custom_text [Stripe::CustomTextParam?] @optional @param customer_creation [String?] Configures whether checkout sessions created by this payment link create a Customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param inactive_message [String?] The custom message to be displayed to a customer when a payment link is no longer active. @optional @param invoice_creation [Stripe::InvoiceCreationCreateParams?] @optional @param metadata [Hash(String, String)?] @optional @param on_behalf_of [String?] The account on behalf of which to charge. @optional @param payment_intent_data [Stripe::PaymentIntentDataParams?] @optional @param payment_method_collection [String?] Specify whether Checkout should collect a payment method. When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. Can only be set in subscription mode. Defaults to always. If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial. @optional @param payment_method_types [Array(String)?] The list of payment method types that customers can use. If no value is passed, Stripe will dynamically show relevant payment methods from your payment method settings (20+ payment methods supported). @optional @param phone_number_collection [Stripe::PhoneNumberCollectionParams?] @optional @param restrictions [Stripe::RestrictionsParams?] @optional @param shipping_address_collection [Stripe::ShippingAddressCollectionParams?] @optional @param shipping_options [Array(Stripe::ShippingOptionParams)?] The shipping rate options to apply to checkout sessions created by this payment link. @optional @param submit_type [String?] Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the url property (example: donate.stripe.com). @optional @param subscription_data [Stripe::SubscriptionDataParams?] @optional @param tax_id_collection [Stripe::TaxIdCollectionParams?] @optional @param transfer_data [Stripe::TransferDataParams?] @return [Tuple(Stripe::PaymentLink, Integer, Hash)] Stripe::PaymentLink, response status code and response headers


[View source]