Skip to content

Commit

Permalink
Merge pull request #100 from sharetribe/stripe-customer-api
Browse files Browse the repository at this point in the history
Add new API endpoints
  • Loading branch information
bladealslayer committed Jul 23, 2019
2 parents f853115 + aa57ee2 commit 43e32a1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
- Docpress [#97](https://github.com/sharetribe/flex-sdk-js/pull/97)
- Jest and Babel [#96](https://github.com/sharetribe/flex-sdk-js/pull/96)

### Added

- New endpoints [#100](https://github.com/sharetribe/flex-sdk-js/pull/100)
* `sdk.stripeSetupIntents.create(/* ... */)`
* `sdk.stripeCustomer.create(/* ... */)`
* `sdk.stripeCustomer.addPaymentMethod(/* ... */)`
* `sdk.stripeCustomer.deletePaymentMethod(/* ... */)`

## [v1.4.0] - 2019-04-16

### Added
Expand Down
28 changes: 28 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,34 @@ const endpointDefinitions = [
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_setup_intents/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_customer/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_customer/add_payment_method',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_customer/delete_payment_method',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{ apiName: 'auth', path: 'token', internal: true, method: 'post', interceptors: [] },
{ apiName: 'auth', path: 'revoke', internal: true, method: 'post', interceptors: [] },

Expand Down

0 comments on commit 43e32a1

Please sign in to comment.