@@ -20,20 +20,17 @@ module.exports = StripeResource.extend({
20
20
update : stripeMethod ( {
21
21
method : 'POST' ,
22
22
path : 'accounts/{id}' ,
23
- urlParams : [ 'id' ] ,
24
23
} ) ,
25
24
26
25
// Avoid 'delete' keyword in JS
27
26
del : stripeMethod ( {
28
27
method : 'DELETE' ,
29
28
path : 'accounts/{id}' ,
30
- urlParams : [ 'id' ] ,
31
29
} ) ,
32
30
33
31
reject : stripeMethod ( {
34
32
method : 'POST' ,
35
33
path : 'accounts/{id}/reject' ,
36
- urlParams : [ 'id' ] ,
37
34
} ) ,
38
35
39
36
retrieve ( id ) {
@@ -43,7 +40,6 @@ module.exports = StripeResource.extend({
43
40
return stripeMethod ( {
44
41
method : 'GET' ,
45
42
path : 'accounts/{id}' ,
46
- urlParams : [ 'id' ] ,
47
43
} ) . apply ( this , arguments ) ;
48
44
} else {
49
45
if ( id === null || id === undefined ) {
@@ -64,20 +60,17 @@ module.exports = StripeResource.extend({
64
60
listCapabilities : stripeMethod ( {
65
61
method : 'GET' ,
66
62
path : 'accounts/{accountId}/capabilities' ,
67
- urlParams : [ 'accountId' ] ,
68
63
methodType : 'list' ,
69
64
} ) ,
70
65
71
66
retrieveCapability : stripeMethod ( {
72
67
method : 'GET' ,
73
68
path : 'accounts/{accountId}/capabilities/{capabilityId}' ,
74
- urlParams : [ 'accountId' , 'capabilityId' ] ,
75
69
} ) ,
76
70
77
71
updateCapability : stripeMethod ( {
78
72
method : 'POST' ,
79
73
path : 'accounts/{accountId}/capabilities/{capabilityId}' ,
80
- urlParams : [ 'accountId' , 'capabilityId' ] ,
81
74
} ) ,
82
75
83
76
/**
@@ -87,32 +80,27 @@ module.exports = StripeResource.extend({
87
80
createExternalAccount : stripeMethod ( {
88
81
method : 'POST' ,
89
82
path : 'accounts/{accountId}/external_accounts' ,
90
- urlParams : [ 'accountId' ] ,
91
83
} ) ,
92
84
93
85
listExternalAccounts : stripeMethod ( {
94
86
method : 'GET' ,
95
87
path : 'accounts/{accountId}/external_accounts' ,
96
- urlParams : [ 'accountId' ] ,
97
88
methodType : 'list' ,
98
89
} ) ,
99
90
100
91
retrieveExternalAccount : stripeMethod ( {
101
92
method : 'GET' ,
102
93
path : 'accounts/{accountId}/external_accounts/{externalAccountId}' ,
103
- urlParams : [ 'accountId' , 'externalAccountId' ] ,
104
94
} ) ,
105
95
106
96
updateExternalAccount : stripeMethod ( {
107
97
method : 'POST' ,
108
98
path : 'accounts/{accountId}/external_accounts/{externalAccountId}' ,
109
- urlParams : [ 'accountId' , 'externalAccountId' ] ,
110
99
} ) ,
111
100
112
101
deleteExternalAccount : stripeMethod ( {
113
102
method : 'DELETE' ,
114
103
path : 'accounts/{accountId}/external_accounts/{externalAccountId}' ,
115
- urlParams : [ 'accountId' , 'externalAccountId' ] ,
116
104
} ) ,
117
105
118
106
/**
@@ -122,7 +110,6 @@ module.exports = StripeResource.extend({
122
110
createLoginLink : stripeMethod ( {
123
111
method : 'POST' ,
124
112
path : 'accounts/{accountId}/login_links' ,
125
- urlParams : [ 'accountId' ] ,
126
113
} ) ,
127
114
128
115
/**
@@ -132,31 +119,26 @@ module.exports = StripeResource.extend({
132
119
createPerson : stripeMethod ( {
133
120
method : 'POST' ,
134
121
path : 'accounts/{accountId}/persons' ,
135
- urlParams : [ 'accountId' ] ,
136
122
} ) ,
137
123
138
124
listPersons : stripeMethod ( {
139
125
method : 'GET' ,
140
126
path : 'accounts/{accountId}/persons' ,
141
- urlParams : [ 'accountId' ] ,
142
127
methodType : 'list' ,
143
128
} ) ,
144
129
145
130
retrievePerson : stripeMethod ( {
146
131
method : 'GET' ,
147
132
path : 'accounts/{accountId}/persons/{personId}' ,
148
- urlParams : [ 'accountId' , 'personId' ] ,
149
133
} ) ,
150
134
151
135
updatePerson : stripeMethod ( {
152
136
method : 'POST' ,
153
137
path : 'accounts/{accountId}/persons/{personId}' ,
154
- urlParams : [ 'accountId' , 'personId' ] ,
155
138
} ) ,
156
139
157
140
deletePerson : stripeMethod ( {
158
141
method : 'DELETE' ,
159
142
path : 'accounts/{accountId}/persons/{personId}' ,
160
- urlParams : [ 'accountId' , 'personId' ] ,
161
143
} ) ,
162
144
} ) ;
0 commit comments