Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 2.39 KB

testingcreditcardgetresponse.md

File metadata and controls

32 lines (27 loc) · 2.39 KB

TestingCreditCardGetResponse

Example Usage

import { CreditCardNetwork } from "@boltpay/bolt-typescript-sdk/models/components";
import { TestingCreditCardGetResponse } from "@boltpay/bolt-typescript-sdk/models/operations";

let value: TestingCreditCardGetResponse = {
  contentType: "<value>",
  statusCode: 102,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  testCreditCard: {
    network: CreditCardNetwork.Visa,
    bin: "411111",
    last4: "1004",
    expiration: new Date("2023-10-31:T06:00:00Z"),
    token: "a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0",
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
testCreditCard components.TestCreditCard Successfully generated test credit card details