View Source Stripe.PaymentIntentAmountDetailsLineItem (stripity_stripe v3.3.1)

Summary

Types

t()

The payment_intent_amount_details_line_item type.

Functions

Lists all LineItems of a given PaymentIntent.

Types

@type t() :: %Stripe.PaymentIntentAmountDetailsLineItem{
  discount_amount: integer() | nil,
  id: binary(),
  object: binary(),
  payment_method_options: term() | nil,
  product_code: binary() | nil,
  product_name: binary(),
  quantity: integer(),
  tax: term() | nil,
  unit_cost: integer(),
  unit_of_measure: binary() | nil
}

The payment_intent_amount_details_line_item type.

  • discount_amount The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.

This field is mutually exclusive with the amount_details[discount_amount] field.

  • id Unique identifier for the object.
  • object String representing the object's type. Objects of the same type share the same value.
  • payment_method_options Payment method-specific information for line items.
  • product_code The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
  • product_name The product name of the line item. Required for L3 rates. At most 1024 characters long.

For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.

  • quantity The quantity of items. Required for L3 rates. An integer greater than 0.
  • tax Contains information about the tax on the item.
  • unit_cost The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0.
  • unit_of_measure A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.

Functions

Link to this function

list(intent, params \\ %{}, opts \\ [])

View Source
@spec list(
  intent :: binary(),
  params :: %{
    optional(:ending_before) => binary(),
    optional(:expand) => [binary()],
    optional(:limit) => integer(),
    optional(:starting_after) => binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}

Lists all LineItems of a given PaymentIntent.

Details

  • Method: get
  • Path: /v1/payment_intents/{intent}/amount_details_line_items