Salesforce · JSON Structure

Salesforce Commitment1 Structure

Type: object Properties: 12 Required: 12
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Commitment1 is a JSON Structure definition published by Salesforce, describing 12 properties, of which 12 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

amount type currencyIsoCode startDate endDate campaign outreachSourceCode donor paymentInstrument designations giftCommitmentCustomFields giftCommitmentScheduleCustomFields

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Commitment1",
  "properties": {
    "amount": {
      "type": "number"
    },
    "type": {
      "type": "string"
    },
    "currencyIsoCode": {
      "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"
        ]
      }
    },
    "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",
    "type",
    "currencyIsoCode",
    "startDate",
    "endDate",
    "campaign",
    "outreachSourceCode",
    "donor",
    "paymentInstrument",
    "designations",
    "giftCommitmentCustomFields",
    "giftCommitmentScheduleCustomFields"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}