@wix/bex-utils 1.37.0 → 1.38.0

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.
Files changed (70) hide show
  1. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.d.ts +4 -1
  2. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js +64 -6
  3. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/builders.impl.js.map +1 -1
  4. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js +12 -0
  5. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/http.impl.js.map +1 -1
  6. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/client/proto-generated.d.ts +713 -74
  7. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.d.ts +359 -38
  8. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/proto-generated.js +12499 -2105
  9. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/proto/server/proto-generated.d.ts +711 -73
  10. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.d.ts +56 -2
  11. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js +10 -1
  12. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/cjs/types.impl.js.map +1 -1
  13. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.d.ts +4 -1
  14. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js +60 -5
  15. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/builders.impl.js.map +1 -1
  16. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js +12 -0
  17. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/http.impl.js.map +1 -1
  18. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.d.ts +56 -2
  19. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js +9 -0
  20. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/build/es/types.impl.js.map +1 -1
  21. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/package.json +3 -3
  22. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/catalog_reference.proto +16 -10
  23. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/description_line.proto +23 -6
  24. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_data.proto +70 -44
  25. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_media.proto +14 -5
  26. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/item_type.proto +3 -1
  27. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/payment_option.proto +10 -7
  28. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/physical_properties.proto +4 -1
  29. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/platform_catalog_spi.proto +109 -33
  30. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/price_description.proto +6 -2
  31. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/product_name.proto +11 -6
  32. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/secured_media.proto +5 -2
  33. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/service_properties.proto +5 -2
  34. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/catalog_spi/api/v1/subscription_option_info.proto +14 -4
  35. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/inventory/api/v1/inventoryEvents.proto +5 -0
  36. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/address_with_contact.proto +0 -1
  37. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/com/wix/ecommerce/platform_common/api/locations.proto +16 -0
  38. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/annotations.proto +4 -1
  39. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/entity.proto +6 -0
  40. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/api/errors.proto +6 -0
  41. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/catalog.proto +49 -13
  42. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/media.proto +2 -2
  43. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v1/product.proto +5 -0
  44. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/catalog/api/v2/collectionRead.proto +1 -2
  45. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/media.proto +9 -2
  46. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/pageurl.proto +4 -4
  47. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/paging.proto +21 -12
  48. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/query.proto +323 -88
  49. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/sorting.proto +13 -2
  50. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/tags.proto +2 -2
  51. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/common/wixlink.proto +50 -1
  52. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v1/coupons-adapter.proto +50 -50
  53. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/coupons/api/v2/mediaitem.proto +3 -3
  54. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/fedinfra/exportservice/v1/export.proto +1 -0
  55. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJob.proto +2 -0
  56. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/infra/asyncjobs/v1/AsyncJobService.proto +36 -2
  57. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/inventoryItem.proto +1 -0
  58. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventory.proto +27 -0
  59. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryItem.proto +75 -0
  60. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/inventory/api/v1/locationInventoryMessages.proto +33 -0
  61. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/accounts.proto +8 -0
  62. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/orders.proto +10 -0
  63. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payment-methods.proto +7 -0
  64. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/payments.proto +7 -0
  65. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/charge.proto +3 -3
  66. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/order-description.proto +6 -0
  67. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/resources/payment-method.proto +3 -1
  68. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v3/resources/payment-event.proto +2 -1
  69. package/package.json +3 -3
  70. package/@wix/ambassador-fedinfra-exportservice-v1-export-async-job/src/main/proto/wix/payment/api/pay/v2/paypal-recurring-orders.proto +0 -38
