Skip to content

Commit

Permalink
feat(pinterest): add ldp support (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Jan 3, 2023
1 parent f03e86a commit a54d074
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ steps:
.properties.revenue,
"num_items": .properties.numOfItems && Number(.properties.numOfItems),
"order_id": .properties.order_id,
"search_string": .properties.query
"search_string": .properties.query,
"opt_out_type": .properties.optOutType
});
$.removeUndefinedValues(customFields)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"destKey": "search_string",
"sourceKeys": "properties.query",
"required": false
},
{
"destKey": "opt_out_type",
"sourceKeys": "properties.optOutType",
"required": false
}
]

1 change: 1 addition & 0 deletions test/__tests__/data/pinterest_tag_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"discount": 2.5,
"order_id": "50314b8e9bcf000000000000",
"requestIP": "123.0.0.0",
"optOutType": "LDP",
"products": [
{
"sku": "45790-32",
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/data/pinterest_tag_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"currency": "USD",
"value": 27.5,
"order_id": "50314b8e9bcf000000000000",
"opt_out_type": "LDP",
"num_items": 3,
"content_ids": [
"507f1f77bcf86cd799439011",
Expand Down
2 changes: 2 additions & 0 deletions test/__tests__/data/pinterest_tag_router_batch_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"value": 27.5,
"order_id": "50314b8e9bcf000000000000",
"num_items": 3,
"opt_out_type": "LDP",
"content_ids": [
"507f1f77bcf86cd799439011",
"505bd76785ebb509fc183733"
Expand Down Expand Up @@ -113,6 +114,7 @@
"value": 27.5,
"order_id": "50314b8e9bcf000000000000",
"num_items": 3,
"opt_out_type": "LDP",
"content_ids": [
"507f1f77bcf86cd799439011",
"505bd76785ebb509fc183733"
Expand Down
1 change: 1 addition & 0 deletions test/__tests__/data/pinterest_tag_router_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"discount": 2.5,
"order_id": "50314b8e9bcf000000000000",
"requestIP": "123.0.0.0",
"optOutType": "LDP",
"products": [
{
"sku": "45790-32",
Expand Down
2 changes: 2 additions & 0 deletions test/__tests__/data/pinterest_tag_router_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"value": 27.5,
"order_id": "50314b8e9bcf000000000000",
"num_items": 3,
"opt_out_type": "LDP",
"content_ids": [
"507f1f77bcf86cd799439011",
"505bd76785ebb509fc183733"
Expand Down Expand Up @@ -113,6 +114,7 @@
"value": 27.5,
"order_id": "50314b8e9bcf000000000000",
"num_items": 3,
"opt_out_type": "LDP",
"content_ids": [
"507f1f77bcf86cd799439011",
"505bd76785ebb509fc183733"
Expand Down

0 comments on commit a54d074

Please sign in to comment.