Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 5.45 KB

File metadata and controls

27 lines (22 loc) · 5.45 KB

Buyer

Example Usage

import { Buyer } from "@gr4vy/sdk/models/components";

let value: Buyer = {
  merchantAccountId: "default",
  createdAt: new Date("2013-07-16T19:23:00.000+00:00"),
  updatedAt: new Date("2013-07-16T19:23:00.000+00:00"),
};

Fields

Field Type Required Description Example
type "buyer" Always buyer. buyer
id string The ID for the buyer. fe26475d-ec3e-4884-9553-f7356683f7f9
merchantAccountId string ✔️ The ID of the merchant account this buyer belongs to. default
displayName string The display name for the buyer. John Doe
externalIdentifier string The merchant identifier for this buyer. buyer-12345
billingDetails components.BillingDetails The billing name, address, email, and other fields for this buyer.
accountNumber string The buyer account number
createdAt Date ✔️ The date this buyer was created at. 2013-07-16T19:23:00.000+00:00
updatedAt Date ✔️ The date this buyer was last updated at. 2013-07-16T19:23:00.000+00:00