Skip to content

Files

28 lines (23 loc) · 2.25 KB

accountaddpaymentmethodresponse.md

File metadata and controls

28 lines (23 loc) · 2.25 KB

AccountAddPaymentMethodResponse

Example Usage

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

let value: AccountAddPaymentMethodResponse = {
  contentType: "<value>",
  statusCode: 415,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  paymentMethod: {
    dotTag: PaymentMethodAfterpayTag.Afterpay,
  },
};

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
paymentMethod components.PaymentMethod The payment method was successfully added