@commercetools/checkout-sdk 1.0.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +239 -0
  2. package/dist/commercetools-checkout-sdk.browser.cjs.js +668 -3
  3. package/dist/commercetools-checkout-sdk.browser.esm.js +656 -4
  4. package/dist/commercetools-checkout-sdk.cjs.dev.js +668 -3
  5. package/dist/commercetools-checkout-sdk.cjs.prod.js +668 -3
  6. package/dist/commercetools-checkout-sdk.esm.js +656 -4
  7. package/dist/declarations/src/generated/client/applications/by-project-key-applications-by-id-request-builder.d.ts +64 -0
  8. package/dist/declarations/src/generated/client/applications/by-project-key-applications-by-id-request-builder.d.ts.map +1 -0
  9. package/dist/declarations/src/generated/client/applications/by-project-key-applications-key-by-key-request-builder.d.ts +67 -0
  10. package/dist/declarations/src/generated/client/applications/by-project-key-applications-key-by-key-request-builder.d.ts.map +1 -0
  11. package/dist/declarations/src/generated/client/applications/by-project-key-applications-request-builder.d.ts +61 -0
  12. package/dist/declarations/src/generated/client/applications/by-project-key-applications-request-builder.d.ts.map +1 -0
  13. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +4 -0
  14. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts.map +1 -1
  15. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-by-id-request-builder.d.ts +64 -0
  16. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-by-id-request-builder.d.ts.map +1 -0
  17. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-key-by-key-request-builder.d.ts +66 -0
  18. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-key-by-key-request-builder.d.ts.map +1 -0
  19. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-request-builder.d.ts +64 -0
  20. package/dist/declarations/src/generated/client/payment-integrations/by-project-key-payment-integrations-request-builder.d.ts.map +1 -0
  21. package/dist/declarations/src/generated/index.d.ts +7 -0
  22. package/dist/declarations/src/generated/index.d.ts.map +1 -1
  23. package/dist/declarations/src/generated/models/application.d.ts +601 -3
  24. package/dist/declarations/src/generated/models/application.d.ts.map +1 -1
  25. package/dist/declarations/src/generated/models/common.d.ts +20 -5
  26. package/dist/declarations/src/generated/models/common.d.ts.map +1 -1
  27. package/dist/declarations/src/generated/models/error.d.ts +230 -4
  28. package/dist/declarations/src/generated/models/error.d.ts.map +1 -1
  29. package/dist/declarations/src/generated/models/payment-integration-draft.d.ts +76 -0
  30. package/dist/declarations/src/generated/models/payment-integration-draft.d.ts.map +1 -0
  31. package/dist/declarations/src/generated/models/payment-integration.d.ts +541 -3
  32. package/dist/declarations/src/generated/models/payment-integration.d.ts.map +1 -1
  33. package/dist/declarations/src/generated/models/responses.d.ts +1 -1
  34. package/dist/declarations/src/generated/models/responses.d.ts.map +1 -1
  35. package/dist/declarations/src/generated/models/transaction.d.ts +7 -7
  36. package/dist/declarations/src/generated/models/transaction.d.ts.map +1 -1
  37. package/package.json +5 -5
@@ -100,6 +100,427 @@ class ApiRequest {
100
100
  }
101
101
  }
102
102
 
