@infrab4a/connect-angular 5.8.0-beta.1 → 5.8.0-beta.2

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.
@@ -3276,13 +3276,16 @@ class OrderRecurrenceService {
3276
3276
  this.checkoutUrl = null;
3277
3277
  this.checkoutUrl = this.configurationFacade.getCheckoutUrl();
3278
3278
  }
3279
+ getRecurrenceOrder(recurrenceId) {
3280
+ return from(this.shoppingRecurrenceRepository.get({ id: recurrenceId }));
3281
+ }
3279
3282
  createRecurrenceOrder(recurrencePayload) {
3280
3283
  return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/createShoppingRecurrence`, {
3281
3284
  data: recurrencePayload,
3282
3285
  });
3283
3286
  }
3284
3287
  updatePaymentMethod(data) {
3285
- return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/shoppingRecurrenceUpdatePaymentMethod`, {
3288
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/updateShoppingRecurrencePaymentMethod`, {
3286
3289
  data,
3287
3290
  });
3288
3291
  }
@@ -3296,6 +3299,34 @@ class OrderRecurrenceService {
3296
3299
  data,
3297
3300
  });
3298
3301
  }
3302
+ cancelRecurrenceOrder(data) {
3303
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/cancelShoppingRecurrence`, {
3304
+ data,
3305
+ });
3306
+ }
3307
+ enableOrDisableRecurrenceOrder(recurrenceId, active) {
3308
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/enableOrDisableShoppingRecurrence`, {
3309
+ recurrenceId,
3310
+ active,
3311
+ });
3312
+ }
3313
+ skipRecurrenceOrder(recurrenceEditionId) {
3314
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/skipShoppingRecurrenceEdition`, {
3315
+ recurrenceEditionId,
3316
+ });
3317
+ }
3318
+ updateFrequency(recurrenceId, frequency) {
3319
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/updateShoppingRecurrenceFrequency`, {
3320
+ recurrenceId,
3321
+ frequency,
3322
+ });
3323
+ }
3324
+ updateLineItems(recurrenceId, lineItems) {
3325
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/updateShoppingRecurrenceLineItems`, {
3326
+ recurrenceId,
3327
+ lineItems,
3328
+ });
3329
+ }
3299
3330
  }
3300
3331
  OrderRecurrenceService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderRecurrenceService, deps: [{ token: 'ShoppingRecurrenceRepository' }, { token: DEFAULT_SHOP }, { token: CheckoutDependenciesFacade }, { token: ConfigurationFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3301
3332
  OrderRecurrenceService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderRecurrenceService });