UNPKG

@getgreenspark/impacts

Version:
87 lines (86 loc) 2.13 kB
/** * Impact * Here you can find documentation and examples for Greenspark Impact API * * OpenAPI spec version: v1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { PlantingSessionResponse } from './planting-session-response'; import { PlasticCollectionResponse } from './plastic-collection-response'; /** * * @export * @interface TransactionPurchase */ export interface TransactionPurchase { /** * The id of the purchase. * @type {string} * @memberof TransactionPurchase */ id: string; /** * The type of the purchase. * @type {string} * @memberof TransactionPurchase */ type: TransactionPurchaseTypeEnum; /** * The impact amount of the purchase. * @type {number} * @memberof TransactionPurchase */ amount: number; /** * The project id of the purchase. * @type {string} * @memberof TransactionPurchase */ projectId: string; /** * The receipt url of the purchase. * @type {string} * @memberof TransactionPurchase */ receiptUrl: string; /** * The provider of the impacts. * @type {string} * @memberof TransactionPurchase */ provider: string; /** * The start of the period the purchase made for. * @type {string} * @memberof TransactionPurchase */ periodStartDate: string; /** * The end of the period the purchase made for. * @type {string} * @memberof TransactionPurchase */ periodEndDate: string; /** * The evidences of a purchase. * @type {Array<PlantingSessionResponse | PlasticCollectionResponse>} * @memberof TransactionPurchase */ evidences: Array<PlantingSessionResponse | PlasticCollectionResponse>; } /** * @export * @enum {string} */ export declare enum TransactionPurchaseTypeEnum { Trees = "trees", Carbon = "carbon", Plastic = "plastic", Kelp = "kelp", Water = "water", Bees = "bees" }