103
+ /**
104
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
105
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
106
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
107
+ */
108
+ /**
109
+ **/
110
+ class ByProjectKeyApplicationsByIdRequestBuilder {
111
+ constructor(args) {
112
+ this.args = args;
113
+ }
114
+ /**
115
+ * Retrieves an [Application](ctp:checkout:type:Application) by a given `id`.
116
+ *
117
+ */
118
+ get(methodArgs) {
119
+ return new ApiRequest({
120
+ baseUri: this.args.baseUri,
121
+ method: 'GET',
122
+ uriTemplate: '/{projectKey}/applications/{id}',
123
+ pathVariables: this.args.pathArgs,
124
+ headers: {
125
+ ...methodArgs?.headers
126
+ }
127
+ }, this.args.executeRequest);
128
+ }
129
+ /**
130
+ * Checks if an [Application](/applications-api#application) with a given `id` exists. Returns `200 OK` if the Application exists, or `404 Not Found` if it doesn't. Specific Error Codes:
131
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
132
+ * - [GeneralError](ctp:checkout:type:GeneralError)
133
+ *
134
+ */
135
+ head(methodArgs) {
136
+ return new ApiRequest({
137
+ baseUri: this.args.baseUri,
138
+ method: 'HEAD',
139
+ uriTemplate: '/{projectKey}/applications/{id}',
140
+ pathVariables: this.args.pathArgs,
141
+ headers: {
142
+ ...methodArgs?.headers
143
+ }
144
+ }, this.args.executeRequest);
145
+ }
146
+ post(methodArgs) {
147
+ return new ApiRequest({
148
+ baseUri: this.args.baseUri,
149
+ method: 'POST',
150
+ uriTemplate: '/{projectKey}/applications/{id}',
151
+ pathVariables: this.args.pathArgs,
152
+ headers: {
153
+ 'Content-Type': 'application/json',
154
+ ...methodArgs?.headers
155
+ },
156
+ body: methodArgs?.body
157
+ }, this.args.executeRequest);
158
+ }
159
+ delete(methodArgs) {
160
+ return new ApiRequest({
161
+ baseUri: this.args.baseUri,
162
+ method: 'DELETE',
163
+ uriTemplate: '/{projectKey}/applications/{id}',
164
+ pathVariables: this.args.pathArgs,
165
+ headers: {
166
+ ...methodArgs?.headers
167
+ },
168
+ queryParams: methodArgs?.queryArgs
169
+ }, this.args.executeRequest);
170
+ }
171
+ }
172
+
173
+ /**
174
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
175
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
176
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
177
+ */
178
+ /**
179
+ **/
180
+ class ByProjectKeyApplicationsKeyByKeyRequestBuilder {
181
+ constructor(args) {
182
+ this.args = args;
183
+ }
184
+ /**
185
+ * Retrieves an [Application](ctp:checkout:type:Application) with a given `key`.
186
+ * Specific Error Codes:
187
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
188
+ * - [GeneralError](ctp:checkout:type:GeneralError)
189
+ *
190
+ */
191
+ get(methodArgs) {
192
+ return new ApiRequest({
193
+ baseUri: this.args.baseUri,
194
+ method: 'GET',
195
+ uriTemplate: '/{projectKey}/applications/key={key}',
196
+ pathVariables: this.args.pathArgs,
197
+ headers: {
198
+ ...methodArgs?.headers
199
+ }
200
+ }, this.args.executeRequest);
201
+ }
202
+ post(methodArgs) {
203
+ return new ApiRequest({
204
+ baseUri: this.args.baseUri,
205
+ method: 'POST',
206
+ uriTemplate: '/{projectKey}/applications/key={key}',
207
+ pathVariables: this.args.pathArgs,
208
+ headers: {
209
+ 'Content-Type': 'application/json',
210
+ ...methodArgs?.headers
211
+ },
212
+ body: methodArgs?.body
213
+ }, this.args.executeRequest);
214
+ }
215
+ /**
216
+ * Checks if an [Application](ctp:checkout:type:Application) with a given `key` exists. Returns `200 OK` if the Application exists, or `404 Not Found` if it doesn't. Specific Error Codes:
217
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
218
+ * - [GeneralError](ctp:checkout:type:GeneralError)
219
+ *
220
+ */
221
+ head(methodArgs) {
222
+ return new ApiRequest({
223
+ baseUri: this.args.baseUri,
224
+ method: 'HEAD',
225
+ uriTemplate: '/{projectKey}/applications/key={key}',
226
+ pathVariables: this.args.pathArgs,
227
+ headers: {
228
+ ...methodArgs?.headers
229
+ }
230
+ }, this.args.executeRequest);
231
+ }
232
+ delete(methodArgs) {
233
+ return new ApiRequest({
234
+ baseUri: this.args.baseUri,
235
+ method: 'DELETE',
236
+ uriTemplate: '/{projectKey}/applications/key={key}',
237
+ pathVariables: this.args.pathArgs,
238
+ headers: {
239
+ ...methodArgs?.headers
240
+ },
241
+ queryParams: methodArgs?.queryArgs
242
+ }, this.args.executeRequest);
243
+ }
244
+ }
245
+
246
+ /**
247
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
248
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
249
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
250
+ */
251
+ /**
252
+ **/
253
+ class ByProjectKeyApplicationsRequestBuilder {
254
+ constructor(args) {
255
+ this.args = args;
256
+ }
257
+ withId(childPathArgs) {
258
+ return new ByProjectKeyApplicationsByIdRequestBuilder({
259
+ pathArgs: {
260
+ ...this.args.pathArgs,
261
+ ...childPathArgs
262
+ },
263
+ executeRequest: this.args.executeRequest,
264
+ baseUri: this.args.baseUri
265
+ });
266
+ }
267
+ withKey(childPathArgs) {
268
+ return new ByProjectKeyApplicationsKeyByKeyRequestBuilder({
269
+ pathArgs: {
270
+ ...this.args.pathArgs,
271
+ ...childPathArgs
272
+ },
273
+ executeRequest: this.args.executeRequest,
274
+ baseUri: this.args.baseUri
275
+ });
276
+ }
277
+
278
+ /**
279
+ * Retrieves Applications
280
+ *
281
+ */
282
+ get(methodArgs) {
283
+ return new ApiRequest({
284
+ baseUri: this.args.baseUri,
285
+ method: 'GET',
286
+ uriTemplate: '/{projectKey}/applications',
287
+ pathVariables: this.args.pathArgs,
288
+ headers: {
289
+ ...methodArgs?.headers
290
+ },
291
+ queryParams: methodArgs?.queryArgs
292
+ }, this.args.executeRequest);
293
+ }
294
+ /**
295
+ * Creates a new [Application](ctp:checkout:type:Application).
296
+ *
297
+ */
298
+ post(methodArgs) {
299
+ return new ApiRequest({
300
+ baseUri: this.args.baseUri,
301
+ method: 'POST',
302
+ uriTemplate: '/{projectKey}/applications',
303
+ pathVariables: this.args.pathArgs,
304
+ headers: {
305
+ 'Content-Type': 'application/json',
306
+ ...methodArgs?.headers
307
+ },
308
+ body: methodArgs?.body
309
+ }, this.args.executeRequest);
310
+ }
311
+ }
312
+
313
+ /**
314
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
315
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
316
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
317
+ */
318
+ /**
319
+ **/
320
+ class ByProjectKeyPaymentIntegrationsByIdRequestBuilder {
321
+ constructor(args) {
322
+ this.args = args;
323
+ }
324
+ /**
325
+ * Retrieves Payment Integrations in a [Project](ctp:api:type:Project) with a given `id`.
326
+ *
327
+ */
328
+ get(methodArgs) {
329
+ return new ApiRequest({
330
+ baseUri: this.args.baseUri,
331
+ method: 'GET',
332
+ uriTemplate: '/{projectKey}/payment-integrations/{id}',
333
+ pathVariables: this.args.pathArgs,
334
+ headers: {
335
+ ...methodArgs?.headers
336
+ }
337
+ }, this.args.executeRequest);
338
+ }
339
+ /**
340
+ * Checks if a PaymentIntegration with a given `id` exists. Returns `200 OK` if the PaymentIntegration exists, or `404 Not Found` if it doesn't. Specific Error Codes:
341
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
342
+ * - [GeneralError](ctp:checkout:type:GeneralError)
343
+ *
344
+ */
345
+ head(methodArgs) {
346
+ return new ApiRequest({
347
+ baseUri: this.args.baseUri,
348
+ method: 'HEAD',
349
+ uriTemplate: '/{projectKey}/payment-integrations/{id}',
350
+ pathVariables: this.args.pathArgs,
351
+ headers: {
352
+ ...methodArgs?.headers
353
+ }
354
+ }, this.args.executeRequest);
355
+ }
356
+ post(methodArgs) {
357
+ return new ApiRequest({
358
+ baseUri: this.args.baseUri,
359
+ method: 'POST',
360
+ uriTemplate: '/{projectKey}/payment-integrations/{id}',
361
+ pathVariables: this.args.pathArgs,
362
+ headers: {
363
+ 'Content-Type': 'application/json',
364
+ ...methodArgs?.headers
365
+ },
366
+ body: methodArgs?.body
367
+ }, this.args.executeRequest);
368
+ }
369
+ delete(methodArgs) {
370
+ return new ApiRequest({
371
+ baseUri: this.args.baseUri,
372
+ method: 'DELETE',
373
+ uriTemplate: '/{projectKey}/payment-integrations/{id}',
374
+ pathVariables: this.args.pathArgs,
375
+ headers: {
376
+ ...methodArgs?.headers
377
+ },
378
+ queryParams: methodArgs?.queryArgs
379
+ }, this.args.executeRequest);
380
+ }
381
+ }
382
+
383
+ /**
384
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
385
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
386
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
387
+ */
388
+ /**
389
+ **/
390
+ class ByProjectKeyPaymentIntegrationsKeyByKeyRequestBuilder {
391
+ constructor(args) {
392
+ this.args = args;
393
+ }
394
+ /**
395
+ * Retrieves Payment Integrations in a [Project](ctp:api:type:Project) with a given `key`. Specific Error Codes:
396
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
397
+ * - [GeneralError](ctp:checkout:type:GeneralError)
398
+ *
399
+ */
400
+ get(methodArgs) {
401
+ return new ApiRequest({
402
+ baseUri: this.args.baseUri,
403
+ method: 'GET',
404
+ uriTemplate: '/{projectKey}/payment-integrations/key={key}',
405
+ pathVariables: this.args.pathArgs,
406
+ headers: {
407
+ ...methodArgs?.headers
408
+ }
409
+ }, this.args.executeRequest);
410
+ }
411
+ post(methodArgs) {
412
+ return new ApiRequest({
413
+ baseUri: this.args.baseUri,
414
+ method: 'POST',
415
+ uriTemplate: '/{projectKey}/payment-integrations/key={key}',
416
+ pathVariables: this.args.pathArgs,
417
+ headers: {
418
+ 'Content-Type': 'application/json',
419
+ ...methodArgs?.headers
420
+ },
421
+ body: methodArgs?.body
422
+ }, this.args.executeRequest);
423
+ }
424
+ /**
425
+ * Checks if a PaymentIntegration with a given `key` exists. Returns `200 OK` if the PaymentIntegration exists, or `404 Not Found` if it doesn't. Specific Error Codes:
426
+ * - [ResourceNotFound](ctp:checkout:type:ResourceNotFoundError)
427
+ * - [GeneralError](ctp:checkout:type:GeneralError)
428
+ *
429
+ */
430
+ head(methodArgs) {
431
+ return new ApiRequest({
432
+ baseUri: this.args.baseUri,
433
+ method: 'HEAD',
434
+ uriTemplate: '/{projectKey}/payment-integrations/key={key}',
435
+ pathVariables: this.args.pathArgs,
436
+ headers: {
437
+ ...methodArgs?.headers
438
+ }
439
+ }, this.args.executeRequest);
440
+ }
441
+ delete(methodArgs) {
442
+ return new ApiRequest({
443
+ baseUri: this.args.baseUri,
444
+ method: 'DELETE',
445
+ uriTemplate: '/{projectKey}/payment-integrations/key={key}',
446
+ pathVariables: this.args.pathArgs,
447
+ headers: {
448
+ ...methodArgs?.headers
449
+ },
450
+ queryParams: methodArgs?.queryArgs
451
+ }, this.args.executeRequest);
452
+ }
453
+ }
454
+
455
+ /**
456
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
457
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
458
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
459
+ */
460
+ /**
461
+ **/
462
+ class ByProjectKeyPaymentIntegrationsRequestBuilder {
463
+ constructor(args) {
464
+ this.args = args;
465
+ }
466
+ withId(childPathArgs) {
467
+ return new ByProjectKeyPaymentIntegrationsByIdRequestBuilder({
468
+ pathArgs: {
469
+ ...this.args.pathArgs,
470
+ ...childPathArgs
471
+ },
472
+ executeRequest: this.args.executeRequest,
473
+ baseUri: this.args.baseUri
474
+ });
475
+ }
476
+ withKey(childPathArgs) {
477
+ return new ByProjectKeyPaymentIntegrationsKeyByKeyRequestBuilder({
478
+ pathArgs: {
479
+ ...this.args.pathArgs,
480
+ ...childPathArgs
481
+ },
482
+ executeRequest: this.args.executeRequest,
483
+ baseUri: this.args.baseUri
484
+ });
485
+ }
486
+
487
+ /**
488
+ * Retrieves Payment Integrations in a [Project](ctp:api:type:Project).
489
+ *
490
+ * The results are [paginated](/../api/general-concepts#pagination).
491
+ *
492
+ */
493
+ get(methodArgs) {
494
+ return new ApiRequest({
495
+ baseUri: this.args.baseUri,
496
+ method: 'GET',
497
+ uriTemplate: '/{projectKey}/payment-integrations',
498
+ pathVariables: this.args.pathArgs,
499
+ headers: {
500
+ ...methodArgs?.headers
501
+ },
502
+ queryParams: methodArgs?.queryArgs
503
+ }, this.args.executeRequest);
504
+ }
505
+ /**
506
+ * Creates a new PaymentIntegration.
507
+ *
508
+ */
509
+ post(methodArgs) {
510
+ return new ApiRequest({
511
+ baseUri: this.args.baseUri,
512
+ method: 'POST',
513
+ uriTemplate: '/{projectKey}/payment-integrations',
514
+ pathVariables: this.args.pathArgs,
515
+ headers: {
516
+ 'Content-Type': 'application/json',
517
+ ...methodArgs?.headers
518
+ },
519
+ body: methodArgs?.body
520
+ }, this.args.executeRequest);
521
+ }
522
+ }
523
+
103
524
  /**
104
525
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
105
526
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -301,6 +722,24 @@ class ByProjectKeyRequestBuilder {
301
722
  baseUri: this.args.baseUri
302
723
  });
303
724
  }
725
+ paymentIntegrations() {
726
+ return new ByProjectKeyPaymentIntegrationsRequestBuilder({
727
+ pathArgs: {
728
+ ...this.args.pathArgs
729
+ },
730
+ executeRequest: this.args.executeRequest,
731
+ baseUri: this.args.baseUri
732
+ });
733
+ }
734
+ applications() {
735
+ return new ByProjectKeyApplicationsRequestBuilder({
736
+ pathArgs: {
737
+ ...this.args.pathArgs
738
+ },
739
+ executeRequest: this.args.executeRequest,
740
+ baseUri: this.args.baseUri
741
+ });
742
+ }
304
743
  }
305
744
 
306
745
  class ApiRoot {
@@ -321,6 +760,65 @@ class ApiRoot {
321
760
  }
322
761
  }
323
762
 
763
+ /**
764
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
765
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
766
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
767
+ */
768
+
769
+ let ApplicationAgreementStatusValues = /*#__PURE__*/function (ApplicationAgreementStatusValues) {
770
+ ApplicationAgreementStatusValues["Active"] = "Active";
771
+ ApplicationAgreementStatusValues["Inactive"] = "Inactive";
772
+ return ApplicationAgreementStatusValues;
773
+ }({});
774
+ let ApplicationAgreementTypeValues = /*#__PURE__*/function (ApplicationAgreementTypeValues) {
775
+ ApplicationAgreementTypeValues["MandatoryCheckbox"] = "MandatoryCheckbox";
776
+ ApplicationAgreementTypeValues["Text"] = "Text";
777
+ return ApplicationAgreementTypeValues;
778
+ }({});
779
+
780
+ /**
781
+ * Details of the Application logo. It is required if the `mode` is `CompleteFlow`.
782
+ *
783
+ */
784
+
785
+ let ApplicationModeValues = /*#__PURE__*/function (ApplicationModeValues) {
786
+ ApplicationModeValues["CompleteFlow"] = "CompleteFlow";
787
+ ApplicationModeValues["PaymentOnly"] = "PaymentOnly";
788
+ return ApplicationModeValues;
789
+ }({});
790
+
791
+ /**
792
+ * Reference to an [Application](ctp:checkout:type:Application).
793
+ *
794
+ */
795
+
796
+ /**
797
+ * Resource identifier to an [Application](ctp:checkout:type:Application). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/errors#invalidjsoninput) error is returned.
798
+ *
799
+ */
800
+
801
+ let ApplicationStatusValues = /*#__PURE__*/function (ApplicationStatusValues) {
802
+ ApplicationStatusValues["Active"] = "Active";
803
+ ApplicationStatusValues["Inactive"] = "Inactive";
804
+ return ApplicationStatusValues;
805
+ }({});
806
+
807
+ /**
808
+ * Base type for all Application update actions.
809
+ *
810
+ */
811
+
812
+ /**
813
+ * Update actions for Applications.
814
+ *
815
+ */
816
+
817
+ /**
818
+ * Paginated result containing Application.
819
+ *
820
+ */
821
+
324
822
  /**
325
823
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
326
824
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -328,7 +826,7 @@ class ApiRoot {
328
826
  */
