<commit_before>type: object
description: Payment response
required:
  - id
  - created_on
  - amount
  - currency
  - status
  - _links
properties:
  id:
    description: Payment unique identifier
    allOf:
      - $ref: '#/definitions/PaymentId'
  created_on: # not sure about created vs requested
    description: The date/time the payment was created
    allOf:
      - $ref: '#/definitions/ServerTimestamp'
  source:
    description: The source of the payment
    type: object
    allOf:
      - $ref: '#/definitions/PaymentSource'
  amount:
    type: integer
    description: The original payment amount 
    example: 6540
  currency:
    type: string
    description: The three-letter ISO currency code of the payment
    example: USD
    maxLength: 3
    minLength: 3
  payment_type:
    type: string
    description: Must be specified for card payments where the cardholder is not present (recurring or Merchant Offline Telephone Order)
    enum:
      - Regular
      - Recurring
      - MOTO
    default: Regular
    example: Recurring
  reference:
    type: string
    description: Your reference for the payment
    example: ORD-5023-4E89
  description:
    type: string
    description: A description of the payment
    example: Set of 3 masks
  status:
    type: string
    description: The current status of the payment
    enum:
      - Authorised
      - Voided
      - Deferred Capture
      - Captured
      - Partially Refunded
      - Refunded
      - Declined
  3ds:
    type: boolean
    description: Whether this payment was processed with 3D-Secure
    default: false
    example: true
  3ds_downgraded:
    type: boolean
    description: Whether this was a 3DS transaction, downgraded to Non-3DS (when `attempt_n3d` is specified)
    example: false
  flagged:
    type: boolean
    description: Whether the payment was flagged by a risk check
    default: false
    example: true
  customer:
    type: object
    description: The customer to which this payment is linked
    properties:
      id:
        type: string
        description: The unique identifier of the customer. This can be passed as a source when making a payment
        example: cus_y3oqhf46pyzuxjbcn2giaqnb44
      email:
        type: string
        description: The customer email address
        example: <EMAIL>
      name:
        type: string
        description: The customer name
        example: <NAME>
    required:
      - id
  billing_descriptor:
    $ref: '#/definitions/BillingDescriptor'
  shipping:
    type: object
    description: The payment shipping details
    properties:
      address:
        description: The shipping address
        allOf:
          - $ref: '#/definitions/Address'
      phone:
        description: The phone number associated with the shipping address
        allOf:
          - $ref: '#/definitions/PhoneNumber'
  payment_ip:
    description: The IP address used to make the payment
    allOf:
      - $ref: '#/definitions/IPAddress'
  recipient:
    $ref: '#/definitions/PaymentRecipient'
  destinations:
    type: array
    items:
      - $ref: '#/definitions/PaymentDestination'
    minItems: 0
    description: |
      For OpenPay payments, destinations determine the proportion of the payment amount credited to other OpenPay accounts
  metadata:
    type: object
    description: Set of key/value pairs that you can attach to a payment. It can be useful for storing additional information in a structured format
    example:
      coupon_code: "NY2018"
      partner_id: 123989
  _links:
    type: object
    description: The links related to the payment
    minItems: 2
    required:
      - self
      - actions
    properties:
      self:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: The URI of the payment
      actions:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to the payment's associated actions
      void:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to void the payment, where applicable
      capture:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to capture the payment, where applicable
      refund:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to refund the payment, where applicable
    example:
      self:
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44"
      actions: 
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/actions"
      refund:
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/refund"
      response-code:
        href: "https://api.checkout.com/refs/response-codes/10000"
          
        
    <commit_msg>Removed response code link from payment<commit_after>type: object
description: Payment response
required:
  - id
  - created_on
  - amount
  - currency
  - status
  - _links
properties:
  id:
    description: Payment unique identifier
    allOf:
      - $ref: '#/definitions/PaymentId'
  created_on: # not sure about created vs requested
    description: The date/time the payment was created
    allOf:
      - $ref: '#/definitions/ServerTimestamp'
  source:
    description: The source of the payment
    type: object
    allOf:
      - $ref: '#/definitions/PaymentSource'
  amount:
    type: integer
    description: The original payment amount 
    example: 6540
  currency:
    type: string
    description: The three-letter ISO currency code of the payment
    example: USD
    maxLength: 3
    minLength: 3
  payment_type:
    type: string
    description: Must be specified for card payments where the cardholder is not present (recurring or Merchant Offline Telephone Order)
    enum:
      - Regular
      - Recurring
      - MOTO
    default: Regular
    example: Recurring
  reference:
    type: string
    description: Your reference for the payment
    example: ORD-5023-4E89
  description:
    type: string
    description: A description of the payment
    example: Set of 3 masks
  status:
    type: string
    description: The current status of the payment
    enum:
      - Authorised
      - Voided
      - Deferred Capture
      - Captured
      - Partially Refunded
      - Refunded
      - Declined
  3ds:
    type: boolean
    description: Whether this payment was processed with 3D-Secure
    default: false
    example: true
  3ds_downgraded:
    type: boolean
    description: Whether this was a 3DS transaction, downgraded to Non-3DS (when `attempt_n3d` is specified)
    example: false
  flagged:
    type: boolean
    description: Whether the payment was flagged by a risk check
    default: false
    example: true
  customer:
    type: object
    description: The customer to which this payment is linked
    properties:
      id:
        type: string
        description: The unique identifier of the customer. This can be passed as a source when making a payment
        example: cus_y3oqhf46pyzuxjbcn2giaqnb44
      email:
        type: string
        description: The customer email address
        example: <EMAIL>
      name:
        type: string
        description: The customer name
        example: <NAME>
    required:
      - id
  billing_descriptor:
    $ref: '#/definitions/BillingDescriptor'
  shipping:
    type: object
    description: The payment shipping details
    properties:
      address:
        description: The shipping address
        allOf:
          - $ref: '#/definitions/Address'
      phone:
        description: The phone number associated with the shipping address
        allOf:
          - $ref: '#/definitions/PhoneNumber'
  payment_ip:
    description: The IP address used to make the payment
    allOf:
      - $ref: '#/definitions/IPAddress'
  recipient:
    $ref: '#/definitions/PaymentRecipient'
  destinations:
    type: array
    items:
      - $ref: '#/definitions/PaymentDestination'
    minItems: 0
    description: |
      For OpenPay payments, destinations determine the proportion of the payment amount credited to other OpenPay accounts
  metadata:
    type: object
    description: Set of key/value pairs that you can attach to a payment. It can be useful for storing additional information in a structured format
    example:
      coupon_code: "NY2018"
      partner_id: 123989
  _links:
    type: object
    description: The links related to the payment
    minItems: 2
    required:
      - self
      - actions
    properties:
      self:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: The URI of the payment
      actions:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to the payment's associated actions
      void:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to void the payment, where applicable
      capture:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to capture the payment, where applicable
      refund:
        type: object
        allOf:
          - $ref: '#/definitions/Link'
        description: A link to refund the payment, where applicable
    example:
      self:
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44"
      actions: 
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/actions"
      refund:
        href: "https://api.checkout.com/payments/pay_y3oqhf46pyzuxjbcn2giaqnb44/refund"
    
{'fraction_non_alphanumeric': 0.06814415907207953, 'fraction_numerical': 0.012116818558409279, 'mean_word_length': 2.33690393918452, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5093151', 'n_tokens_mistral': 2778, 'n_tokens_neox': 2702, 'n_words': 936}