@aimee.shop/sdk 0.23.0 → 0.24.0-dev.238

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.
@@ -10502,6 +10502,26 @@ export interface paths {
10502
10502
  patch?: never;
10503
10503
  trace?: never;
10504
10504
  };
10505
+ '/v1/storefront/warranty-registrations': {
10506
+ parameters: {
10507
+ query?: never;
10508
+ header?: never;
10509
+ path?: never;
10510
+ cookie?: never;
10511
+ };
10512
+ get?: never;
10513
+ put?: never;
10514
+ /**
10515
+ * Register a product warranty
10516
+ * @description Stores the registration for the store and emails the store support address. A repeat of the same serial number and email returns 201 and creates nothing.
10517
+ */
10518
+ post: operations['StorefrontMarketingController_registerWarranty'];
10519
+ delete?: never;
10520
+ options?: never;
10521
+ head?: never;
10522
+ patch?: never;
10523
+ trace?: never;
10524
+ };
10505
10525
  '/v1/storefront/payment-methods/setup-intents': {
10506
10526
  parameters: {
10507
10527
  query?: never;
@@ -10512,8 +10532,8 @@ export interface paths {
10512
10532
  get?: never;
10513
10533
  put?: never;
10514
10534
  /**
10515
- * Create a SetupIntent for vaulting a card
10516
- * @description Returns a client secret for Stripe Elements. Requires customer JWT. customerId is resolved server-side.
10535
+ * Start saving a card on the store provider
10536
+ * @description Uses the store's provider unless one is given. Stripe: SetupIntent client secret and publishable key for Stripe Elements. Braintree: client token for Hosted Fields. Requires customer JWT. customerId is resolved server-side.
10517
10537
  */
10518
10538
  post: operations['StorefrontPaymentMethodsController_createSetupIntent'];
10519
10539
  delete?: never;
@@ -10532,8 +10552,8 @@ export interface paths {
10532
10552
  get?: never;
10533
10553
  put?: never;
10534
10554
  /**
10535
- * Attach a confirmed SetupIntent as a saved payment method
10536
- * @description Requires a succeeded SetupIntent owned by the authenticated customer.
10555
+ * Save the confirmed card as a payment method
10556
+ * @description Stripe: a succeeded SetupIntent owned by the authenticated customer. Braintree: a 3D Secure verified nonce, checked against the store 3D Secure policy and verified with the card issuer.
10537
10557
  */
10538
10558
  post: operations['StorefrontPaymentMethodsController_attach'];
10539
10559
  delete?: never;
@@ -10928,6 +10948,40 @@ export interface paths {
10928
10948
  patch?: never;
10929
10949
  trace?: never;
10930
10950
  };
10951
+ '/v1/warranty-registrations': {
10952
+ parameters: {
10953
+ query?: never;
10954
+ header?: never;
10955
+ path?: never;
10956
+ cookie?: never;
10957
+ };
10958
+ /** List warranty registrations, newest first */
10959
+ get: operations['WarrantyRegistrationsAdminController_list'];
10960
+ put?: never;
10961
+ post?: never;
10962
+ delete?: never;
10963
+ options?: never;
10964
+ head?: never;
10965
+ patch?: never;
10966
+ trace?: never;
10967
+ };
10968
+ '/v1/warranty-registrations/{id}': {
10969
+ parameters: {
10970
+ query?: never;
10971
+ header?: never;
10972
+ path?: never;
10973
+ cookie?: never;
10974
+ };
10975
+ /** Get a warranty registration by id */
10976
+ get: operations['WarrantyRegistrationsAdminController_getOne'];
10977
+ put?: never;
10978
+ post?: never;
10979
+ delete?: never;
10980
+ options?: never;
10981
+ head?: never;
10982
+ patch?: never;
10983
+ trace?: never;
10984
+ };
10931
10985
  '/v1/admin/bootstrap': {
10932
10986
  parameters: {
10933
10987
  query?: never;
@@ -34783,10 +34837,33 @@ export interface components {
34783
34837
  /** @description Whether the contact message was accepted */
34784
34838
  accepted: boolean;
34785
34839
  };
34840
+ RegisterWarrantyDto: {
34841
+ /** @description Registered product name */
34842
+ productName: string;
34843
+ /** @description Product serial number (letters, digits and dashes) */
34844
+ serialNumber: string;
34845
+ /**
34846
+ * @description Purchase date (YYYY-MM-DD)
34847
+ * @example 2026-10-01
34848
+ */
34849
+ purchaseDate: string;
34850
+ /** @description Retailer or site the product was bought from */
34851
+ purchasedFrom: string;
34852
+ /** @description Owner full name */
34853
+ ownerName: string;
34854
+ /** @description Owner email address */
34855
+ email: string;
34856
+ /** @description Store order number, if bought here */
34857
+ orderNumber?: string;
34858
+ };
34859
+ RegisterWarrantyResponseDto: {
34860
+ /** @description Whether the registration was accepted */
34861
+ accepted: boolean;
34862
+ };
34786
34863
  StorefrontCreateSetupIntentDto: {
34787
34864
  /**
34788
- * @description Payment provider
34789
- * @example stripe
34865
+ * @description Payment provider. Omit it to use the store's provider; the response says which
34866
+ * @example braintree
34790
34867
  */
34791
34868
  provider?: string;
34792
34869
  /**
@@ -34804,10 +34881,15 @@ export interface components {
34804
34881
  };
34805
34882
  };
34806
34883
  StorefrontSetupIntentResponseDto: {
34807
- /** @description Client secret for frontend confirmation via stripe.confirmSetup() */
34884
+ /**
34885
+ * @description Provider the card is saved with. Send it back on attach.
34886
+ * @example braintree
34887
+ */
34888
+ provider: string;
34889
+ /** @description Stripe: SetupIntent client secret for stripe.confirmSetup(). Braintree: client token for Hosted Fields and 3D Secure */
34808
34890
  clientSecret: string;
34809
34891
  /**
34810
- * @description Provider setup intent ID
34892
+ * @description Stripe SetupIntent ID; empty for Braintree
34811
34893
  * @example seti_...
34812
34894
  */
34813
34895
  setupIntentId: string;
@@ -34820,13 +34902,13 @@ export interface components {
34820
34902
  publishableKey: string;
34821
34903
  };
34822
34904
  StorefrontAttachPaymentMethodDto: {
34823
- /** @description Succeeded SetupIntent id from the provider */
34905
+ /** @description Stripe: succeeded SetupIntent id. Braintree: the 3D Secure verified Hosted Fields nonce */
34824
34906
  setupIntentId: string;
34825
34907
  /** @description Set as the customer default payment method */
34826
34908
  isDefault?: boolean;
34827
34909
  /**
34828
- * @description Payment provider
34829
- * @example stripe
34910
+ * @description Payment provider from the setup-intent response. Omitted: the store's provider
34911
+ * @example braintree
34830
34912
  */
34831
34913
  provider?: string;
34832
34914
  };
@@ -35162,6 +35244,29 @@ export interface components {
35162
35244
  totals: components['schemas']['OrderStatusTotalsDto'];
35163
35245
  tracking: components['schemas']['OrderStatusTrackingDto'][];
35164
35246
  };
35247
+ WarrantyRegistrationResponseDto: {
35248
+ id: string;
35249
+ productName: string;
35250
+ serialNumber: string;
35251
+ /** @description YYYY-MM-DD */
35252
+ purchaseDate: string;
35253
+ purchasedFrom: string;
35254
+ ownerName: string;
35255
+ email: string;
35256
+ orderNumber: string | null;
35257
+ customerId: string | null;
35258
+ orderId: string | null;
35259
+ /** Format: date-time */
35260
+ supportNotifiedAt: string | null;
35261
+ /** Format: date-time */
35262
+ createdAt: string;
35263
+ };
35264
+ WarrantyRegistrationListResponseDto: {
35265
+ data: components['schemas']['WarrantyRegistrationResponseDto'][];
35266
+ total: number;
35267
+ limit: number;
35268
+ offset: number;
35269
+ };
35165
35270
  UserEffectivePermissionsDto: {
35166
35271
  /**
35167
35272
  * @description Role names assigned to the user
@@ -61649,6 +61754,39 @@ export interface operations {
61649
61754
  };
61650
61755
  };
61651
61756
  };
61757
+ StorefrontMarketingController_registerWarranty: {
61758
+ parameters: {
61759
+ query?: never;
61760
+ header?: {
61761
+ /** @description Storefront API key */
61762
+ 'x-api-key'?: string;
61763
+ };
61764
+ path?: never;
61765
+ cookie?: never;
61766
+ };
61767
+ requestBody: {
61768
+ content: {
61769
+ 'application/json': components['schemas']['RegisterWarrantyDto'];
61770
+ };
61771
+ };
61772
+ responses: {
61773
+ 201: {
61774
+ headers: {
61775
+ [name: string]: unknown;
61776
+ };
61777
+ content: {
61778
+ 'application/json': components['schemas']['RegisterWarrantyResponseDto'];
61779
+ };
61780
+ };
61781
+ /** @description Validation error */
61782
+ 400: {
61783
+ headers: {
61784
+ [name: string]: unknown;
61785
+ };
61786
+ content?: never;
61787
+ };
61788
+ };
61789
+ };
61652
61790
  StorefrontPaymentMethodsController_createSetupIntent: {
61653
61791
  parameters: {
61654
61792
  query?: never;
@@ -61727,6 +61865,13 @@ export interface operations {
61727
61865
  };
61728
61866
  content?: never;
61729
61867
  };
61868
+ /** @description Braintree card verification declined or 3D Secure refused (PAYMENT_METHOD_DECLINED) */
61869
+ 402: {
61870
+ headers: {
61871
+ [name: string]: unknown;
61872
+ };
61873
+ content?: never;
61874
+ };
61730
61875
  /** @description Customer profile not found */
61731
61876
  404: {
61732
61877
  headers: {
@@ -62639,6 +62784,53 @@ export interface operations {
62639
62784
  };
62640
62785
  };
62641
62786
  };
62787
+ WarrantyRegistrationsAdminController_list: {
62788
+ parameters: {
62789
+ query?: {
62790
+ /** @description Exact email (case-insensitive) */
62791
+ email?: string;
62792
+ /** @description Exact serial number (case-insensitive) */
62793
+ serialNumber?: string;
62794
+ limit?: number;
62795
+ offset?: number;
62796
+ };
62797
+ header?: never;
62798
+ path?: never;
62799
+ cookie?: never;
62800
+ };
62801
+ requestBody?: never;
62802
+ responses: {
62803
+ 200: {
62804
+ headers: {
62805
+ [name: string]: unknown;
62806
+ };
62807
+ content: {
62808
+ 'application/json': components['schemas']['WarrantyRegistrationListResponseDto'];
62809
+ };
62810
+ };
62811
+ };
62812
+ };
62813
+ WarrantyRegistrationsAdminController_getOne: {
62814
+ parameters: {
62815
+ query?: never;
62816
+ header?: never;
62817
+ path: {
62818
+ id: string;
62819
+ };
62820
+ cookie?: never;
62821
+ };
62822
+ requestBody?: never;
62823
+ responses: {
62824
+ 200: {
62825
+ headers: {
62826
+ [name: string]: unknown;
62827
+ };
62828
+ content: {
62829
+ 'application/json': components['schemas']['WarrantyRegistrationResponseDto'];
62830
+ };
62831
+ };
62832
+ };
62833
+ };
62642
62834
  BootstrapController_getBootstrap: {
62643
62835
  parameters: {
62644
62836
  query?: {