{ "type": "object", "name": "Commitment", "properties": { "amount": { "type": "number" }, "currencyIsoCode": { "type": "string" }, "transactionPeriod": { "type": "string" }, "transactionInterval": { "type": "integer" }, "transactionDay": { "type": "string" }, "startDate": { "type": "string" }, "endDate": { "type": "string" }, "campaign": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "outreachSourceCode": { "type": "object", "properties": { "id": { "type": "string" }, "sourceCode": { "type": "string" } }, "required": [ "id", "sourceCode" ] }, "donor": { "type": "object", "properties": { "donorType": { "type": "string" }, "id": { "type": "string" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "phone": { "type": "string" }, "email": { "type": "string" }, "address": { "type": "array", "description": "", "items": { "type": "object", "properties": { "addressType": { "type": "string" }, "street": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" }, "postalCode": { "type": "string" }, "country": { "type": "string" } }, "required": [ "addressType", "street", "city", "state", "postalCode", "country" ] } }, "accountCustomFields": { "type": "array", "description": "", "items": { "type": "object", "properties": { "fieldName": { "type": "string" }, "fieldValue": { "type": "string" } }, "required": [ "fieldName", "fieldValue" ] } } }, "required": [ "donorType", "id", "firstName", "lastName", "phone", "email", "address", "accountCustomFields" ] }, "paymentInstrument": { "type": "object", "properties": { "type": { "type": "string" }, "accountHolderName": { "type": "string" }, "expiryMonth": { "type": "string" }, "expiryYear": { "type": "string" }, "last4": { "type": "string" }, "cardBrand": { "type": "string" }, "bankName": { "type": "string" }, "digitalWalletProvider": { "type": "string" }, "bankAccountHolderType": { "type": "string" }, "bankAccountType": { "type": "string" }, "bankAccountNumber": { "type": "string" }, "bankCode": { "type": "string" }, "gatewayName": { "type": "string" }, "processorName": { "type": "string" }, "processorPaymentReference": { "type": "string" }, "gatewayReference": { "type": "string" } }, "required": [ "type", "accountHolderName", "expiryMonth", "expiryYear", "last4", "cardBrand", "bankName", "digitalWalletProvider", "bankAccountHolderType", "bankAccountType", "bankAccountNumber", "bankCode", "gatewayName", "processorName", "processorPaymentReference", "gatewayReference" ] }, "designations": { "type": "array", "description": "", "items": { "type": "object", "properties": { "designationId": { "type": "string" }, "percent": { "type": "integer" } }, "required": [ "designationId", "percent" ] } }, "firstTransaction": { "type": "object", "properties": { "amount": { "type": "number" }, "receivedDate": { "type": "string" }, "donorCoverAmount": { "type": "number" }, "transactionStatus": { "type": "string" }, "gatewayTransactionFee": { "type": "number" }, "processorTransactionFee": { "type": "number" }, "processorReference": { "type": "string" }, "gatewayReference": { "type": "string" }, "lastGatewayResponseCode": { "type": "string" }, "lastGatewayErrorMessage": { "type": "string" }, "lastGatewayProcessedDateTime": { "type": "string" } }, "required": [ "amount", "receivedDate", "donorCoverAmount", "transactionStatus", "gatewayTransactionFee", "processorTransactionFee", "processorReference", "gatewayReference", "lastGatewayResponseCode", "lastGatewayErrorMessage", "lastGatewayProcessedDateTime" ] }, "giftCommitmentCustomFields": { "type": "array", "description": "", "items": { "type": "object", "properties": { "fieldName": { "type": "string" }, "fieldValue": { "type": "string" } }, "required": [ "fieldName", "fieldValue" ] } }, "giftCommitmentScheduleCustomFields": { "type": "array", "description": "", "items": { "type": "object", "properties": { "fieldName": { "type": "string" }, "fieldValue": { "type": "string" } }, "required": [ "fieldName", "fieldValue" ] } } }, "required": [ "amount", "currencyIsoCode", "transactionPeriod", "transactionInterval", "transactionDay", "startDate", "endDate", "campaign", "outreachSourceCode", "donor", "paymentInstrument", "designations", "firstTransaction", "giftCommitmentCustomFields", "giftCommitmentScheduleCustomFields" ], "$schema": "https://json-structure.org/draft/2020-12/schema" }