@wix/payments 1.0.4 → 1.0.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/payments",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/payments_refunds": "1.0.4"
21
+ "@wix/payments_refunds": "1.0.5"
22
22
  },
23
23
  "devDependencies": {
24
24
  "glob": "^10.4.1",
@@ -42,5 +42,5 @@
42
42
  "fqdn": ""
43
43
  }
44
44
  },
45
- "falconPackageHash": "135b055a9e99a38f39f6b1db3c9d7f265a0ca085769e6150eba411cb"
45
+ "falconPackageHash": "b6855b55b9e54ca91a6b035e430ec1ee043f21b93272451278b3b5de"
46
46
  }
@@ -479,45 +479,35 @@ declare enum WebhookIdentityType {
479
479
  WIX_USER = "WIX_USER",
480
480
  APP = "APP"
481
481
  }
482
+ interface StatusInfoNonNullableFields {
483
+ code: string;
484
+ }
485
+ interface RefundNonNullableFields {
486
+ status: Status;
487
+ initiator: Initiator;
488
+ statusInfo?: StatusInfoNonNullableFields;
489
+ }
482
490
  interface CreateRefundResponseNonNullableFields {
483
- refund?: {
484
- status: Status;
485
- statusInfo?: {
486
- code: string;
487
- };
488
- };
491
+ refund?: RefundNonNullableFields;
489
492
  }
490
493
  interface GetRefundResponseNonNullableFields {
491
- refund?: {
492
- status: Status;
493
- statusInfo?: {
494
- code: string;
495
- };
496
- };
494
+ refund?: RefundNonNullableFields;
497
495
  }
498
496
  interface QueryRefundsResponseNonNullableFields {
499
- refunds: {
500
- status: Status;
501
- statusInfo?: {
502
- code: string;
503
- };
504
- }[];
497
+ refunds: RefundNonNullableFields[];
505
498
  }
506
499
  interface UpdateExtendedFieldsResponseNonNullableFields {
507
- refund?: {
508
- status: Status;
509
- statusInfo?: {
510
- code: string;
511
- };
512
- };
500
+ refund?: RefundNonNullableFields;
501
+ }
502
+ interface RejectionNonNullableFields {
503
+ reason: RejectionReason;
504
+ }
505
+ interface RefundabilityNonNullableFields {
506
+ rejection?: RejectionNonNullableFields;
507
+ refundable: boolean;
513
508
  }
514
509
  interface GetRefundabilityResponseNonNullableFields {
515
- refundability?: {
516
- rejection?: {
517
- reason: RejectionReason;
518
- };
519
- refundable: boolean;
520
- };
510
+ refundability?: RefundabilityNonNullableFields;
521
511
  }
