Skip to content

Commit

Permalink
Merge pull request #103 from sharetribe/add-new-stripe-endpoints
Browse files Browse the repository at this point in the history
Add stripe_account_object/fetch and stripe_account_links/create endpoints
  • Loading branch information
sktoiva authored Dec 5, 2019
2 parents 84c59c4 + 7a9b0e3 commit cf7916d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] - xxxx-xx-xx

## [v1.6.0] - 2019-12-05

### Added

- New endpoints [#100](https://github.com/sharetribe/flex-sdk-js/pull/103)
- `sdk.stripeAccountData.fetch(/* ... */)`
- `sdk.stripeAccountLinks.create(/* ... */)`

## [v1.5.0] - 2019-08-21

### Security
Expand Down
12 changes: 12 additions & 0 deletions build/sharetribe-flex-sdk-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3346,6 +3346,18 @@ var endpointDefinitions = [{
internal: false,
method: 'post',
interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */](), new __WEBPACK_IMPORTED_MODULE_21__interceptors_transit_request__["a" /* default */]()]
}, {
apiName: 'api',
path: 'stripe_account_data/fetch',
internal: false,
method: 'get',
interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */]()]
}, {
apiName: 'api',
path: 'stripe_account_links/create',
internal: false,
method: 'post',
interceptors: [new __WEBPACK_IMPORTED_MODULE_22__interceptors_transit_response__["a" /* default */](), new __WEBPACK_IMPORTED_MODULE_21__interceptors_transit_request__["a" /* default */]()]
}, {
apiName: 'api',
path: 'stripe_persons/create',
Expand Down
4 changes: 2 additions & 2 deletions build/sharetribe-flex-sdk-web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sharetribe-flex-sdk",
"version": "1.5.0",
"version": "1.6.0",
"description": "Sharetribe Flex SDK for JavaScript",
"main": "build/sharetribe-flex-sdk-node.js",
"browser": "build/sharetribe-flex-sdk-web.js",
Expand Down
14 changes: 14 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,20 @@ const endpointDefinitions = [
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_account_data/fetch',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'stripe_account_links/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'stripe_persons/create',
Expand Down

0 comments on commit cf7916d

Please sign in to comment.