Salesforce · Schema

CreatePledgeCommitmentsRequest

Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Properties

Name Type Description
processingOptions object
commitments array
View JSON Schema on GitHub

JSON Schema

salesforce-create-pledge-commitments-request-schema.json Raw ↑
{
  "type": "object",
  "properties": {
    "processingOptions": {
      "type": "object",
      "properties": {
        "donorOptions": {
          "type": "object",
          "properties": {
            "defaultUpdateLogic": {
              "type": "string",
              "example": "example_value"
            }
          },
          "required": [
            "defaultUpdateLogic"
          ]
        }
      },
      "required": [
        "donorOptions"
      ]
    },
    "commitments": {
      "type": "array",
      "description": "",
      "example": [],
      "items": {
        "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": "object"
                    },
                    "street": {
                      "type": "object"
                    },
                    "city": {
                      "type": "object"
                    },
                    "state": {
                      "type": "object"
                    },
                    "postalCode": {
                      "type": "object"
                    },
                    "country": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "addressType",
                    "street",
                    "city",
                    "state",
                    "postalCode",
                    "country"
                  ]
                }
              },
              "accountCustomFields": {
                "type": "array",
                "description": "",
                "example": 42,
                "items": {
                  "type": "object",
                  "properties": {
                    "fieldName": {
                      "type": "object"
                    },
                    "fieldValue": {
                      "type": "object"
                    }
                  },
                  "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"
        ]
      }
    }
  },
  "required": [
    "processingOptions",
    "commitments"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CreatePledgeCommitmentsRequest"
}