522
512
  interface BaseEventMetadata {
523
513
  /** App instance ID. */
@@ -712,6 +702,7 @@ type context_QueryRefundsResponse = QueryRefundsResponse;
712
702
  type context_QueryRefundsResponseNonNullableFields = QueryRefundsResponseNonNullableFields;
713
703
  type context_Refund = Refund;
714
704
  type context_RefundCreatedEnvelope = RefundCreatedEnvelope;
705
+ type context_RefundNonNullableFields = RefundNonNullableFields;
715
706
  type context_RefundOptions = RefundOptions;
716
707
  type context_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
717
708
  type context_Refundability = Refundability;
@@ -743,7 +734,7 @@ declare const context_onRefundUpdated: typeof onRefundUpdated;
743
734
  declare const context_queryRefunds: typeof queryRefunds;
744
735
  declare const context_updateExtendedFields: typeof updateExtendedFields;
745
736
  declare namespace context {
746
- export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateRefundOptions as CreateRefundOptions, type context_CreateRefundRequest as CreateRefundRequest, type context_CreateRefundResponse as CreateRefundResponse, type context_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_GetRefundRequest as GetRefundRequest, type context_GetRefundResponse as GetRefundResponse, type context_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type context_GetRefundabilityRequest as GetRefundabilityRequest, type context_GetRefundabilityResponse as GetRefundabilityResponse, type context_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_Initiator as Initiator, type context_MessageEnvelope as MessageEnvelope, type context_QueryRefundsRequest as QueryRefundsRequest, type context_QueryRefundsResponse as QueryRefundsResponse, type context_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type context_Refund as Refund, type context_RefundCreatedEnvelope as RefundCreatedEnvelope, type context_RefundOptions as RefundOptions, type context_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type context_Refundability as Refundability, type context_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type context_RefundsQueryBuilder as RefundsQueryBuilder, type context_RefundsQueryResult as RefundsQueryResult, type context_Rejection as Rejection, context_RejectionReason as RejectionReason, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Status as Status, type context_StatusInfo as StatusInfo, type context_SyncRefundRequest as SyncRefundRequest, type context_SyncRefundResponse as SyncRefundResponse, type context_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type context_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type context_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type context_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_createRefund as createRefund, context_getRefund as getRefund, context_getRefundability as getRefundability, context_onRefundCreated as onRefundCreated, context_onRefundUpdated as onRefundUpdated, context_queryRefunds as queryRefunds, context_updateExtendedFields as updateExtendedFields };
737
+ export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateRefundOptions as CreateRefundOptions, type context_CreateRefundRequest as CreateRefundRequest, type context_CreateRefundResponse as CreateRefundResponse, type context_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_GetRefundRequest as GetRefundRequest, type context_GetRefundResponse as GetRefundResponse, type context_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type context_GetRefundabilityRequest as GetRefundabilityRequest, type context_GetRefundabilityResponse as GetRefundabilityResponse, type context_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_Initiator as Initiator, type context_MessageEnvelope as MessageEnvelope, type context_QueryRefundsRequest as QueryRefundsRequest, type context_QueryRefundsResponse as QueryRefundsResponse, type context_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type context_Refund as Refund, type context_RefundCreatedEnvelope as RefundCreatedEnvelope, type context_RefundNonNullableFields as RefundNonNullableFields, type context_RefundOptions as RefundOptions, type context_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type context_Refundability as Refundability, type context_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type context_RefundsQueryBuilder as RefundsQueryBuilder, type context_RefundsQueryResult as RefundsQueryResult, type context_Rejection as Rejection, context_RejectionReason as RejectionReason, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_Status as Status, type context_StatusInfo as StatusInfo, type context_SyncRefundRequest as SyncRefundRequest, type context_SyncRefundResponse as SyncRefundResponse, type context_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type context_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type context_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type context_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_createRefund as createRefund, context_getRefund as getRefund, context_getRefundability as getRefundability, context_onRefundCreated as onRefundCreated, context_onRefundUpdated as onRefundUpdated, context_queryRefunds as queryRefunds, context_updateExtendedFields as updateExtendedFields };
747
738
  }
748
739
 
749
740
  export { context as refunds };
@@ -479,45 +479,35 @@ declare enum WebhookIdentityType {
479
479
  WIX_USER = "WIX_USER",
480
480
  APP = "APP"
481
481
  }
482
+ interface StatusInfoNonNullableFields {
483
+ code: string;
484
+ }
485
+ interface RefundNonNullableFields {
486
+ status: Status;
487
+ initiator: Initiator;
488
+ statusInfo?: StatusInfoNonNullableFields;
489
+ }
482
490
  interface CreateRefundResponseNonNullableFields {
483
- refund?: {
484
- status: Status;
485
- statusInfo?: {
486
- code: string;
487
- };
488
- };
491
+ refund?: RefundNonNullableFields;
489
492
  }
490
493
  interface GetRefundResponseNonNullableFields {
491
- refund?: {
492
- status: Status;
493
- statusInfo?: {
494
- code: string;
495
- };
496
- };
494
+ refund?: RefundNonNullableFields;
497
495
  }
498
496
  interface QueryRefundsResponseNonNullableFields {
499
- refunds: {
500
- status: Status;
501
- statusInfo?: {
502
- code: string;
503
- };
504
- }[];
497
+ refunds: RefundNonNullableFields[];
505
498
  }
506
499
  interface UpdateExtendedFieldsResponseNonNullableFields {
507
- refund?: {
508
- status: Status;
509
- statusInfo?: {
510
- code: string;
511
- };
512
- };
500
+ refund?: RefundNonNullableFields;
501
+ }
502
+ interface RejectionNonNullableFields {
503
+ reason: RejectionReason;
504
+ }
505
+ interface RefundabilityNonNullableFields {
506
+ rejection?: RejectionNonNullableFields;
507
+ refundable: boolean;
513
508
  }
