0.3.5 • Published 11 months ago
@internetarchive/donation-form-data-models v0.3.5
Donation Form Data Models
The data models for the Internet Archive donation form
Installation
yarn add @internetarchive/donation-form-data-modelsUsage
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.5Development
Prerequisite
yarn installStart Development Server
yarn startTesting
yarn testTesting via browserstack
yarn test:bsLinting
yarn lint0.3.4-alpha.1
11 months ago
0.3.5-alpha.1
11 months ago
0.3.5
11 months ago
0.3.4
11 months ago
0.3.3
3 years ago
0.3.2
4 years ago
0.3.2-alpha.4
4 years ago
0.3.2-alpha.3
4 years ago
0.3.2-alpha.2
4 years ago
0.3.2-alpha.1
4 years ago
0.3.1
5 years ago
0.3.1-alpha.1
5 years ago
0.3.0
5 years ago
0.0.1-alpha.4
5 years ago
0.0.1-alpha.2
5 years ago
0.0.1-alpha.3
5 years ago
0.0.1-alpha.1
5 years ago