Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize data between Quickbooks and Shopify #298

Open
wants to merge 1 commit into
base: cp4i-templates
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions resources/Synchronize data between Quickbooks and Shopify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: api
trigger-interfaces:
trigger-interface-1:
triggers:
createCustomer:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: customer
output-context:
data: customer
options:
resources:
- business-object: customer
model:
$ref: '#/models/customer'
triggers:
create: createCustomer
type: api-trigger
action-interfaces:
action-interface-1:
type: api-action
business-object: customer
connector-type: quickbooks
actions:
CREATE: {}
action-interface-2:
type: api-action
business-object: customer
connector-type: shopify
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: Quickbooks1 Create customer
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- DisplayName:
template: '{{$Request.name}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Request
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- create-action:
name: Shopify Create customer
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- first_name:
template: '{{$Request.name}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Request
$ref: '#/trigger/payload'
- variable: Quickbooks1Createcustomer
$ref: '#/node-output/Quickbooks1 Create customer/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- response:
name: response-1
reply-maps:
- title: customer successfully created
status-code: 201
map:
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Request
$ref: '#/trigger/payload'
- variable: Quickbooks1Createcustomer
$ref: >-
#/node-output/Quickbooks1 Create
customer/response/payload
- variable: ShopifyCreatecustomer
$ref: '#/node-output/Shopify Create customer/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
mappings:
- id:
template: >-
{{$Quickbooks1Createcustomer.Id}},
{{$ShopifyCreatecustomer.id}}
input: []
name: Quickbooks X Shopify
models:
customer:
name: customer
properties:
name:
required: false
id: false
type: string
id:
required: false
id: true
type: string
plural: customer
description: ' '
operations:
create: '#/integration/assemblies/assembly-1'