@wix/auto_sdk_get-paid_receipts 1.0.121 → 1.0.123

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.
@@ -303,6 +303,43 @@ interface StreetAddress {
303
303
  /** Apartment number. */
304
304
  apt?: string;
305
305
  }
306
+ interface AddressLocation {
307
+ /** Address latitude. */
308
+ latitude?: number | null;
309
+ /** Address longitude. */
310
+ longitude?: number | null;
311
+ }
312
+ interface Subdivision {
313
+ /** Short subdivision code. */
314
+ code?: string;
315
+ /** Subdivision full name. */
316
+ name?: string;
317
+ }
318
+ declare enum SubdivisionType {
319
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
320
+ /** State */
321
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
322
+ /** County */
323
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
324
+ /** City/town */
325
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
326
+ /** Neighborhood/quarter */
327
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
328
+ /** Street/block */
329
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
330
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
331
+ COUNTRY = "COUNTRY"
332
+ }
333
+ /** @enumType */
334
+ type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
335
+ /** Subdivision Concordance values */
336
+ interface StandardDetails {
337
+ /**
338
+ * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30
339
+ * @maxLength 20
340
+ */
341
+ iso31662?: string | null;
342
+ }
306
343
  interface Image {
307
344
  /** WixMedia image ID. */
308
345
  id?: string;
@@ -760,6 +797,232 @@ interface ExtendedFields {
760
797
  */
761
798
  namespaces?: Record<string, Record<string, any>>;
762
799
  }
800
+ interface Sent {
801
+ /** Receipt that was sent. */
802
+ receipt?: Receipt;
803
+ /** Receipt was sent in automatic or manual flow. */
804
+ automatic?: boolean;
805
+ }
806
+ interface UpdateReceiptRequest {
807
+ /** Receipt. */
808
+ receipt?: Receipt;
809
+ }
810
+ interface UpdateReceiptResponse {
811
+ /** Receipt. */
812
+ receipt?: Receipt;
813
+ }
814
+ interface DomainEvent extends DomainEventBodyOneOf {
815
+ createdEvent?: EntityCreatedEvent;
816
+ updatedEvent?: EntityUpdatedEvent;
817
+ deletedEvent?: EntityDeletedEvent;
818
+ actionEvent?: ActionEvent;
819
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
820
+ id?: string;
821
+ /**
822
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
823
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
824
+ */
825
+ entityFqdn?: string;
826
+ /**
827
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
828
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
829
+ */
830
+ slug?: string;
831
+ /** ID of the entity associated with the event. */
832
+ entityId?: string;
833
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
834
+ eventTime?: Date | null;
835
+ /**
836
+ * Whether the event was triggered as a result of a privacy regulation application
837
+ * (for example, GDPR).
838
+ */
839
+ triggeredByAnonymizeRequest?: boolean | null;
840
+ /** If present, indicates the action that triggered the event. */
841
+ originatedFrom?: string | null;
842
+ /**
843
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
844
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
845
+ */
846
+ entityEventSequence?: string | null;
847
+ }
848
+ /** @oneof */
849
+ interface DomainEventBodyOneOf {
850
+ createdEvent?: EntityCreatedEvent;
851
+ updatedEvent?: EntityUpdatedEvent;
852
+ deletedEvent?: EntityDeletedEvent;
853
+ actionEvent?: ActionEvent;
854
+ }
855
+ interface EntityCreatedEvent {
856
+ entityAsJson?: string;
857
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
858
+ restoreInfo?: RestoreInfo;
859
+ }
860
+ interface RestoreInfo {
861
+ deletedDate?: Date | null;
862
+ }
863
+ interface EntityUpdatedEvent {
864
+ /**
865
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
866
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
867
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
868
+ */
869
+ currentEntityAsJson?: string;
870
+ }
871
+ interface EntityDeletedEvent {
872
+ /** Entity that was deleted. */
873
+ deletedEntityAsJson?: string | null;
874
+ }
875
+ interface ActionEvent {
876
+ bodyAsJson?: string;
877
+ }
878
+ interface MessageEnvelope {
879
+ /**
880
+ * App instance ID.
881
+ * @format GUID
882
+ */
883
+ instanceId?: string | null;
884
+ /**
885
+ * Event type.
886
+ * @maxLength 150
887
+ */
888
+ eventType?: string;
889
+ /** The identification type and identity data. */
890
+ identity?: IdentificationData;
891
+ /** Stringify payload. */
892
+ data?: string;
893
+ }
894
+ interface IdentificationData extends IdentificationDataIdOneOf {
895
+ /**
896
+ * ID of a site visitor that has not logged in to the site.
897
+ * @format GUID
898
+ */
899
+ anonymousVisitorId?: string;
900
+ /**
901
+ * ID of a site visitor that has logged in to the site.
902
+ * @format GUID
903
+ */
904
+ memberId?: string;
905
+ /**
906
+ * ID of a Wix user (site owner, contributor, etc.).
907
+ * @format GUID
908
+ */
909
+ wixUserId?: string;
910
+ /**
911
+ * ID of an app.
912
+ * @format GUID
913
+ */
914
+ appId?: string;
915
+ /** @readonly */
916
+ identityType?: WebhookIdentityTypeWithLiterals;
917
+ }
918
+ /** @oneof */
919
+ interface IdentificationDataIdOneOf {
920
+ /**
921
+ * ID of a site visitor that has not logged in to the site.
922
+ * @format GUID
923
+ */
924
+ anonymousVisitorId?: string;
925
+ /**
926
+ * ID of a site visitor that has logged in to the site.
927
+ * @format GUID
928
+ */
929
+ memberId?: string;
930
+ /**
931
+ * ID of a Wix user (site owner, contributor, etc.).
932
+ * @format GUID
933
+ */
934
+ wixUserId?: string;
935
+ /**
936
+ * ID of an app.
937
+ * @format GUID
938
+ */
939
+ appId?: string;
940
+ }
941
+ declare enum WebhookIdentityType {
942
+ UNKNOWN = "UNKNOWN",
943
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
944
+ MEMBER = "MEMBER",
945
+ WIX_USER = "WIX_USER",
946
+ APP = "APP"
947
+ }
948
+ /** @enumType */
949
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
950
+ interface ReceiptDocumentProcess {
951
+ /**
952
+ * Receipt Id.
953
+ * @format GUID
954
+ */
955
+ receiptId?: string;
956
+ /**
957
+ * Media Document Id.
958
+ * @format GUID
959
+ */
960
+ documentId?: string;
961
+ /**
962
+ * Existing File Id that will be deleted after the document is generated.
963
+ * @maxLength 100
964
+ */
965
+ existingFileId?: string | null;
966
+ }
967
+ interface ReceiptNumberingProcess {
968
+ /**
969
+ * Receipt Id.
970
+ * @format GUID
971
+ */
972
+ receiptId?: string;
973
+ }
974
+ interface ReceiptDocumentHandled extends ReceiptDocumentHandledResultOneOf {
975
+ /** Populated only if receipt document handling has succeeded. */
976
+ succeeded?: Succeeded;
977
+ /** Populated only if receipt document handling has failed. */
978
+ failed?: Failed;
979
+ }
980
+ /** @oneof */
981
+ interface ReceiptDocumentHandledResultOneOf {
982
+ /** Populated only if receipt document handling has succeeded. */
983
+ succeeded?: Succeeded;
984
+ /** Populated only if receipt document handling has failed. */
985
+ failed?: Failed;
986
+ }
987
+ interface Succeeded {
988
+ /**
989
+ * Receipt Id.
990
+ * @format GUID
991
+ */
992
+ receiptId?: string;
993
+ /**
994
+ * Media file Id.
995
+ * @maxLength 100
996
+ */
997
+ mediaFileId?: string;
998
+ /**
999
+ * Download URL.
1000
+ * @maxLength 200
1001
+ */
1002
+ downloadUrl?: string;
1003
+ }
1004
+ interface Failed {
1005
+ /**
1006
+ * Receipt Id.
1007
+ * @format GUID
1008
+ */
1009
+ receiptId?: string;
1010
+ }
1011
+ interface GenerateReceiptDocument {
1012
+ /**
1013
+ * Receipt Id.
1014
+ * @format GUID
1015
+ */
1016
+ receiptId?: string;
1017
+ /** Shows how request for document generation was made. */
1018
+ requestOrigin?: RequestOriginWithLiterals;
1019
+ }
1020
+ declare enum RequestOrigin {
1021
+ INITIAL = "INITIAL",
1022
+ MANUAL = "MANUAL"
1023
+ }
1024
+ /** @enumType */
1025
+ type RequestOriginWithLiterals = RequestOrigin | 'INITIAL' | 'MANUAL';
763
1026
  interface CreateReceiptRequest {
764
1027
  /** Receipt to create. */
765
1028
  receipt: Receipt;
@@ -915,6 +1178,46 @@ interface UpdateExtendedFieldsResponse {
915
1178
  /** Updated receipt. */
916
1179
  receipt?: Receipt;
917
1180
  }
1181
+ interface Empty {
1182
+ }
1183
+ /** @docsIgnore */
1184
+ type CreateReceiptApplicationErrors = {
1185
+ code?: 'APP_INSTALLATION_FAILED';
1186
+ description?: string;
1187
+ data?: Record<string, any>;
1188
+ } | {
1189
+ code?: 'NO_META_SITE';
1190
+ description?: string;
1191
+ data?: Record<string, any>;
1192
+ } | {
1193
+ code?: 'RECEIPT_PRESET_NOT_FOUND';
1194
+ description?: string;
1195
+ data?: Record<string, any>;
1196
+ };
1197
+ /** @docsIgnore */
1198
+ type RegenerateReceiptDocumentApplicationErrors = {
1199
+ code?: 'NOT_APPLICABLE_TO_REGENERATE';
1200
+ description?: string;
1201
+ data?: Record<string, any>;
1202
+ };
1203
+ /** @docsIgnore */
1204
+ type SendReceiptEmailApplicationErrors = {
1205
+ code?: 'MISSING_CONTACT';
1206
+ description?: string;
1207
+ data?: Record<string, any>;
1208
+ } | {
1209
+ code?: 'NO_META_SITE';
1210
+ description?: string;
1211
+ data?: Record<string, any>;
1212
+ } | {
1213
+ code?: 'MISSING_DOCUMENT';
1214
+ description?: string;
1215
+ data?: Record<string, any>;
1216
+ } | {
1217
+ code?: 'MISSING_NUMBERING';
1218
+ description?: string;
1219
+ data?: Record<string, any>;
1220
+ };
918
1221
 
919
1222
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
920
1223
  getUrl: (context: any) => string;
@@ -942,4 +1245,4 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
942
1245
  id: string;
943
1246
  }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1, UpdateExtendedFieldsResponse>;
944
1247
 
945
- export { type __PublicMethodMetaInfo, createReceipt, getLatestReceiptNumber, getReceipt, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, updateExtendedFields };
1248
+ export { type ActionEvent as ActionEventOriginal, type AdditionalFee as AdditionalFeeOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressStreetOneOf as AddressStreetOneOfOriginal, type BusinessDetails as BusinessDetailsOriginal, type CreateReceiptApplicationErrors as CreateReceiptApplicationErrorsOriginal, type CreateReceiptRequest as CreateReceiptRequestOriginal, type CreateReceiptResponse as CreateReceiptResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomField as CustomFieldOriginal, type CustomFields as CustomFieldsOriginal, type Customer as CustomerOriginal, type Discount as DiscountOriginal, type Document as DocumentOriginal, DocumentStatus as DocumentStatusOriginal, type DocumentStatusWithLiterals as DocumentStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type Failed as FailedOriginal, type FooterCustomField as FooterCustomFieldOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GenerateReceiptDocument as GenerateReceiptDocumentOriginal, type GetLatestReceiptNumberRequest as GetLatestReceiptNumberRequestOriginal, type GetLatestReceiptNumberResponse as GetLatestReceiptNumberResponseOriginal, type GetReceiptRequest as GetReceiptRequestOriginal, type GetReceiptResponse as GetReceiptResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type LineItem as LineItemOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemTotals as LineItemTotalsOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Numbering as NumberingOriginal, type Payment as PaymentOriginal, type QueryReceiptsRequest as QueryReceiptsRequestOriginal, type QueryReceiptsResponse as QueryReceiptsResponseOriginal, type ReceiptDocumentHandled as ReceiptDocumentHandledOriginal, type ReceiptDocumentHandledResultOneOf as ReceiptDocumentHandledResultOneOfOriginal, type ReceiptDocumentProcess as ReceiptDocumentProcessOriginal, type ReceiptNumberingProcess as ReceiptNumberingProcessOriginal, ReceiptOrderType as ReceiptOrderTypeOriginal, type ReceiptOrderTypeWithLiterals as ReceiptOrderTypeWithLiteralsOriginal, type Receipt as ReceiptOriginal, type RegenerateReceiptDocumentApplicationErrors as RegenerateReceiptDocumentApplicationErrorsOriginal, type RegenerateReceiptDocumentRequest as RegenerateReceiptDocumentRequestOriginal, type RegenerateReceiptDocumentResponse as RegenerateReceiptDocumentResponseOriginal, type RegionalProperties as RegionalPropertiesOriginal, RequestOrigin as RequestOriginOriginal, type RequestOriginWithLiterals as RequestOriginWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type SendReceiptEmailApplicationErrors as SendReceiptEmailApplicationErrorsOriginal, type SendReceiptEmailRequest as SendReceiptEmailRequestOriginal, type SendReceiptEmailResponse as SendReceiptEmailResponseOriginal, type Sent as SentOriginal, type ShippingAddressContactDetails as ShippingAddressContactDetailsOriginal, type ShippingInfo as ShippingInfoOriginal, type ShippingTax as ShippingTaxOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SourceReferenceOrderOneOf as SourceReferenceOrderOneOfOriginal, type SourceReference as SourceReferenceOriginal, type StandardDetails as StandardDetailsOriginal, type StreetAddress as StreetAddressOriginal, type Subdivision as SubdivisionOriginal, SubdivisionType as SubdivisionTypeOriginal, type SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal, type Succeeded as SucceededOriginal, type Tax as TaxOriginal, type Totals as TotalsOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateReceiptRequest as UpdateReceiptRequestOriginal, type UpdateReceiptResponse as UpdateReceiptResponseOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixEcom as WixEcomOriginal, type WixPayment as WixPaymentOriginal, type __PublicMethodMetaInfo, createReceipt, getLatestReceiptNumber, getReceipt, queryReceipts, regenerateReceiptDocument, sendReceiptEmail, updateExtendedFields };
package/build/cjs/meta.js CHANGED
@@ -20,6 +20,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ DocumentStatusOriginal: () => DocumentStatus,
24
+ ReceiptOrderTypeOriginal: () => ReceiptOrderType,
25
+ RequestOriginOriginal: () => RequestOrigin,
26
+ SortOrderOriginal: () => SortOrder,
27
+ SubdivisionTypeOriginal: () => SubdivisionType,
28
+ VatTypeOriginal: () => VatType,
29
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
30
  createReceipt: () => createReceipt2,
24
31
  getLatestReceiptNumber: () => getLatestReceiptNumber2,
25
32
  getReceipt: () => getReceipt2,
@@ -97,6 +104,9 @@ function createReceipt(payload) {
97
104
  method: "POST",
98
105
  methodFqn: "wix.receipts.v1.Receipts.CreateReceipt",
99
106
  packageName: PACKAGE_NAME,
107
+ migrationOptions: {
108
+ optInTransformResponse: true
109
+ },
100
110
  url: resolveWixReceiptsV1ReceiptsUrl({
101
111
  protoPath: "/v1/receipts",
102
112
  data: serializedData,
@@ -137,6 +147,9 @@ function getReceipt(payload) {
137
147
  method: "GET",
138
148
  methodFqn: "wix.receipts.v1.Receipts.GetReceipt",
139
149
  packageName: PACKAGE_NAME,
150
+ migrationOptions: {
151
+ optInTransformResponse: true
152
+ },
140
153
  url: resolveWixReceiptsV1ReceiptsUrl({
141
154
  protoPath: "/v1/receipts/{receiptId}",
142
155
  data: payload,
@@ -177,6 +190,9 @@ function queryReceipts(payload) {
177
190
  method: "POST",
178
191
  methodFqn: "wix.receipts.v1.Receipts.QueryReceipts",
179
192
  packageName: PACKAGE_NAME,
193
+ migrationOptions: {
194
+ optInTransformResponse: true
195
+ },
180
196
  url: resolveWixReceiptsV1ReceiptsUrl({
181
197
  protoPath: "/v1/receipts/query",
182
198
  data: payload,
@@ -217,6 +233,9 @@ function regenerateReceiptDocument(payload) {
217
233
  method: "POST",
218
234
  methodFqn: "wix.receipts.v1.Receipts.RegenerateReceiptDocument",
219
235
  packageName: PACKAGE_NAME,
236
+ migrationOptions: {
237
+ optInTransformResponse: true
238
+ },
220
239
  url: resolveWixReceiptsV1ReceiptsUrl({
221
240
  protoPath: "/v1/receipts/{receiptId}/regenerate-receipt-document",
222
241
  data: payload,
@@ -235,6 +254,9 @@ function sendReceiptEmail(payload) {
235
254
  method: "POST",
236
255
  methodFqn: "wix.receipts.v1.Receipts.SendReceiptEmail",
237
256
  packageName: PACKAGE_NAME,
257
+ migrationOptions: {
258
+ optInTransformResponse: true
259
+ },
238
260
  url: resolveWixReceiptsV1ReceiptsUrl({
239
261
  protoPath: "/v1/receipts/{receiptId}/send-email",
240
262
  data: payload,
@@ -253,6 +275,9 @@ function getLatestReceiptNumber(payload) {
253
275
  method: "GET",
254
276
  methodFqn: "wix.receipts.v1.Receipts.GetLatestReceiptNumber",
255
277
  packageName: PACKAGE_NAME,
278
+ migrationOptions: {
279
+ optInTransformResponse: true
280
+ },
256
281
  url: resolveWixReceiptsV1ReceiptsUrl({
257
282
  protoPath: "/v1/receipts/get-latest-number",
258
283
  data: payload,
@@ -271,6 +296,9 @@ function updateExtendedFields(payload) {
271
296
  method: "POST",
272
297
  methodFqn: "wix.receipts.v1.Receipts.UpdateExtendedFields",
273
298
  packageName: PACKAGE_NAME,
299
+ migrationOptions: {
300
+ optInTransformResponse: true
301
+ },
274
302
  url: resolveWixReceiptsV1ReceiptsUrl({
275
303
  protoPath: "/v1/receipts/{id}/update-extended-fields",
276
304
  data: payload,
@@ -305,6 +333,55 @@ function updateExtendedFields(payload) {
305
333
  return __updateExtendedFields;
306
334
  }
307
335
 
336
+ // src/receipts-v1-receipt-receipts.types.ts
337
+ var ReceiptOrderType = /* @__PURE__ */ ((ReceiptOrderType2) => {
338
+ ReceiptOrderType2["UNKNOWN_ORDER_TYPE"] = "UNKNOWN_ORDER_TYPE";
339
+ ReceiptOrderType2["WIX_PAYMENT"] = "WIX_PAYMENT";
340
+ ReceiptOrderType2["WIX_ECOM"] = "WIX_ECOM";
341
+ return ReceiptOrderType2;
342
+ })(ReceiptOrderType || {});
343
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
344
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
345
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
346
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
347
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
348
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
349
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
350
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
351
+ return SubdivisionType2;
352
+ })(SubdivisionType || {});
353
+ var VatType = /* @__PURE__ */ ((VatType2) => {
354
+ VatType2["UNSPECIFIED"] = "UNSPECIFIED";
355
+ VatType2["CPF"] = "CPF";
356
+ VatType2["CNPJ"] = "CNPJ";
357
+ return VatType2;
358
+ })(VatType || {});
359
+ var DocumentStatus = /* @__PURE__ */ ((DocumentStatus2) => {
360
+ DocumentStatus2["UNKNOWN_DOCUMENT_STATUS"] = "UNKNOWN_DOCUMENT_STATUS";
361
+ DocumentStatus2["PROCESSING"] = "PROCESSING";
362
+ DocumentStatus2["AVAILABLE"] = "AVAILABLE";
363
+ DocumentStatus2["FAILED"] = "FAILED";
364
+ return DocumentStatus2;
365
+ })(DocumentStatus || {});
366
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
367
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
368
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
369
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
370
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
371
+ WebhookIdentityType2["APP"] = "APP";
372
+ return WebhookIdentityType2;
373
+ })(WebhookIdentityType || {});
374
+ var RequestOrigin = /* @__PURE__ */ ((RequestOrigin2) => {
375
+ RequestOrigin2["INITIAL"] = "INITIAL";
376
+ RequestOrigin2["MANUAL"] = "MANUAL";
377
+ return RequestOrigin2;
378
+ })(RequestOrigin || {});
379
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
380
+ SortOrder2["ASC"] = "ASC";
381
+ SortOrder2["DESC"] = "DESC";
382
+ return SortOrder2;
383
+ })(SortOrder || {});
384
+
308
385
  // src/receipts-v1-receipt-receipts.meta.ts
309
386
  function createReceipt2() {
310
387
  const payload = {};
@@ -434,6 +511,13 @@ function updateExtendedFields2() {
434
511
  }
435
512
  // Annotate the CommonJS export names for ESM import in node:
436
513
  0 && (module.exports = {
514
+ DocumentStatusOriginal,
515
+ ReceiptOrderTypeOriginal,
516
+ RequestOriginOriginal,
517
+ SortOrderOriginal,
518
+ SubdivisionTypeOriginal,
519
+ VatTypeOriginal,
520
+ WebhookIdentityTypeOriginal,
437
521
  createReceipt,
438
522
  getLatestReceiptNumber,
439
523
  getReceipt,