com.gigs.paymentMethod.created

  • Name
    object
    Type
    string
    required
    Description

    Type of object is always event.

  • Name
    id
    Type
    string
    required
    Description

    Unique identifier for the event.

    Example: evt_0SNlurA049MEWV5gNTcQ5A07h3Ol
  • Name
    data
    Type
    object
    required
    Description
    The payment method describes how a payment can be made.
    • Name
      object
      Type
      string
      required
      Description

      Type of object is always paymentMethod.

    • Name
      id
      Type
      string
      required
      Description

      Unique identifier for the payment method.

      Example: pm_1IHCiiI2m82Dc6YnhqGWH6JX
    • Name
      brand
      Type
      nullable string
      required
      Description

      Card brand. Only available for type card.

      Example: visa
      Allowed values: amex, diners, discover, jcb, mastercard, unionpay, visa, unknown
    • Name
      clientSecret
      Type
      nullable string
      required
      Description

      An optional Stripe specific client secret to be used for payment method confirmation.

    • Name
      last4
      Type
      nullable string
      required
      Description

      The last four digits of the card. Only available for type card.

      Example: 4242
    • Name
      provider
      Type
      string
      required
      Description

      The provider of the payment method. Currently only stripe is supported.

    • Name
      status
      Type
      string
      required
      Description

      Status of the payment method.

      Example: available
      Allowed values: available, requiresConfirmation
    • Name
      type
      Type
      string
      required
      Description

      Type of the payment method.

      Example: card
      Allowed values: card, applePay, googlePay
    • Name
      user
      Type
      string
      required
      Description

      Unique identifier for the user of the payment method.

      Example: usr_0SNlurA049MEWV4OpCwsNyC9Kn2d
    • Name
      createdAt
      Type
      string
      required
      Description

      Time when the payment method was created.

      Example: 2021-02-14T19:38:34Z
  • Name
    datacontenttype
    Type
    string
    required
    Description

    The RFC 2046 content-type.

    Example: application/json
    Default: application/json
  • Name
    project
    Type
    string
    required
    Description

    Unique identifier for the project where the event occurred.

    Example: gigs
  • Name
    source
    Type
    string
    required
    Description

    URI identifying the event source.

    Example: https://api.gigs.com
    Default: https://api.gigs.com
  • Name
    specversion
    Type
    string
    required
    Description

    The CloudEvents spec version.

    Example: 1.0
    Default: 1.0
  • Name
    time
    Type
    string
    required
    Description

    Time when the event occurred.

    Example: 2022-03-16T14:12:42Z
  • Name
    type
    Type
    string
    required
    Description

    Type is always com.gigs.paymentMethod.created.

  • Name
    version
    Type
    string
    required
    Description

    API version used to serialize the data and the event itself.

    Default: 2024-08-29

Example

{
  "object": "event",
  "id": "evt_0SNlurA049MEWV5gNTcQ5A07h3Ol",
  "data": {
    "object": "paymentMethod",
    "id": "pm_1IHCiiI2m82Dc6YnhqGWH6JX",
    "brand": "visa",
    "last4": "4242",
    "provider": "stripe",
    "status": "available",
    "type": "card",
    "user": "usr_0SNlurA049MEWV4OpCwsNyC9Kn2d",
    "createdAt": "2021-02-14T19:38:34Z"
  },
  "datacontenttype": "application/json",
  "project": "gigs",
  "source": "https://api.gigs.com",
  "specversion": "1.0",
  "time": "2022-03-16T14:12:42Z",
  "type": "com.gigs.paymentMethod.created",
  "version": "2024-08-29"
}