Update generated code (#1601) · stripe/stripe-java@4377b6a (original) (raw)

`@@ -11,6 +11,10 @@

`

11

11

``

12

12

`@Getter

`

13

13

`public class SubscriptionListParams extends ApiRequestParams {

`

``

14

`+

/** Filter subscriptions by their automatic tax settings. */

`

``

15

`+

@SerializedName("automatic_tax")

`

``

16

`+

AutomaticTax automaticTax;

`

``

17

+

14

18

`/**

`

15

19

` * The collection method of the subscriptions to retrieve. Either {@code charge_automatically} or

`

16

20

` * {@code send_invoice}.

`

`@@ -96,6 +100,7 @@ public class SubscriptionListParams extends ApiRequestParams {

`

96

100

`String testClock;

`

97

101

``

98

102

`private SubscriptionListParams(

`

``

103

`+

AutomaticTax automaticTax,

`

99

104

`CollectionMethod collectionMethod,

`

100

105

`Object created,

`

101

106

`Object currentPeriodEnd,

`

`@@ -110,6 +115,7 @@ private SubscriptionListParams(

`

110

115

`String startingAfter,

`

111

116

`Status status,

`

112

117

`String testClock) {

`

``

118

`+

this.automaticTax = automaticTax;

`

113

119

`this.collectionMethod = collectionMethod;

`

114

120

`this.created = created;

`

115

121

`this.currentPeriodEnd = currentPeriodEnd;

`

`@@ -131,6 +137,8 @@ public static Builder builder() {

`

131

137

` }

`

132

138

``

133

139

`public static class Builder {

`

``

140

`+

private AutomaticTax automaticTax;

`

``

141

+

134

142

`private CollectionMethod collectionMethod;

`

135

143

``

136

144

`private Object created;

`

`@@ -162,6 +170,7 @@ public static class Builder {

`

162

170

`/** Finalize and obtain parameter instance from this builder. */

`

163

171

`public SubscriptionListParams build() {

`

164

172

`return new SubscriptionListParams(

`

``

173

`+

this.automaticTax,

`

165

174

`this.collectionMethod,

`

166

175

`this.created,

`

167

176

`this.currentPeriodEnd,

`

`@@ -178,6 +187,12 @@ public SubscriptionListParams build() {

`

178

187

`this.testClock);

`

179

188

` }

`

180

189

``

``

190

`+

/** Filter subscriptions by their automatic tax settings. */

`

``

191

`+

public Builder setAutomaticTax(SubscriptionListParams.AutomaticTax automaticTax) {

`

``

192

`+

this.automaticTax = automaticTax;

`

``

193

`+

return this;

`

``

194

`+

}

`

``

195

+

181

196

`/**

`

182

197

` * The collection method of the subscriptions to retrieve. Either {@code charge_automatically}

`

183

198

` * or {@code send_invoice}.

`

`@@ -343,6 +358,80 @@ public Builder setTestClock(String testClock) {

`

343

358

` }

`

344

359

` }

`

345

360

``

``

361

`+

@Getter

`

``

362

`+

public static class AutomaticTax {

`

``

363

`+

/**

`

``

364

`+

`

``

365

`+

`

``

366

`+

*/

`

``

367

`+

@SerializedName("enabled")

`

``

368

`+

Boolean enabled;

`

``

369

+

``

370

`+

/**

`

``

371

`+

`

``

372

`+

`

``

373

`+

`

``

374

`+

`

``

375

`+

*/

`

``

376

`+

@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)

`

``

377

`+

Map<String, Object> extraParams;

`

``

378

+

``

379

`+

private AutomaticTax(Boolean enabled, Map<String, Object> extraParams) {

`

``

380

`+

this.enabled = enabled;

`

``

381

`+

this.extraParams = extraParams;

`

``

382

`+

}

`

``

383

+

``

384

`+

public static Builder builder() {

`

``

385

`+

return new Builder();

`

``

386

`+

}

`

``

387

+

``

388

`+

public static class Builder {

`

``

389

`+

private Boolean enabled;

`

``

390

+

``

391

`+

private Map<String, Object> extraParams;

`

``

392

+

``

393

`+

/** Finalize and obtain parameter instance from this builder. */

`

``

394

`+

public SubscriptionListParams.AutomaticTax build() {

`

``

395

`+

return new SubscriptionListParams.AutomaticTax(this.enabled, this.extraParams);

`

``

396

`+

}

`

``

397

+

``

398

`+

/**

`

``

399

`+

`

``

400

`+

`

``

401

`+

*/

`

``

402

`+

public Builder setEnabled(Boolean enabled) {

`

``

403

`+

this.enabled = enabled;

`

``

404

`+

return this;

`

``

405

`+

}

`

``

406

+

``

407

`+

/**

`

``

408

`` +

``

``

409

`+

`

``

410

`+

`

``

411

`+

*/

`

``

412

`+

public Builder putExtraParam(String key, Object value) {

`

``

413

`+

if (this.extraParams == null) {

`

``

414

`+

this.extraParams = new HashMap<>();

`

``

415

`+

}

`

``

416

`+

this.extraParams.put(key, value);

`

``

417

`+

return this;

`

``

418

`+

}

`

``

419

+

``

420

`+

/**

`

``

421

`` +

``

``

422

`` +

``

``

423

`+

`

``

424

`+

*/

`

``

425

`+

public Builder putAllExtraParam(Map<String, Object> map) {

`

``

426

`+

if (this.extraParams == null) {

`

``

427

`+

this.extraParams = new HashMap<>();

`

``

428

`+

}

`

``

429

`+

this.extraParams.putAll(map);

`

``

430

`+

return this;

`

``

431

`+

}

`

``

432

`+

}

`

``

433

`+

}

`

``

434

+

346

435

`@Getter

`

347

436

`public static class Created {

`

348

437

`/**

`