From ff67ad0061861cb13706764000dfce273087d1f9 Mon Sep 17 00:00:00 2001 From: Dipu Date: Mon, 10 Aug 2026 16:59:42 +0545 Subject: [PATCH] Add Square Read/Write integration configuration --- square/amp.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 square/amp.yaml diff --git a/square/amp.yaml b/square/amp.yaml new file mode 100644 index 0000000..6d715b0 --- /dev/null +++ b/square/amp.yaml @@ -0,0 +1,67 @@ +specVersion: 1.0.0 +integrations: + - name: square-read-write + displayName: Square Read/Write + provider: square + read: + objects: + # Field names can be found at https://developer.squareup.com/reference/square/locations-api/list-locations + - objectName: locations + destination: squareReadWebhook + schedule: "*/10 * * * *" + requiredFields: + - fieldName: id + - fieldName: name + - fieldName: country + optionalFieldsAuto: all + backfill: + defaultPeriod: + fullHistory: true + + # Field names can be found at https://developer.squareup.com/reference/square/customers-api/list-customers + - objectName: customers + destination: squareReadWebhook + schedule: "*/10 * * * *" + requiredFields: + - fieldName: id + - fieldName: given_name + - fieldName: email_address + optionalFieldsAuto: all + backfill: + defaultPeriod: + fullHistory: true + + # Field names can be found at https://developer.squareup.com/reference/square/payments-api/list-payments + - objectName: payments + destination: squareReadWebhook + schedule: "*/10 * * * *" + requiredFields: + - fieldName: id + - fieldName: status + - fieldName: amount_money + optionalFieldsAuto: all + backfill: + defaultPeriod: + fullHistory: true + + # Field names can be found at https://developer.squareup.com/reference/square/catalog-api/list-catalog + - objectName: catalog + destination: squareReadWebhook + schedule: "*/10 * * * *" + requiredFields: + - fieldName: id + - fieldName: type + - fieldName: version + optionalFieldsAuto: all + backfill: + defaultPeriod: + fullHistory: true + + write: + objects: + - objectName: customers + - objectName: locations + - objectName: payments + + proxy: + enabled: true