Salesforce · Schema

Commitment1

Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Properties

Name Type Description
amount number
type string
currencyIsoCode string
startDate string
endDate string
campaign object
outreachSourceCode object
donor object
paymentInstrument object
designations array
giftCommitmentCustomFields array
giftCommitmentScheduleCustomFields array
View JSON Schema on GitHub

JSON Schema

salesforce-commitment1-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "amount": {
      "type": "number",
      "example": 42.5
    },
    "type": {
      "type": "string",
      "example": "example_value"
    },
    "currencyIsoCode": {
      "type": "string",
      "example": "example_value"
    },
    "startDate": {
      "type": "string",
      "example": "example_value"
    },
    "endDate": {
      "type": "string",
      "example": "example_value"
    },
    "campaign": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "example": "abc123"
        }
      },
      "required": [
        "id"
      ]
    },
    "outreachSourceCode": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "example": "abc123"
        },
        "sourceCode": {
          "type": "string",
          "example": "example_value"
        }
      },
      "required": [
        "id",
        "sourceCode"
      ]
    },
    "donor": {
      "type": "object",
      "properties": {
        "donorType": {
          "type": "string",
          "example": "example_value"
        },
        "id": {
          "type": "string",
          "example": "abc123"
        },
        "firstName": {
          "type": "string",
          "example": "example_value"
        },
        "lastName": {
          "type": "string",
          "example": "example_value"
        },
        "phone": {
          "type": "string",
          "example": "example_value"
        },
        "email": {
          "type": "string",
          "example": "user@example.com"
        },
        "address": {
          "type": "array",
          "description": "",
          "example": [],
          "items": {
            "type": "object",
            "properties": {
              "addressType": {
                "type": "string",
                "example": "example_value"
              },
              "street": {
                "type": "string",
                "example": "example_value"
              },
              "city": {
                "type": "string",
                "example": "example_value"
              },
              "state": {
                "type": "string",
                "example": "example_value"
              },
              "postalCode": {
                "type": "string",
                "example": "example_value"
              },
              "country": {
                "type": "string",
                "example": 42
              }
            },
            "required": [
              "addressType",
              "street",
              "city",
              "state",
              "postalCode",
              "country"
            ]
          }
        },
        "accountCustomFields": {
          "type": "array",
          "description": "",
          "example": 42,
          "items": {
            "type": "object",
            "properties": {
              "fieldName": {
                "type": "string",
                "example": "example_value"
              },
              "fieldValue": {
                "type": "string",
                "example": "example_value"
              }
            },
            "required": [
              "fieldName",
              "fieldValue"
            ]
          }
        }
      },
      "required": [
        "donorType",
        "id",
        "firstName",
        "lastName",
        "phone",
        "email",
        "address",
        "accountCustomFields"
      ]
    },
    "paymentInstrument": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "example_value"
        },
        "accountHolderName": {
          "type": "string",
          "example": 42
        },
        "expiryMonth": {
          "type": "string",
          "example": "example_value"
        },
        "expiryYear": {
          "type": "string",
          "example": "example_value"
        },
        "last4": {
          "type": "string",
          "example": "example_value"
        },
        "cardBrand": {
          "type": "string",
          "example": "example_value"
        },
        "bankName": {
          "type": "string",
          "example": "example_value"
        },
        "digitalWalletProvider": {
          "type": "string",
          "example": "example_value"
        },
        "bankAccountHolderType": {
          "type": "string",
          "example": 42
        },
        "bankAccountType": {
          "type": "string",
          "example": 42
        },
        "bankAccountNumber": {
          "type": "string",
          "example": 42
        },
        "bankCode": {
          "type": "string",
          "example": "example_value"
        },
        "gatewayName": {
          "type": "string",
          "example": "example_value"
        },
        "processorName": {
          "type": "string",
          "example": "example_value"
        },
        "processorPaymentReference": {
          "type": "string",
          "example": "example_value"
        },
        "gatewayReference": {
          "type": "string",
          "example": "example_value"
        }
      },
      "required": [
        "type",
        "accountHolderName",
        "expiryMonth",
        "expiryYear",
        "last4",
        "cardBrand",
        "bankName",
        "digitalWalletProvider",
        "bankAccountHolderType",
        "bankAccountType",
        "bankAccountNumber",
        "bankCode",
        "gatewayName",
        "processorName",
        "processorPaymentReference",
        "gatewayReference"
      ]
    },
    "designations": {
      "type": "array",
      "description": "",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "designationId": {
            "type": "string",
            "example": "500123"
          },
          "percent": {
            "type": "integer",
            "example": 10
          }
        },
        "required": [
          "designationId",
          "percent"
        ]
      }
    },
    "giftCommitmentCustomFields": {
      "type": "array",
      "description": "",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string",
            "example": "example_value"
          },
          "fieldValue": {
            "type": "string",
            "example": "example_value"
          }
        },
        "required": [
          "fieldName",
          "fieldValue"
        ]
      }
    },
    "giftCommitmentScheduleCustomFields": {
      "type": "array",
      "description": "",
      "example": [],
      "items": {
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string",
            "example": "example_value"
          },
          "fieldValue": {
            "type": "string",
            "example": "example_value"
          }
        },
        "required": [
          "fieldName",
          "fieldValue"
        ]
      }
    }
  },
  "required": [
    "amount",
    "type",
    "currencyIsoCode",
    "startDate",
    "endDate",
    "campaign",
    "outreachSourceCode",
    "donor",
    "paymentInstrument",
    "designations",
    "giftCommitmentCustomFields",
    "giftCommitmentScheduleCustomFields"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Commitment1"
}