329
827
 
330
828
  /**
331
- * A Reference represents a loose reference to another resource in the same Project identified by its `id`. The `typeId` indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like [ChannelReference](ctp:api:type:ChannelReference). A referenced resource can be embedded through [Reference Expansion](/general-concepts#reference-expansion). The expanded reference is the value of an additional `obj` field then.
829
+ * A Reference represents a loose reference to another resource in the same Project identified by its `id`. The `typeId` indicates the type of the referenced resource. Each resource type has its corresponding Reference type, like [ApplicationReference](ctp:checkout:type:ApplicationReference).
332
830
  *
333
831
  */
334
832
 
@@ -339,6 +837,7 @@ class ApiRoot {
339
837
  let ReferenceTypeIdValues = /*#__PURE__*/function (ReferenceTypeIdValues) {
340
838
  ReferenceTypeIdValues["Application"] = "application";
341
839
  ReferenceTypeIdValues["Cart"] = "cart";
840
+ ReferenceTypeIdValues["Deployment"] = "deployment";
342
841
  ReferenceTypeIdValues["Order"] = "order";
343
842
  ReferenceTypeIdValues["Payment"] = "payment";
344
843
  ReferenceTypeIdValues["PaymentIntegration"] = "payment-integration";
@@ -346,9 +845,9 @@ let ReferenceTypeIdValues = /*#__PURE__*/function (ReferenceTypeIdValues) {
346
845
  }({});
347
846
 
348
847
  /**
349
- * Draft type to create a [Reference](ctp:api:type:Reference) or a [KeyReference](ctp:api:type:KeyReference) to a resource. Provide either the `id` or (wherever supported) the `key` of the resource to reference, but depending on the API endpoint the response returns either a Reference or a KeyReference. For example, the field `parent` of a [CategoryDraft](ctp:api:type:CategoryDraft) takes a ResourceIdentifier for its value while the value of the corresponding field of a [Category](ctp:api:type:Category) is a Reference.
848
+ * Draft type to create a [Reference](ctp:checkout:type:Reference) to a resource. Provide either the `id` or (wherever supported) the `key` of the resource to reference, but depending on the API endpoint the response returns a Reference.
350
849
  *
351
- * Each resource type has its corresponding ResourceIdentifier, like [ChannelResourceIdentifier](ctp:api:type:ChannelResourceIdentifier).
850
+ * Each resource type has its corresponding ResourceIdentifier, like [PaymentResourceIdentifier](ctp:checkout:type:PaymentResourceIdentifier).
352
851
  *
353
852
  */
354
853
 
@@ -357,6 +856,16 @@ let ReferenceTypeIdValues = /*#__PURE__*/function (ReferenceTypeIdValues) {
357
856
  *
358
857
  */
359
858
 
859
+ /**
860
+ * JSON object where the keys are of type [Locale](ctp:api:type:Locale), and the values are the strings used for the corresponding language.
861
+ *
862
+ */
863
+
864
+ /**
865
+ * A localized URL that provides different URL values for different locales.
866
+ *
867
+ */
868
+
360
869
  /**
361
870
  * The Region in which the Checkout application is [hosted](/hosts-and-authorization).
362
871
  *
@@ -368,6 +877,149 @@ let RegionValues = /*#__PURE__*/function (RegionValues) {
368
877
  return RegionValues;
369
878
  }({});
370
879
 
880
+ /**
881
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
882
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
883
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
884
+ */
885
+
886
+ /**
887
+ * Information regarding IDs and references that created the Payment Integration.
888
+ *
889
+ */
890
+
891
+ /**
892
+ * Information regarding IDs and references that last modified the Payment Integration.
893
+ *
894
+ */
895
+
896
+ /**
897
+ * Configuration for automated reversal of payments.
898
+ *
899
+ */
900
+
901
+ /**
902
+ * Reference to a connector deployment for the payment integration.
903
+ *
904
+ */
905
+
906
+ /**
907
+ * Display information for the payment integration in the UI.
908
+ *
909
+ */
910
+
911
+ /**
912
+ * Paginated result containing PaymentIntegrations.
913
+ *
914
+ */
915
+
916
+ let PaymentComponentTypeValues = /*#__PURE__*/function (PaymentComponentTypeValues) {
917
+ PaymentComponentTypeValues["Component"] = "Component";
918
+ PaymentComponentTypeValues["DropIn"] = "DropIn";
919
+ return PaymentComponentTypeValues;
920
+ }({});
921
+
922
+ /**
923
+ * Reference to a [Payment Integration](ctp:checkout:type:PaymentIntegration).
924
+ *
925
+ */
926
+
927
+ /**
928
+ * Resource identifier to a [Payment Integration](ctp:checkout:type:PaymentIntegration). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/errors#invalidjsoninput) error is returned.
929
+ *
930
+ */
931
+
932
+ let PaymentIntegrationStatusValues = /*#__PURE__*/function (PaymentIntegrationStatusValues) {
933
+ PaymentIntegrationStatusValues["Active"] = "Active";
934
+ PaymentIntegrationStatusValues["Inactive"] = "Inactive";
935
+ return PaymentIntegrationStatusValues;
936
+ }({});
937
+ let PaymentIntegrationTypeValues = /*#__PURE__*/function (PaymentIntegrationTypeValues) {
938
+ PaymentIntegrationTypeValues["GiftCard"] = "GiftCard";
939
+ PaymentIntegrationTypeValues["Psp"] = "Psp";
940
+ return PaymentIntegrationTypeValues;
941
+ }({});
942
+
943
+ /**
944
+ * Base type for all PaymentIntegration update actions.
945
+ *
946
+ */
947
+
948
+ /**
949
+ * PaymentIntegrationUpdateActions
950
+ *
951
+ */
952
+
953
+ /**
954
+ * Sets the automated reversal configuration predicate of a PaymentIntegration.
955
+ *
956
+ */
957
+
958
+ /**
959
+ * Sets the automated reversal configuration status of a PaymentIntegration.
960
+ *
961
+ */
962
+
963
+ /**
964
+ * Sets the automated reversal configuration of a PaymentIntegration.
965
+ *
966
+ */
967
+
968
+ /**
969
+ * Sets the connector deployment reference of a PaymentIntegration.
970
+ *
971
+ */
972
+
973
+ /**
974
+ * Sets the display info description of a PaymentIntegration.
975
+ *
976
+ */
977
+
978
+ /**
979
+ * Sets the display info label of a PaymentIntegration.
980
+ *
981
+ */
982
+
983
+ /**
984
+ * Sets the display info logo URL of a PaymentIntegration.
985
+ *
986
+ */
987
+
988
+ /**
989
+ * Sets the display info pay button text of a PaymentIntegration.
990
+ *
991
+ */
992
+
993
+ /**
994
+ * Sets or unsets the key of a PaymentIntegration.
995
+ *
996
+ */
997
+
998
+ /**
999
+ * Sets the name of a PaymentIntegration.
1000
+ *
1001
+ */
1002
+
1003
+ /**
1004
+ * Sets the predicate of a PaymentIntegration.
1005
+ *
1006
+ */
1007
+
1008
+ /**
1009
+ * Sets the sorting info of a PaymentIntegration.
1010
+ *
1011
+ */
1012
+
1013
+ /**
1014
+ * Sets the status of a PaymentIntegration.
1015
+ *
1016
+ */
1017
+
1018
+ /**
1019
+ * Sets the type of a PaymentIntegration.
1020
+ *
1021
+ */
1022
+
371
1023
  /**
372
1024
  * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
373
1025
  * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
@@ -478,4 +1130,4 @@ function createApiBuilderFromCtpClient(ctpClient, baseUri) {
478
1130
  });
479
1131
  }
480
1132
 
481
- export { ApiRequest, ApiRoot, ByProjectKeyPaymentIntentsByPaymentIdRequestBuilder, ByProjectKeyPaymentIntentsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyTransactionsByIdRequestBuilder, ByProjectKeyTransactionsKeyByKeyRequestBuilder, ByProjectKeyTransactionsRequestBuilder, PaymentIntentOperationValues, ReferenceTypeIdValues, RegionValues, TransactionStateValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };
1133
+ export { ApiRequest, ApiRoot, ApplicationAgreementStatusValues, ApplicationAgreementTypeValues, ApplicationModeValues, ApplicationStatusValues, ByProjectKeyApplicationsByIdRequestBuilder, ByProjectKeyApplicationsKeyByKeyRequestBuilder, ByProjectKeyApplicationsRequestBuilder, ByProjectKeyPaymentIntegrationsByIdRequestBuilder, ByProjectKeyPaymentIntegrationsKeyByKeyRequestBuilder, ByProjectKeyPaymentIntegrationsRequestBuilder, ByProjectKeyPaymentIntentsByPaymentIdRequestBuilder, ByProjectKeyPaymentIntentsRequestBuilder, ByProjectKeyRequestBuilder, ByProjectKeyTransactionsByIdRequestBuilder, ByProjectKeyTransactionsKeyByKeyRequestBuilder, ByProjectKeyTransactionsRequestBuilder, PaymentComponentTypeValues, PaymentIntegrationStatusValues, PaymentIntegrationTypeValues, PaymentIntentOperationValues, ReferenceTypeIdValues, RegionValues, TransactionStateValues, buildRelativeUri, createApiBuilderFromCtpClient, createExecutorFromMiddlewares };