Skip to content

Commit

Permalink
Merge pull request #92 from sharetribe/add-new-stripe-data-endpoints
Browse files Browse the repository at this point in the history
Add new stripe data endpoints
  • Loading branch information
Gnito authored Mar 26, 2019
2 parents c411327 + 141bf49 commit 4a4b8e4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
### Added

- Missing step (copy sharetribe-flex-sdk-web.js from /build/ to /docs/)
- New endpoints [#92](https://github.com/sharetribe/flex-sdk-js/pull/92)
* `sdk.stripeAccount.create(/* ... */)`
* `sdk.stripeAccount.update(/* ... */)`
* `sdk.stripePersons.create(/* ... */)`

### Changed

Expand Down
18 changes: 18 additions & 0 deletions build/sharetribe-flex-sdk-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3398,6 +3398,24 @@ var endpointDefinitions = [{
internal: false,
method: 'get',
interceptors: [new _transit_response2.default()]
}, {
apiName: 'api',
path: 'stripe_account/create',
internal: false,
method: 'post',
interceptors: [new _transit_response2.default(), new _transit_request2.default()]
}, {
apiName: 'api',
path: 'stripe_account/update',
internal: false,
method: 'post',
interceptors: [new _transit_response2.default(), new _transit_request2.default()]
}, {
apiName: 'api',
path: 'stripe_persons/create',
internal: false,
method: 'post',
interceptors: [new _transit_response2.default(), new _transit_request2.default()]
}, { apiName: 'auth', path: 'token', internal: true, method: 'post', interceptors: [] }, { apiName: 'auth', path: 'revoke', internal: true, method: 'post', interceptors: [] }];

var authenticateInterceptors = [new _fetch_auth_token_from_store2.default(), new _fetch_auth_token_from_api2.default(), new _retry_with_anon_token2.default(), new _retry_with_refresh_token2.default(), new _add_auth_header2.default()];
Expand Down
2 changes: 1 addition & 1 deletion build/sharetribe-flex-sdk-web.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,27 @@ const endpointDefinitions = [
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'stripe_account/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_account/update',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_persons/create',
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 4a4b8e4

Please sign in to comment.