514
509
  interface GetRefundabilityResponseNonNullableFields {
515
- refundability?: {
516
- rejection?: {
517
- reason: RejectionReason;
518
- };
519
- refundable: boolean;
520
- };
510
+ refundability?: RefundabilityNonNullableFields;
521
511
  }
522
512
  interface BaseEventMetadata {
523
513
  /** App instance ID. */
@@ -665,18 +655,8 @@ declare global {
665
655
  declare const __metadata: {
666
656
  PACKAGE_NAME: string;
667
657
  };
668
- declare function createRefund(httpClient: HttpClient): (refund: Refund, options?: CreateRefundOptions) => Promise<Refund & {
669
- status: Status;
670
- statusInfo?: {
671
- code: string;
672
- } | undefined;
673
- }>;
674
- declare function getRefund(httpClient: HttpClient): (refundId: string) => Promise<Refund & {
675
- status: Status;
676
- statusInfo?: {
677
- code: string;
678
- } | undefined;
679
- }>;
658
+ declare function createRefund(httpClient: HttpClient): (refund: Refund, options?: CreateRefundOptions) => Promise<Refund & RefundNonNullableFields>;
659
+ declare function getRefund(httpClient: HttpClient): (refundId: string) => Promise<Refund & RefundNonNullableFields>;
680
660
  declare function queryRefunds(httpClient: HttpClient): () => RefundsQueryBuilder;
681
661
  declare function updateExtendedFields(httpClient: HttpClient): (_id: string, namespace: string, options: UpdateExtendedFieldsOptions) => Promise<UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>;
682
662
  declare function getRefundability(httpClient: HttpClient): (chargeId: string) => Promise<GetRefundabilityResponse & GetRefundabilityResponseNonNullableFields>;
@@ -717,6 +697,7 @@ type index_d_QueryRefundsResponse = QueryRefundsResponse;
717
697
  type index_d_QueryRefundsResponseNonNullableFields = QueryRefundsResponseNonNullableFields;
718
698
  type index_d_Refund = Refund;
719
699
  type index_d_RefundCreatedEnvelope = RefundCreatedEnvelope;
700
+ type index_d_RefundNonNullableFields = RefundNonNullableFields;
720
701
  type index_d_RefundOptions = RefundOptions;
721
702
  type index_d_RefundUpdatedEnvelope = RefundUpdatedEnvelope;
722
703
  type index_d_Refundability = Refundability;
@@ -749,7 +730,7 @@ declare const index_d_onRefundUpdated: typeof onRefundUpdated;
749
730
  declare const index_d_queryRefunds: typeof queryRefunds;
750
731
  declare const index_d_updateExtendedFields: typeof updateExtendedFields;
751
732
  declare namespace index_d {
752
- export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateRefundOptions as CreateRefundOptions, type index_d_CreateRefundRequest as CreateRefundRequest, type index_d_CreateRefundResponse as CreateRefundResponse, type index_d_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_GetRefundRequest as GetRefundRequest, type index_d_GetRefundResponse as GetRefundResponse, type index_d_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type index_d_GetRefundabilityRequest as GetRefundabilityRequest, type index_d_GetRefundabilityResponse as GetRefundabilityResponse, type index_d_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_Initiator as Initiator, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryRefundsRequest as QueryRefundsRequest, type index_d_QueryRefundsResponse as QueryRefundsResponse, type index_d_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type index_d_Refund as Refund, type index_d_RefundCreatedEnvelope as RefundCreatedEnvelope, type index_d_RefundOptions as RefundOptions, type index_d_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type index_d_Refundability as Refundability, type index_d_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type index_d_RefundsQueryBuilder as RefundsQueryBuilder, type index_d_RefundsQueryResult as RefundsQueryResult, type index_d_Rejection as Rejection, index_d_RejectionReason as RejectionReason, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Status as Status, type index_d_StatusInfo as StatusInfo, type index_d_SyncRefundRequest as SyncRefundRequest, type index_d_SyncRefundResponse as SyncRefundResponse, type index_d_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createRefund as createRefund, index_d_getRefund as getRefund, index_d_getRefundability as getRefundability, index_d_onRefundCreated as onRefundCreated, index_d_onRefundUpdated as onRefundUpdated, index_d_queryRefunds as queryRefunds, index_d_updateExtendedFields as updateExtendedFields };
733
+ export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateRefundOptions as CreateRefundOptions, type index_d_CreateRefundRequest as CreateRefundRequest, type index_d_CreateRefundResponse as CreateRefundResponse, type index_d_CreateRefundResponseNonNullableFields as CreateRefundResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_CursorQuery as CursorQuery, type index_d_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_ExtendedFields as ExtendedFields, type index_d_GetRefundRequest as GetRefundRequest, type index_d_GetRefundResponse as GetRefundResponse, type index_d_GetRefundResponseNonNullableFields as GetRefundResponseNonNullableFields, type index_d_GetRefundabilityRequest as GetRefundabilityRequest, type index_d_GetRefundabilityResponse as GetRefundabilityResponse, type index_d_GetRefundabilityResponseNonNullableFields as GetRefundabilityResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_Initiator as Initiator, type index_d_MessageEnvelope as MessageEnvelope, type index_d_QueryRefundsRequest as QueryRefundsRequest, type index_d_QueryRefundsResponse as QueryRefundsResponse, type index_d_QueryRefundsResponseNonNullableFields as QueryRefundsResponseNonNullableFields, type index_d_Refund as Refund, type index_d_RefundCreatedEnvelope as RefundCreatedEnvelope, type index_d_RefundNonNullableFields as RefundNonNullableFields, type index_d_RefundOptions as RefundOptions, type index_d_RefundUpdatedEnvelope as RefundUpdatedEnvelope, type index_d_Refundability as Refundability, type index_d_RefundabilityDetailsOneOf as RefundabilityDetailsOneOf, type index_d_RefundsQueryBuilder as RefundsQueryBuilder, type index_d_RefundsQueryResult as RefundsQueryResult, type index_d_Rejection as Rejection, index_d_RejectionReason as RejectionReason, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_Status as Status, type index_d_StatusInfo as StatusInfo, type index_d_SyncRefundRequest as SyncRefundRequest, type index_d_SyncRefundResponse as SyncRefundResponse, type index_d_UpdateExtendedFieldsOptions as UpdateExtendedFieldsOptions, type index_d_UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest, type index_d_UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse, type index_d_UpdateExtendedFieldsResponseNonNullableFields as UpdateExtendedFieldsResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_createRefund as createRefund, index_d_getRefund as getRefund, index_d_getRefundability as getRefundability, index_d_onRefundCreated as onRefundCreated, index_d_onRefundUpdated as onRefundUpdated, index_d_queryRefunds as queryRefunds, index_d_updateExtendedFields as updateExtendedFields };
753
734
  }
