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

Added square example (#41) #73

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Conversation

biplobsd
Copy link
Contributor

Closed: #41

Summary

Create contract in the customersApi api

Screen record

Square-example.webm

src/square.ts Outdated
"Square create customer",
async () => {
// Use the Square SDK to send a message to the seller
const customersApi = squareClient.customersApi;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't quite get this extra step, please see the next comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.. I did split because of makes more readable.

src/square.ts Outdated
// After create a customer you can see it in the Square dashboard
// at https://squareup.com/dashboard/customers/directory/all
// See more https://developer.squareup.com/reference/square/customers-api/create-customer
await customersApi.createCustomer(payload);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just do this?

Suggested change
await customersApi.createCustomer(payload);
await squareClient.customersApi.createCustomer(payload);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

Copy link
Contributor

@nicktrn nicktrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your submission! Left some comments. Also, if you could format this properly please. There are twice the amount of spaces (I think).

@biplobsd
Copy link
Contributor Author

Thanks for your submission! Left some comments. Also, if you could format this properly please. There are twice the amount of spaces (I think).

Thanks. Review again..

@nicktrn
Copy link
Contributor

nicktrn commented Oct 29, 2023

Looks good!

@D-K-P
Copy link
Member

D-K-P commented Oct 30, 2023

@biplobsd this is great, could you fix conflicts pls and ill merge

@biplobsd
Copy link
Contributor Author

@D-K-P Fixed!

@D-K-P D-K-P merged commit c1d37b4 into triggerdotdev:main Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an example job using the Square API
3 participants