@wix/payments 1.0.23 → 1.0.24

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.23",
3
+ "version": "1.0.24",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,10 +21,10 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/payments_onboarding-availability": "1.0.10",
24
+ "@wix/payments_onboarding-availability": "1.0.11",
25
25
  "@wix/payments_psp-callbacks": "1.0.6",
26
- "@wix/payments_refunds": "1.0.19",
27
- "@wix/payments_saved-payment-methods": "1.0.0"
26
+ "@wix/payments_refunds": "1.0.20",
27
+ "@wix/payments_saved-payment-methods": "1.0.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "glob": "^10.4.1",
@@ -49,5 +49,5 @@
49
49
  "fqdn": ""
50
50
  }
51
51
  },
52
- "falconPackageHash": "f269f7fabc90d101c0486a180004d68c7e3b376636ab122700cc1fe7"
52
+ "falconPackageHash": "2544b48e2bb07dbe4433247bc4fe266f898266d6dd50537704189be1"
53
53
  }
@@ -1145,6 +1145,44 @@ interface StatusInfo {
1145
1145
  /** Free-text description. */
1146
1146
  description?: string | null;
1147
1147
  }
1148
+ interface SyncRefundRequest {
1149
+ /** Refund ID. */
1150
+ refundId?: string | null;
1151
+ /** ID of the refund on the PSP side. */
1152
+ providerRefundId?: string | null;
1153
+ /** ID of charge for which the funds are returned by this refund. */
1154
+ chargeId?: string | null;
1155
+ /**
1156
+ * Status of the refund.
1157
+ * Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
1158
+ */
1159
+ status?: Status;
1160
+ /**
1161
+ * Status code.
1162
+ * [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
1163
+ */
1164
+ statusCode?: string | null;
1165
+ /** Currency of refund, should be the same as currency of charge. */
1166
+ currency?: string | null;
1167
+ /**
1168
+ * Amount of refund in base units, what's returned to the buyer.
1169
+ * E.g. "12.95".
1170
+ */
1171
+ amount?: string | null;
1172
+ /**
1173
+ * Application fee returned to merchant from Wix.
1174
+ * Having this as a separate field since Refund.returned_application_fee is readOnly.
1175
+ */
1176
+ returnedApplicationFee?: string | null;
1177
+ /** Reason why this refund was issued. */
1178
+ reason?: string | null;
1179
+ /** Optional free-text note about this refund. */
1180
+ note?: string | null;
1181
+ }
1182
+ interface SyncRefundResponse {
1183
+ /** Created/updated refund. */
1184
+ refund?: Refund;
1185
+ }
1148
1186
  interface CreateRefundRequest {
1149
1187
  /** Refund to be created. */
1150
1188
  refund: Refund;
@@ -1457,44 +1495,6 @@ declare enum WebhookIdentityType$1 {
1457
1495
  WIX_USER = "WIX_USER",
1458
1496
  APP = "APP"
1459
1497
  }
1460
- interface SyncRefundRequest {
1461
- /** Refund ID. */
1462
- refundId?: string | null;
1463
- /** ID of the refund on the PSP side. */
1464
- providerRefundId?: string | null;
1465
- /** ID of charge for which the funds are returned by this refund. */
1466
- chargeId?: string | null;
1467
- /**
1468
- * Status of the refund.
1469
- * Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
1470
- */
1471
- status?: Status;
1472
- /**
1473
- * Status code.
1474
- * [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
1475
- */
1476
- statusCode?: string | null;
1477
- /** Currency of refund, should be the same as currency of charge. */
1478
- currency?: string | null;
1479
- /**
1480
- * Amount of refund in base units, what's returned to the buyer.
1481
- * E.g. "12.95".
1482
- */
1483
- amount?: string | null;
1484
- /**
1485
- * Application fee returned to merchant from Wix.
1486
- * Having this as a separate field since Refund.returned_application_fee is readOnly.
1487
- */
1488
- returnedApplicationFee?: string | null;
1489
- /** Reason why this refund was issued. */
1490
- reason?: string | null;
1491
- /** Optional free-text note about this refund. */
1492
- note?: string | null;
1493
- }
1494
- interface SyncRefundResponse {
1495
- /** Created/updated refund. */
1496
- refund?: Refund;
1497
- }
1498
1498
  interface StatusInfoNonNullableFields {
1499
1499
  code: string;
1500
1500
  }
@@ -1881,6 +1881,20 @@ interface ExtendedFields {
1881
1881
  */
1882
1882
  namespaces?: Record<string, Record<string, any>>;
1883
1883
  }
1884
+ interface FindSavedCreditCardRequest {
1885
+ /** temporary card token */
1886
+ temporaryCardToken?: string;
1887
+ /** site member id */
1888
+ siteMemberId?: string;
1889
+ /** expiration month */
1890
+ expirationMonth?: number;
1891
+ /** expiration year */
1892
+ expirationYear?: number;
1893
+ }
1894
+ interface FindSavedCreditCardResponse {
1895
+ /** saved payment method id */
1896
+ savedPaymentMethodId?: string | null;
1897
+ }
1884
1898
  interface UpsertSavedPaymentMethodRequest {
1885
1899
  /** Saved payment method. */
1886
1900
  savedPaymentMethod: SavedPaymentMethod;
@@ -2101,20 +2115,6 @@ declare enum WebhookIdentityType {
2101
2115
  WIX_USER = "WIX_USER",
2102
2116
  APP = "APP"
2103
2117
  }
2104
- interface FindSavedCreditCardRequest {
2105
- /** temporary card token */
2106
- temporaryCardToken?: string;
2107
- /** site member id */
2108
- siteMemberId?: string;
2109
- /** expiration month */
2110
- expirationMonth?: number;
2111
- /** expiration year */
2112
- expirationYear?: number;
2113
- }
2114
- interface FindSavedCreditCardResponse {
2115
- /** saved payment method id */
2116
- savedPaymentMethodId?: string | null;
2117
- }
2118
2118
  interface CardInfoNonNullableFields {
2119
2119
  brand: CardBrand;
2120
2120
  }
@@ -2189,13 +2189,13 @@ interface SavedPaymentMethodCreatedEnvelope {
2189
2189
  entity: SavedPaymentMethod;
2190
2190
  metadata: EventMetadata;
2191
2191
  }
2192
- interface SavedPaymentMethodDeletedEnvelope {
2193
- metadata: EventMetadata;
2194
- }
2195
2192
  interface SavedPaymentMethodUpdatedEnvelope {
2196
2193
  entity: SavedPaymentMethod;
2197
2194
  metadata: EventMetadata;
2198
2195
  }
2196
+ interface SavedPaymentMethodDeletedEnvelope {
2197
+ metadata: EventMetadata;
2198
+ }
2199
2199
  interface UpsertSavedPaymentMethodOptions {
2200
2200
  /** Temporary token of credit card tokenized by Wix. This token is used to create a persistent token */
2201
2201
  temporaryCardToken: string | null;
@@ -2334,8 +2334,8 @@ interface MarkSavedPaymentMethodPrimarySignature {
2334
2334
  (savedPaymentMethodId: string): Promise<void>;
2335
2335
  }
2336
2336
  declare const onSavedPaymentMethodCreated$1: EventDefinition<SavedPaymentMethodCreatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_created">;
2337
- declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
2338
2337
  declare const onSavedPaymentMethodUpdated$1: EventDefinition<SavedPaymentMethodUpdatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_updated">;
2338
+ declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
2339
2339
 
2340
2340
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2341
2341
 
@@ -2350,14 +2350,14 @@ type _publicOnSavedPaymentMethodCreatedType = typeof onSavedPaymentMethodCreated
2350
2350
  /** */
2351
2351
  declare const onSavedPaymentMethodCreated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodCreatedType>>;
2352
2352
 
2353
- type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
2354
- /** */
2355
- declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
2356
-
2357
2353
  type _publicOnSavedPaymentMethodUpdatedType = typeof onSavedPaymentMethodUpdated$1;
2358
2354
  /** */
2359
2355
  declare const onSavedPaymentMethodUpdated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodUpdatedType>>;
2360
2356
 
2357
+ type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
2358
+ /** */
2359
+ declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
2360
+
2361
2361
  type context_ActionEvent = ActionEvent;
2362
2362
  type context_BaseEventMetadata = BaseEventMetadata;
2363
2363
  type context_CardBrand = CardBrand;
@@ -1145,6 +1145,44 @@ interface StatusInfo {
1145
1145
  /** Free-text description. */
1146
1146
  description?: string | null;
1147
1147
  }
1148
+ interface SyncRefundRequest {
1149
+ /** Refund ID. */
1150
+ refundId?: string | null;
1151
+ /** ID of the refund on the PSP side. */
1152
+ providerRefundId?: string | null;
1153
+ /** ID of charge for which the funds are returned by this refund. */
1154
+ chargeId?: string | null;
1155
+ /**
1156
+ * Status of the refund.
1157
+ * Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
1158
+ */
1159
+ status?: Status;
1160
+ /**
1161
+ * Status code.
1162
+ * [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
1163
+ */
1164
+ statusCode?: string | null;
1165
+ /** Currency of refund, should be the same as currency of charge. */
1166
+ currency?: string | null;
1167
+ /**
1168
+ * Amount of refund in base units, what's returned to the buyer.
1169
+ * E.g. "12.95".
1170
+ */
1171
+ amount?: string | null;
1172
+ /**
1173
+ * Application fee returned to merchant from Wix.
1174
+ * Having this as a separate field since Refund.returned_application_fee is readOnly.
1175
+ */
1176
+ returnedApplicationFee?: string | null;
1177
+ /** Reason why this refund was issued. */
1178
+ reason?: string | null;
1179
+ /** Optional free-text note about this refund. */
1180
+ note?: string | null;
1181
+ }
1182
+ interface SyncRefundResponse {
1183
+ /** Created/updated refund. */
1184
+ refund?: Refund;
1185
+ }
1148
1186
  interface CreateRefundRequest {
1149
1187
  /** Refund to be created. */
1150
1188
  refund: Refund;
@@ -1457,44 +1495,6 @@ declare enum WebhookIdentityType$1 {
1457
1495
  WIX_USER = "WIX_USER",
1458
1496
  APP = "APP"
1459
1497
  }
1460
- interface SyncRefundRequest {
1461
- /** Refund ID. */
1462
- refundId?: string | null;
1463
- /** ID of the refund on the PSP side. */
1464
- providerRefundId?: string | null;
1465
- /** ID of charge for which the funds are returned by this refund. */
1466
- chargeId?: string | null;
1467
- /**
1468
- * Status of the refund.
1469
- * Read more about statuses in this [article](<https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#lifecycle-of-a-refund>).
1470
- */
1471
- status?: Status;
1472
- /**
1473
- * Status code.
1474
- * [Read more about reason codes.](https://dev.wix.com/docs/rest/api-reference/payment-provider-spi/reason-codes)
1475
- */
1476
- statusCode?: string | null;
1477
- /** Currency of refund, should be the same as currency of charge. */
1478
- currency?: string | null;
1479
- /**
1480
- * Amount of refund in base units, what's returned to the buyer.
1481
- * E.g. "12.95".
1482
- */
1483
- amount?: string | null;
1484
- /**
1485
- * Application fee returned to merchant from Wix.
1486
- * Having this as a separate field since Refund.returned_application_fee is readOnly.
1487
- */
1488
- returnedApplicationFee?: string | null;
1489
- /** Reason why this refund was issued. */
1490
- reason?: string | null;
1491
- /** Optional free-text note about this refund. */
1492
- note?: string | null;
1493
- }
1494
- interface SyncRefundResponse {
1495
- /** Created/updated refund. */
1496
- refund?: Refund;
1497
- }
1498
1498
  interface StatusInfoNonNullableFields {
1499
1499
  code: string;
1500
1500
  }
@@ -1881,6 +1881,20 @@ interface ExtendedFields {
1881
1881
  */
1882
1882
  namespaces?: Record<string, Record<string, any>>;
1883
1883
  }
1884
+ interface FindSavedCreditCardRequest {
1885
+ /** temporary card token */
1886
+ temporaryCardToken?: string;
1887
+ /** site member id */
1888
+ siteMemberId?: string;
1889
+ /** expiration month */
1890
+ expirationMonth?: number;
1891
+ /** expiration year */
1892
+ expirationYear?: number;
1893
+ }
1894
+ interface FindSavedCreditCardResponse {
1895
+ /** saved payment method id */
1896
+ savedPaymentMethodId?: string | null;
1897
+ }
1884
1898
  interface UpsertSavedPaymentMethodRequest {
1885
1899
  /** Saved payment method. */
1886
1900
  savedPaymentMethod: SavedPaymentMethod;
@@ -2101,20 +2115,6 @@ declare enum WebhookIdentityType {
2101
2115
  WIX_USER = "WIX_USER",
2102
2116
  APP = "APP"
2103
2117
  }
2104
- interface FindSavedCreditCardRequest {
2105
- /** temporary card token */
2106
- temporaryCardToken?: string;
2107
- /** site member id */
2108
- siteMemberId?: string;
2109
- /** expiration month */
2110
- expirationMonth?: number;
2111
- /** expiration year */
2112
- expirationYear?: number;
2113
- }
2114
- interface FindSavedCreditCardResponse {
2115
- /** saved payment method id */
2116
- savedPaymentMethodId?: string | null;
2117
- }
2118
2118
  interface CardInfoNonNullableFields {
2119
2119
  brand: CardBrand;
2120
2120
  }
@@ -2189,13 +2189,13 @@ interface SavedPaymentMethodCreatedEnvelope {
2189
2189
  entity: SavedPaymentMethod;
2190
2190
  metadata: EventMetadata;
2191
2191
  }
2192
- interface SavedPaymentMethodDeletedEnvelope {
2193
- metadata: EventMetadata;
2194
- }
2195
2192
  interface SavedPaymentMethodUpdatedEnvelope {
2196
2193
  entity: SavedPaymentMethod;
2197
2194
  metadata: EventMetadata;
2198
2195
  }
2196
+ interface SavedPaymentMethodDeletedEnvelope {
2197
+ metadata: EventMetadata;
2198
+ }
2199
2199
  interface UpsertSavedPaymentMethodOptions {
2200
2200
  /** Temporary token of credit card tokenized by Wix. This token is used to create a persistent token */
2201
2201
  temporaryCardToken: string | null;
@@ -2334,8 +2334,8 @@ interface MarkSavedPaymentMethodPrimarySignature {
2334
2334
  (savedPaymentMethodId: string): Promise<void>;
2335
2335
  }
2336
2336
  declare const onSavedPaymentMethodCreated$1: EventDefinition<SavedPaymentMethodCreatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_created">;
2337
- declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
2338
2337
  declare const onSavedPaymentMethodUpdated$1: EventDefinition<SavedPaymentMethodUpdatedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_updated">;
2338
+ declare const onSavedPaymentMethodDeleted$1: EventDefinition<SavedPaymentMethodDeletedEnvelope, "wix.payments.saved_payment_methods.v1.saved_payment_method_deleted">;
2339
2339
 
2340
2340
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
2341
2341
 
@@ -2350,14 +2350,14 @@ type _publicOnSavedPaymentMethodCreatedType = typeof onSavedPaymentMethodCreated
2350
2350
  /** */
2351
2351
  declare const onSavedPaymentMethodCreated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodCreatedType>>;
2352
2352
 
2353
- type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
2354
- /** */
2355
- declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
2356
-
2357
2353
  type _publicOnSavedPaymentMethodUpdatedType = typeof onSavedPaymentMethodUpdated$1;
2358
2354
  /** */
2359
2355
  declare const onSavedPaymentMethodUpdated: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodUpdatedType>>;
2360
2356
 
2357
+ type _publicOnSavedPaymentMethodDeletedType = typeof onSavedPaymentMethodDeleted$1;
2358
+ /** */
2359
+ declare const onSavedPaymentMethodDeleted: ReturnType<typeof createEventModule<_publicOnSavedPaymentMethodDeletedType>>;
2360
+
2361
2361
  type index_d_ActionEvent = ActionEvent;
2362
2362
  type index_d_BaseEventMetadata = BaseEventMetadata;
2363
2363
  type index_d_CardBrand = CardBrand;