@@ -39,6 +39,9 @@ message WixLink {
39
39
  option (.wix.api.decomposition_minimum_fields) = {
40
40
  field: "whats_app"
41
41
  };
42
+ option (.wix.api.decomposition_minimum_fields) = {
43
+ field: "tpa_page_link"
44
+ };
42
45
  oneof Link {
43
46
  ExternalLink external = 1; // External link type
44
47
  PageLink page = 2; // Page link type
@@ -49,6 +52,7 @@ message WixLink {
49
52
  PhoneLink phone = 7; // Phone link type
50
53
  AddressLink address = 8; // Address link type
51
54
  WhatsAppLink whats_app = 9; // WhatsApp link type
55
+ TpaPageLink tpa_page = 10; // TPA link type
52
56
  }
53
57
  }
54
58
 
@@ -70,6 +74,8 @@ message PageLink {
70
74
  string page_id = 1;
71
75
  //Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page.
72
76
  google.protobuf.StringValue target = 2;
77
+ //rel of link
78
+ repeated LinkRel rel = 3 [(wix.api.maxSize) = 20];
73
79
  }
74
80
 
75
81
  message AnchorLink {
@@ -84,6 +90,8 @@ message AnchorLink {
84
90
  string anchor_data_id = 2;
85
91
  //The page id we want from the site
86
92
  string page_id = 3;
93
+ //rel of link
94
+ repeated LinkRel rel = 4 [(wix.api.maxSize) = 20];
87
95
  }
88
96
 
89
97
  message DynamicPageLink {
@@ -98,6 +106,8 @@ message DynamicPageLink {
98
106
  string inner_route = 2;
99
107
  //The data id (from the JSON page) of the anchor that should be used
100
108
  google.protobuf.StringValue anchor_data_id = 3;
109
+ //rel of link
110
+ repeated LinkRel rel = 4 [(wix.api.maxSize) = 20];
101
111
  }
102
112
 
103
113
  message DocumentLink {
@@ -149,4 +159,43 @@ message WhatsAppLink {
149
159
  };
150
160
  //The whatsApp phone number we want to connect with
151
161
  string phone_number = 1 [(.wix.api.pii) = true, (.wix.api.format) = PHONE];
152
- }
162
+ }
163
+
164
+ //Link to a TPA page
165
+ message TpaPageLink {
166
+ option (.wix.api.decomposition_minimum_fields) = {
167
+ field: "item_type_identifier"
168
+ field: "item_id"
169
+ field: "page_id"
170
+ field: "app_definition_id"
171
+ field: "path"
172
+ };
173
+ //Type of item (e.g. 'wix.stores.sub_pages.product')
174
+ string item_type_identifier = 1;
175
+ //Id of linked item
176
+ string item_id = 2;
177
+ //Id of linked page
178
+ string page_id = 3;
179
+ //Id of app being linked to (AppDefId)
180
+ string app_definition_id = 4;
181
+ //The relativepath of linked page
182
+ string path = 5;
183
+ //rel of link
184
+ repeated LinkRel rel = 6 [(wix.api.maxSize) = 20];
185
+ }
186
+
187
+ //The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
188
+ //Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
189
+ //Following are the accepted 'rel' types by Wix applications.
190
+ enum LinkRel {
191
+ // default (not implemented)
192
+ unknown_link_rel = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
193
+ //Indicates that the current document's original author or publisher does not endorse the referenced document.
194
+ nofollow = 1;
195
+ //Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it.
196
+ noopener = 2;
197
+ //No Referer header will be included. Additionally, has the same effect as noopener.
198
+ noreferrer = 3;
199
+ //Indicates a link that resulted from advertisements or paid placements.
200
+ sponsored = 4;
201
+ }
@@ -10,92 +10,92 @@ import "google/protobuf/wrappers.proto";
10
10
  option java_package = "com.wix.coupons.api.v1";
11
11
 
12
12
  service CouponsAdapter {
13
- option (wix.api.service_exposure) = PRIVATE;
14
-
15
- rpc GetItemsForCoupons (GetItemsForCouponsRequest) returns (GetItemsForCouponsResponse) {
16
- option (google.api.http) = {
17
- get: "/api/v1/items-for-coupons/group/{group}/ids/{ids}"
18
- additional_bindings {
19
- get: "/api/v1/items-for-coupons/group/{group}/limit/{limit}/offset/{offset}"
20
- }
21
- };
22
- option (wix.api.maturity) = ALPHA;
23
- option (wix.api.exposure) = INTERNAL;
24
- }
13
+ option (wix.api.service_exposure) = PRIVATE;
14
+
15
+ rpc GetItemsForCoupons (GetItemsForCouponsRequest) returns (GetItemsForCouponsResponse) {
16
+ option (google.api.http) = {
17
+ get: "/api/v1/items-for-coupons/group/{group}/ids/{ids}"
18
+ additional_bindings {
19
+ get: "/api/v1/items-for-coupons/group/{group}/limit/{limit}/offset/{offset}"
20
+ }
21
+ };
22
+ option (wix.api.maturity) = ALPHA;
23
+ option (wix.api.exposure) = INTERNAL;
24
+ }
25
25
  }
26
26
 
27
27
  message GetItemsForCouponsRequest {
28
- string group = 1;
29
- string ids = 2;
30
- int32 limit = 3;
31
- int32 offset = 4;
28
+ string group = 1;
29
+ string ids = 2;
30
+ int32 limit = 3;
31
+ int32 offset = 4;
32
32
  }
33
33
 
34
34
  message ItemForCoupon {
35
- string id = 1;
36
- string name = 2;
37
- MediaItem mediaItem = 3;
38
- google.protobuf.StringValue formattedPrice = 4;
35
+ string id = 1;
36
+ string name = 2;
37
+ MediaItem mediaItem = 3;
38
+ google.protobuf.StringValue formattedPrice = 4;
39
39
  }
40
40
 
41
41
  message GetItemsForCouponsResponse {
42
- repeated ItemForCoupon items = 1;
42
+ repeated ItemForCoupon items = 1;
43
43
  }
44
44
 
45
45
 
46
46
  service CouponsManagerUI {
47
- option (wix.api.service_exposure) = PRIVATE;
47
+ option (wix.api.service_exposure) = PRIVATE;
48
48
 
49
- rpc GetAllScopeConfigs (AllScopeConfigsRequest) returns (AllScopeConfigsResponse) {
50
- option (google.api.http) = {
51
- get: "/api/v1/coupons-scope-configs"
52
- };
53
- }
49
+ rpc GetAllScopeConfigs (AllScopeConfigsRequest) returns (AllScopeConfigsResponse) {
50
+ option (google.api.http) = {
51
+ get: "/api/v1/coupons-scope-configs"
52
+ };
53
+ }
54
54
  }
55
55
 
56
56
  message AllScopeConfigsRequest {
57
57
  }
58
58
 
59
59
  message AllScopeConfigsResponse {
60
- repeated string supportedCouponTypes = 1; // coupon types from all scopes
61
- repeated ScopeConfig scopeConfigs = 2; // scopeConfigs from all verticals
60
+ repeated string supportedCouponTypes = 1; // coupon types from all scopes
61
+ repeated ScopeConfig scopeConfigs = 2; // scopeConfigs from all verticals
62
62
  }
63
63
 
64
64
  message ScopeConfig {
65
- string namespace = 1; // stores / bookings / events
66
- google.protobuf.StringValue group = 2; // group - optional
67
- string displayName = 3; // name in drop down
68
- string type = 4; // "SCOPE"/"MINSUBTOTAL"/"DEFAULT"
69
- InputDataConfig inputDataConfig = 5; // right drop down data - optional
70
- LimitedToOneItemConfig limitedToOneItem = 6;
71
- LimitPerCustomerConfig limitPerCustomer = 8;
72
- SubscriptionConfig subscriptionConfig = 9;
73
- repeated string supportedCouponTypes = 7;
65
+ string namespace = 1; // stores / bookings / events
66
+ google.protobuf.StringValue group = 2; // group - optional
67
+ string displayName = 3; // name in drop down
68
+ string type = 4; // "SCOPE"/"MINSUBTOTAL"/"DEFAULT"
69
+ InputDataConfig inputDataConfig = 5; // right drop down data - optional
70
+ LimitedToOneItemConfig limitedToOneItem = 6;
71
+ LimitPerCustomerConfig limitPerCustomer = 8;
72
+ SubscriptionConfig subscriptionConfig = 9;
73
+ repeated string supportedCouponTypes = 7;
74
74
  }
75
75
 
76
76
  message InputDataConfig {
77
- string label = 1;
78
- string placeholder = 2;
79
- bool shouldShowMedia = 3;
77
+ string label = 1;
78
+ string placeholder = 2;
79
+ bool shouldShowMedia = 3;
80
80
  }
81
81
 
82
82
  message LimitedToOneItemConfig {
83
- bool visible = 1;
84
- bool default = 2;
83
+ bool visible = 1;
84
+ bool default = 2;
85
85
  }
86
86
 
87
87
  message SubscriptionConfig {
88
- bool visible = 1;
89
- bool default = 2;
88
+ bool visible = 1;
89
+ bool default = 2;
90
90
  }
91
91
 
92
92
  message LimitPerCustomerConfig {
93
- bool visible = 1;
94
- bool default = 2;
93
+ bool visible = 1;
94
+ bool default = 2;
95
95
  }
96
96
 
97
97
  message MediaItem {
98
- string url = 1 [(wix.api.format)=URI]; // Media item URL
99
- int32 width = 2 [(wix.api.min)=0,(wix.api.max)=5000]; // Media item width
100
- int32 height = 3 [(wix.api.min)=0,(wix.api.max)=5000]; // Media item height
98
+ string url = 1 [(wix.api.format) = WEB_URL]; // Media item URL
99
+ int32 width = 2 [(wix.api.min) = 0, (wix.api.max) = 5000]; // Media item width
100
+ int32 height = 3 [(wix.api.min) = 0, (wix.api.max) = 5000]; // Media item height
101
101
  }
@@ -7,7 +7,7 @@ import "wix/api/validations.proto";
7
7
  option java_package = "com.wix.coupons.api.v2";
8
8
 
9
9
  message MediaItem {
10
- string url = 1 [(wix.api.format)=URI]; // Media item URL.
11
- int32 width = 2 [(wix.api.min)=0,(wix.api.max)=5000]; // Media item width.
12
- int32 height = 3 [(wix.api.min)=0,(wix.api.max)=5000]; // Media item height.
10
+ string url = 1 [(wix.api.format) = WEB_URL]; // Media item URL.
11
+ int32 width = 2 [(wix.api.min) = 0, (wix.api.max) = 5000]; // Media item width.
12
+ int32 height = 3 [(wix.api.min) = 0, (wix.api.max) = 5000]; // Media item height.
13
13
  }
@@ -60,6 +60,7 @@ message ExportAsyncJobData {
60
60
  int32 iterations_count = 9;
61
61
  int32 processed_items_count = 16;
62
62
  .google.protobuf.StringValue completion_step = 17;
63
+ // how many times the export was reset
63
64
  int32 reset_count = 10;
64
65
 
65
66
  // at final step update the signed_url to download the result from
@@ -73,6 +73,8 @@ message AsyncJob {
73
73
  string wix_user_id = 4 [(.wix.api.format) = GUID];
74
74
  // ID of an app.
75
75
  string app_id = 5 [(.wix.api.format) = GUID];
76
+ // ID of service.
77
+ string service_id = 6 [(.wix.api.format) = GUID];
76
78
  }
77
79
  }
78
80
 
@@ -1,4 +1,4 @@
1
- //flynt-disable missing-permission, missing-service-entity, missing-field-comments, missing-method-comments, request-response, missing-rest-mapping, missing-main-entity-fqdn
1
+ //flynt-disable missing-permission, missing-field-comments, missing-method-comments, request-response, missing-rest-mapping, missing-main-entity-fqdn
2
2
  syntax = "proto3";
3
3
 
4
4
  import "google/protobuf/wrappers.proto";
@@ -42,6 +42,14 @@ service AsyncJobService {
42
42
  };
43
43
 
44
44
  rpc CreateAsyncJob (CreateAsyncJobRequest) returns (CreateAsyncJobResponse) {
45
+
46
+ option (.wix.api.crud) = {
47
+ method: CREATE
48
+ create_options: {
49
+ item_field: "job"
50
+ }
51
+ };
52
+
45
53
  option (google.api.http) = {
46
54
  post: "/v1/async-jobs"
47
55
  };
@@ -60,6 +68,15 @@ service AsyncJobService {
60
68
  }
61
69
 
62
70
  rpc GetAsyncJob (GetAsyncJobRequest) returns (GetAsyncJobResponse) {
71
+
72
+ option (.wix.api.crud) = {
73
+ method: GET_ITEM
74
+ get_options: {
75
+ id_field: "job_id"
76
+ item_field: "job"
77
+ }
78
+ };
79
+
63
80
  option (google.api.http) = {
64
81
  get: "/v1/async-jobs/{job_id}"
65
82
  };
@@ -75,6 +92,15 @@ service AsyncJobService {
75
92
  }
76
93
 
77
94
  rpc UpdateAsyncJob (UpdateAsyncJobRequest) returns (UpdateAsyncJobResponse) {
95
+
96
+ option (.wix.api.crud) = {
97
+ method: UPDATE
98
+ update_options: {
99
+ item_field: "job"
100
+ fieldmask_field: "mask"
101
+ }
102
+ };
103
+
78
104
  option (google.api.http) = {
79
105
  put: "/v1/async-jobs/{job.id}"
80
106
  };
@@ -98,6 +124,14 @@ service AsyncJobService {
98
124
  }
99
125
 
100
126
  rpc DeleteAsyncJob (DeleteAsyncJobRequest) returns (DeleteAsyncJobResponse) {
127
+
128
+ option (.wix.api.crud) = {
129
+ method: DELETE
130
+ delete_options: {
131
+ id_field: "job_id"
132
+ }
133
+ };
134
+
101
135
  option (google.api.http) = {
102
136
  delete: "/v1/async-jobs/{job_id}"
103
137
  };
@@ -194,7 +228,7 @@ message ReportAsyncJobProgressRequest {
194
228
  // id of the job to report progress on
195
229
  string job_id = 1;
196
230
 
197
- repeated AsyncJobItem items = 2 [(wix.api.maxSize) = 100];
231
+ repeated AsyncJobItem items = 2 [(wix.api.maxSize) = 1000];
198
232
  }
199
233
 
200
234
  message ReportAsyncJobProgressResponse {}
@@ -15,6 +15,7 @@ option java_package = "com.wix.ecommerce.inventory.api.v1";
15
15
  message InventoryItemV2 {
16
16
  option (wix.api.entity) = {
17
17
  fqdn: "wix.stores.v2.inventory"
18
+ app_def_id: "215238eb-22a5-4c36-9e7b-e7c08025e04e"
18
19
  segment: USERS
19
20
  appendix_files: {
20
21
  type: AUTO_VELO
@@ -0,0 +1,27 @@
1
+ syntax = "proto3";
2
+
3
+ package wix.inventory.api.v1;
4
+
5
+ import "google/api/annotations.proto";
6
+ import "wix/api/annotations.proto";
7
+ import "wix/api/entity.proto";
8
+ import "wix/api/permissions.proto";
9
+ import "wix/inventory/api/v1/locationInventoryMessages.proto";
10
+
11
+ option java_package = "com.wix.ecommerce.inventory.api.v1";
12
+
13
+ service LocationInventoryReadApi {
14
+ option (.wix.api.service_exposure) = PRIVATE;
15
+ option (.wix.api.service_maturity) = ALPHA;
16
+ option (.wix.api.service_entity).message = "wix.inventory.api.v1.LocationInventoryItem";
17
+
18
+ /**
19
+ * Returns a specific inventory for an item at a given location
20
+ */
21
+ rpc FetchLocationInventoryItem (FetchLocationInventoryItemRequest) returns (FetchLocationInventoryItemResponse) {
22
+ option (.google.api.http).get = "/v2/location-inventory-items/location/{location_id}/product/{product_id}";
23
+ option (.wix.api.maturity) = ALPHA;
24
+ option (.wix.api.exposure) = INTERNAL;
25
+ option (.wix.api.permission).name = "WIX_STORES.READ_LOCATION_INVENTORY";
26
+ }
27
+ }
@@ -0,0 +1,75 @@
1
+ syntax = "proto3";
2
+
3
+ package wix.inventory.api.v1;
4
+
5
+ import "google/protobuf/timestamp.proto";
6
+ import "google/protobuf/wrappers.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "wix/api/entity.proto";
9
+ import "wix/api/validations.proto";
10
+ import "wix/inventory/api/v1/preOrderInfo.proto";
11
+
12
+ option java_package = "com.wix.ecommerce.inventory.api.v1";
13
+
14
+ /**
15
+ * An inventory item is the record of inventory for a product and its variants at a given location
16
+ */
17
+ message LocationInventoryItem {
18
+ option (.wix.api.entity) = {
19
+ fqdn: "wix.stores.v1.location_inventory"
20
+ segment: USERS
21
+ };
22
+
23
+ /**
24
+ * The ID of the inventory record for a given product.
25
+ * The value matches the ID of the product itself.
26
+ */
27
+ .google.protobuf.StringValue id = 1 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 36];
28
+
29
+ // The ID of the product that this inventory item is against
30
+ string product_id = 2 [
31
+ (.wix.api.immutable) = true,
32
+ (.wix.api.minLength) = 1,
33
+ (.wix.api.maxLength) = 36,
34
+ (.wix.api.referenced_entity) = "wix.stores.catalog.v1.product"
35
+ ];
36
+
37
+ // Variants associated with this inventory item.
38
+ repeated LocationInventoryVariant variants = 3 [(.wix.api.maxSize) = 1000000];
39
+
40
+ // The timestamp of when this record was last updated
41
+ .google.protobuf.Timestamp updated_date = 4 [(.wix.api.readOnly) = true];
42
+
43
+ // Inventory’s unique numeric ID (assigned in ascending order).
44
+ // Primarily for sorting and filtering when crawling all inventories.
45
+ //flynt-disable unsigned-integers-not-allowed
46
+ uint64 numeric_id = 5 [(.wix.api.readOnly) = true];
47
+
48
+ // Preorder information.
49
+ PreorderInfo preorder_info = 6;
50
+ }
51
+
52
+ message LocationInventoryVariant {
53
+ // The ID of the related product-variant.
54
+ string variant_id = 1 [(.wix.api.format) = GUID, (.wix.api.immutable) = true];
55
+
56
+ // The location that this variant-inventory is for.
57
+ string location_id = 2 [
58
+ (.wix.api.format) = GUID,
59
+ (.wix.api.immutable) = true,
60
+ (.wix.api.referenced_entity) = "wix.stores.catalog.v3.stores_location"
61
+ ];
62
+
63
+ // Whether the product is listed as in stock.
64
+ bool in_stock = 3;
65
+
66
+ // Quantity currently left in inventory.
67
+ .google.protobuf.Int32Value quantity = 4 [(.wix.api.min) = 0];
68
+
69
+ // Whether quantity is being tracked.
70
+ bool track_quantity = 5;
71
+
72
+ // Whether the variant is available for preorder.
73
+ // When `true`, the variant is out of stock and preorder is enabled on inventory item level.
74
+ bool available_for_preorder = 6 [(.wix.api.readOnly) = true];
75
+ }
@@ -0,0 +1,33 @@
1
+ syntax = "proto3";
2
+
3
+ package wix.inventory.api.v1;
4
+
5
+ import "wix/api/annotations.proto";
6
+ import "wix/api/validations.proto";
7
+ import "wix/inventory/api/v1/locationInventoryItem.proto";
8
+
9
+ option java_package = "com.wix.ecommerce.inventory.api.v1";
10
+
11
+ message FetchLocationInventoryItemRequest {
12
+ // The ID of the product which we're retrieving inventory item for
13
+ string product_id = 1 [
14
+ (.wix.api.immutable) = true,
15
+ (.wix.api.minLength) = 1,
16
+ (.wix.api.maxLength) = 36,
17
+ (.wix.api.referenced_entity) = "wix.stores.catalog.v1.product"
18
+ ];
19
+
20
+ // The ID of the location that the inventory is specific to
21
+ string location_id = 2 [
22
+ (.wix.api.format) = GUID,
23
+ (.wix.api.immutable) = true,
24
+ (.wix.api.referenced_entity) = "wix.stores.catalog.v3.stores_location"
25
+ ];
26
+ }
27
+
28
+ message FetchLocationInventoryItemResponse {
29
+
30
+ // The inventory item at the location
31
+ LocationInventoryItem location_inventory_item = 1;
32
+
33
+ }
@@ -4,6 +4,7 @@ package wix.payment.api.pay.v2;
4
4
 
5
5
  import "google/api/annotations.proto";
6
6
  import "wix/payment/api/pay/v2/resources/account.proto";
7
+ import "wix/api/annotations.proto";
7
8
  import "wix/api/entity.proto";
8
9
 
9
10
  option java_package = "com.wix.payment.api.pay.v2";
@@ -16,6 +17,13 @@ service AccountService {
16
17
  // Returns information about cashier account by its accountId (`appDefId:appInstanceId`)
17
18
  rpc Get(GetAccountRequest) returns (GetAccountResponse) {
18
19
  option (google.api.http) = { get: "/api/payments/v2/accounts/{accountId}" };
20
+ option (.wix.api.crud) = {
21
+ method: GET_ITEM
22
+ get_options: {
23
+ id_field: "accountId"
24
+ item_field: "account"
25
+ }
26
+ };
19
27
  }
20
28
  }
21
29
 
@@ -148,6 +148,9 @@ service OrderService {
148
148
  // [1]: ../../guides/Authentication%20and%20authorization
149
149
  rpc Get(GetOrderRequest) returns (GetOrderResponse) {
150
150
  option (google.api.http) = { get: "/api/payments/v2/orders/{order_id}" };
151
+ option (.wix.api.crud) = {
152
+ method: GET_ITEM
153
+ };
151
154
  };
152
155
 
153
156
  // If order is a subscription - cancels it. Otherwise, `CancelSubscriptionException` is thrown.
@@ -359,6 +362,8 @@ message CreateOrderRequest {
359
362
  // Idempotency key
360
363
  google.protobuf.StringValue idempotency_key = 5;
361
364
 
365
+ // Updated order expiration date
366
+ google.protobuf.Timestamp expiration_date = 6;
362
367
  }
363
368
 
364
369
  // Describing `Create` order response.
@@ -381,6 +386,9 @@ message UpdateOrderRequest {
381
386
 
382
387
  // Third party system urls which should be used when as callback/event_hook (required).
383
388
  OrderUrls urls = 4;
389
+
390
+ // Updated order expiration date
391
+ google.protobuf.Timestamp expiration_date = 5;
384
392
  }
385
393
 
386
394
  message UpdateOrderResponse {
@@ -395,6 +403,8 @@ message SetupRequest {
395
403
  OrderBuyerInfo buyer_info = 2;
396
404
  // Is this order creation initiated by merchant
397
405
  bool merchant_initiated = 3;
406
+ // Order expiration date
407
+ google.protobuf.Timestamp expiration_date = 4;
398
408
  }
399
409
 
400
410
  message SetupResponse {
@@ -73,6 +73,7 @@ service PaymentMethodService {
73
73
  // - 403 - passed identity does not have permission to perform this action.
74
74
  //
75
75
  // [1]: ../../guides/Authentication%20and%20authorization
76
+ //flynt-disable crud-add-get-annotation
76
77
  rpc Get(GetPaymentMethodRequest) returns (GetPaymentMethodResponse) {
77
78
  option (google.api.http) = {
78
79
  get: "/api/payments/v2/accounts/{account_id}/payment-methods/{payment_method}"
@@ -151,6 +152,9 @@ message ListPaymentMethodsRequest {
151
152
  // buyer's contactId
152
153
  // it's required to display saved payment methods that are allowed for MIT in case contact is a site member
153
154
  google.protobuf.StringValue buyer_contact_id = 13;
155
+
156
+ // return only payment methods which support Setup Future Usages option
157
+ bool support_setup_future_usages = 14;
154
158
  }
155
159
 
156
160
  message ListPaymentMethodsResponse {
@@ -183,6 +187,9 @@ message GetPaymentMethodRequest {
183
187
 
184
188
  // indicate that saving payment method for merchant use is enabled
185
189
  bool merchant_use_save_enabled = 8;
190
+
191
+ // return payment method only if it supports Setup Future Usages option
192
+ bool support_setup_future_usages = 9;
186
193
  }
187
194
 
188
195
  message GetPaymentMethodResponse {
@@ -11,6 +11,7 @@ import "wix/payment/api/pay/v2/resources/payment.proto";
11
11
  import "google/api/annotations.proto";
12
12
  import "google/protobuf/timestamp.proto";
13
13
  import "google/protobuf/wrappers.proto";
14
+ import "wix/api/annotations.proto";
14
15
  import "wix/api/validations.proto";
15
16
  import "wix/api/permissions.proto";
16
17
 
@@ -233,6 +234,9 @@ service PaymentService {
233
234
  option (google.api.http) = {
234
235
  get: "/api/payments/v2/charges/{charge_id}"
235
236
  };
237
+ option (.wix.api.crud) = {
238
+ method: GET_ITEM
239
+ };
236
240
  };
237
241
 
238
242
  // Updates info about given charge
@@ -281,6 +285,9 @@ message ChargeRequest {
281
285
 
282
286
  // for an idempotency key only one charge will be performed or error returned if approved/pending transactions already exist
283
287
  string idempotency_key = 7;
288
+
289
+ // Order expiration date
290
+ google.protobuf.Timestamp expiration_date = 8;
284
291
  }
285
292
 
286
293
  message ChargeForOrderRequest {
@@ -156,7 +156,7 @@ message ChargeResponseToken {
156
156
  message GetMethodRedirect {
157
157
 
158
158
  // a properly encoded URL to perform an HTTP GET request
159
- string url = 1 [(wix.api.format) = URI];
159
+ string url = 1 [(wix.api.format) = WEB_URL];
160
160
  }
161
161
 
162
162
  message PostMethodRedirect {
@@ -171,7 +171,7 @@ message PostMethodRedirect {
171
171
  }
172
172
 
173
173
  // a properly encoded URL to perform an HTTP POST request
174
- string url = 1 [(wix.api.format) = URI];
174
+ string url = 1 [(wix.api.format) = WEB_URL];
175
175
 
176
176
  // not yet encoded form fields to send with the POST request using the application/x-www-form-urlencoded content type
177
177
  repeated FormField fields = 2;
@@ -208,7 +208,7 @@ message QrCodeDisplay {
208
208
  message WebPageDisplay {
209
209
 
210
210
  // a properly encoded URL to perform an HTTP GET request
211
- string url = 1 [(wix.api.format) = URI];
211
+ string url = 1 [(wix.api.format) = WEB_URL];
212
212
 
213
213
  // date until charge should be completed
214
214
  google.protobuf.Timestamp expiration_date = 2;
@@ -58,6 +58,12 @@ message OrderDescription {
58
58
  // information about subscription (required for `SUBSCRIPTION` order, not allowed for `ONE_TIME` order)
59
59
  Subscription subscription = 20;
60
60
 
61
+ // should this order during its payment setup the Payment Agreement entity to allow other payments in future using this Payment Agreement
62
+ google.protobuf.BoolValue setup_future_usages = 21;
63
+
64
+ // the id of Payment Agreement which is suggested for payment for this order
65
+ google.protobuf.StringValue suggested_payment_agreement_id = 25;
66
+
61
67
  // order reference in third party system (required)
62
68
  string vertical_order_id = 40;
63
69
  // buyer information which can use to provide better service (optional)
@@ -97,6 +97,7 @@ message PaymentMethod {
97
97
  google.protobuf.BoolValue primary = 22;
98
98
 
99
99
  oneof saved_payment_method_details {
100
+ PayPalDetails pay_pal_details = 24;
100
101
  SavedCreditCardDetails saved_credit_card_details = 25;
101
102
  }
102
103
 
@@ -147,7 +148,8 @@ message SavedCreditCardDetails {
147
148
  }
148
149
 
149
150
  message PayPalDetails {
150
-
151
+ // Can be an email (obfuscated) of PayPal account
152
+ google.protobuf.StringValue account_name = 1 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 1000];
151
153
  }
152
154
 
153
155
  message SavedPaymentMethodDetails {