754
735
 
755
736
  export { index_d as refunds };
@@ -117,7 +117,7 @@ declare enum Status$1 {
117
117
  */
118
118
  REVERSED = "REVERSED"
119
119
  }
120
- declare enum Initiator {
120
+ declare enum Initiator$1 {
121
121
  UNKNOWN_INITIATOR = "UNKNOWN_INITIATOR",
122
122
  WIX = "WIX",
123
123
  API = "API",
@@ -334,49 +334,35 @@ declare enum RejectionReason$1 {
334
334
  /** Logged in merchant has no permission to refund this charge. */
335
335
  NOT_AUTHORIZED = "NOT_AUTHORIZED"
336
336
  }
337
+ interface StatusInfoNonNullableFields$1 {
338
+ code: string;
339
+ }
340
+ interface RefundNonNullableFields$1 {
341
+ status: Status$1;
342
+ initiator: Initiator$1;
343
+ statusInfo?: StatusInfoNonNullableFields$1;
344
+ }
337
345
  interface CreateRefundResponseNonNullableFields$1 {
338
- refund?: {
339
- status: Status$1;
340
- initiator: Initiator;
341
- statusInfo?: {
342
- code: string;
343
- };
344
- };
346
+ refund?: RefundNonNullableFields$1;
345
347
  }
346
348
  interface GetRefundResponseNonNullableFields$1 {
347
- refund?: {
348
- status: Status$1;
349
- initiator: Initiator;
350
- statusInfo?: {
351
- code: string;
352
- };
353
- };
349
+ refund?: RefundNonNullableFields$1;
354
350
  }
355
351
  interface QueryRefundsResponseNonNullableFields$1 {
356
- refunds: {
357
- status: Status$1;
358
- initiator: Initiator;
359
- statusInfo?: {
360
- code: string;
361
- };
362
- }[];
352
+ refunds: RefundNonNullableFields$1[];
363
353
  }
364
354
  interface UpdateExtendedFieldsResponseNonNullableFields$1 {
365
- refund?: {
366
- status: Status$1;
367
- initiator: Initiator;
368
- statusInfo?: {
369
- code: string;
370
- };
371
- };
355
+ refund?: RefundNonNullableFields$1;
356
+ }
357
+ interface RejectionNonNullableFields$1 {
358
+ reason: RejectionReason$1;
359
+ }
360
+ interface RefundabilityNonNullableFields$1 {
361
+ rejection?: RejectionNonNullableFields$1;
362
+ refundable: boolean;
372
363
  }
373
364
  interface GetRefundabilityResponseNonNullableFields$1 {
374
- refundability?: {
375
- rejection?: {
376
- reason: RejectionReason$1;
377
- };
378
- refundable: boolean;
379
- };
365
+ refundability?: RefundabilityNonNullableFields$1;
380
366
  }
381
367
 
382
368
  /**
@@ -498,6 +484,12 @@ declare enum Status {
498
484
  */
499
485
  REVERSED = "REVERSED"
500
486
  }
487
+ declare enum Initiator {
488
+ UNKNOWN_INITIATOR = "UNKNOWN_INITIATOR",
489
+ WIX = "WIX",
490
+ API = "API",
491
+ PROVIDER = "PROVIDER"
492
+ }
501
493
  interface StatusInfo {
502
494
  /**
503
495
  * Reason code.
@@ -709,45 +701,35 @@ declare enum RejectionReason {
709
701
  /** Logged in merchant has no permission to refund this charge. */
710
702
  NOT_AUTHORIZED = "NOT_AUTHORIZED"
711
703
  }
704
+ interface StatusInfoNonNullableFields {
705
+ code: string;
706
+ }
707
+ interface RefundNonNullableFields {
708
+ status: Status;
709
+ initiator: Initiator;
710
+ statusInfo?: StatusInfoNonNullableFields;
711
+ }
712
712
  interface CreateRefundResponseNonNullableFields {
713
- refund?: {
714
- status: Status;
715
- statusInfo?: {
716
- code: string;
717
- };
718
- };
713
+ refund?: RefundNonNullableFields;
719
714
  }
720
715
  interface GetRefundResponseNonNullableFields {
721
- refund?: {
722
- status: Status;
723
- statusInfo?: {
724
- code: string;
725
- };
726
- };
716
+ refund?: RefundNonNullableFields;
727
717
  }
728
718
  interface QueryRefundsResponseNonNullableFields {
729
- refunds: {
730
- status: Status;
731
- statusInfo?: {
732
- code: string;
733
- };
734
- }[];
719
+ refunds: RefundNonNullableFields[];
735
720
  }
736
721
  interface UpdateExtendedFieldsResponseNonNullableFields {
737
- refund?: {
738
- status: Status;
739
- statusInfo?: {
740
- code: string;
741
- };
742
- };
722
+ refund?: RefundNonNullableFields;
723
+ }
724
+ interface RejectionNonNullableFields {
725
+ reason: RejectionReason;
726
+ }
727
+ interface RefundabilityNonNullableFields {
728
+ rejection?: RejectionNonNullableFields;
729
+ refundable: boolean;
743
730
  }
744
731
  interface GetRefundabilityResponseNonNullableFields {
745
- refundability?: {
746
- rejection?: {
747
- reason: RejectionReason;
748
- };
749
- refundable: boolean;
750
- };
732
+ refundability?: RefundabilityNonNullableFields;
751
733
  }
752
734
 
753
735
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {