@internetarchive/donation-form-data-models
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

Donation Form Data Models

The data models for the Internet Archive donation form

Installation

yarn add @internetarchive/donation-form-data-models

Usage

This is meant to be used in conjunction with the Internet Archive donation form, but you can instantiate the models:

import {
  CustomerInfo,
  DonationPaymentInfo,
} from '@internetarchive/donation-form-data-models';

const customer = new CustomerInfo({
  email: 'foo@bar.com',
  firstName: 'Fooey',
  lastName: 'McBarrison',
});

const donationInfo = new DonationPaymentInfo({
  donationType: DonationType.OneTime,
  amount: 3.5,
  coverFees: false,
});

// donationInfo.total = 3.5

Development

Prerequisite

yarn install

Start Development Server

yarn start

Testing

yarn test

Testing via browserstack

yarn test:bs

Linting

yarn lint

Readme

Keywords

none

Package Sidebar

Install

npm i @internetarchive/donation-form-data-models

Weekly Downloads

9

Version

0.3.3

License

AGPL-3.0-only

Unpacked Size

129 kB

Total Files

91

Last publish

Collaborators

  • jeffwklein
  • jim-at-ia
  • tracey.pooh
  • latonv
  • markcarranza
  • ibnesayeed
  • bfalling
  • mitraardron
  • vbanos
  • kngenie
  • iisa
  • cdrini
  • nsharma123
  • dualcnhq