oc · docs
documentation

@orangecheck/me-client


@orangecheck/me-client / PayPeriod

Interface: PayPeriod

Defined in: me-client/src/pay-periods.ts:13

When a project pays its users. Paying is optional: a project may pay always, only in promos, or never. A pay period is a stretch of time in which its events earn its users sats; outside every period an event earns and costs nothing, and me.ochk.io records nothing.

GET /api/integrator/config returns a project's pay_periods, past ones included. Periods that have started never change, so any earning can be checked against the period that paid it. Mirrors me.ochk.io's lib/events/pay-periods.ts.

Properties

PropertyTypeDescriptionDefined in
<a id="property-ends_at"></a> ends_atstring | nullWhen it stops, or null: until the project turns it off.me-client/src/pay-periods.ts:20
<a id="property-id"></a> idstring-me-client/src/pay-periods.ts:14
<a id="property-name"></a> namestringA promo's name ("Launch week"); empty for plain paying.me-client/src/pay-periods.ts:16
<a id="property-starts_at"></a> starts_atstringWhen paying starts, ISO-8601 UTC.me-client/src/pay-periods.ts:18