@redotech/redo-api-schema 2.2.90 → 2.2.101

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/lib/openapi.d.ts CHANGED
@@ -77,6 +77,13 @@ export interface paths {
77
77
  */
78
78
  get: operations["Merchant admin navigate"];
79
79
  };
80
+ "/stores/{storeId}/checkout-buttons-ui": {
81
+ /**
82
+ * Retrieve some rendered HTML and CSS for checkout buttons options for enabling and disabling coverage
83
+ * @description Generate HTML and CSS for checkout buttons
84
+ */
85
+ get: operations["Checkout buttons UI"];
86
+ };
80
87
  "/stores/{storeId}/coverage-info": {
81
88
  /**
82
89
  * Navigate to coverage info
@@ -694,10 +701,10 @@ export interface components {
694
701
  */
695
702
  lineItems: {
696
703
  coupons?: {
697
- code?: string;
704
+ code: string;
698
705
  /** @description The amount this coupon discounts in dollars for this line item. */
699
- discountAmount?: components["schemas"]["money.schema"];
700
- id?: string;
706
+ discountAmount: components["schemas"]["money.schema"];
707
+ id: string;
701
708
  }[];
702
709
  /**
703
710
  * ID
@@ -1100,6 +1107,35 @@ export interface operations {
1100
1107
  };
1101
1108
  };
1102
1109
  };
1110
+ /**
1111
+ * Retrieve some rendered HTML and CSS for checkout buttons options for enabling and disabling coverage
1112
+ * @description Generate HTML and CSS for checkout buttons
1113
+ */
1114
+ "Checkout buttons UI": {
1115
+ parameters: {
1116
+ path: {
1117
+ storeId: components["parameters"]["store-id.param"];
1118
+ };
1119
+ };
1120
+ responses: {
1121
+ 200: {
1122
+ content: {
1123
+ "application/json": {
1124
+ /**
1125
+ * Checkout buttons CSS
1126
+ * @description Boilerplate checkout button CSS, plus any merchant configured styles or A/B tests.
1127
+ */
1128
+ css?: string;
1129
+ /**
1130
+ * Checkout buttons HTML
1131
+ * @description Boilerplate checkout button HTML
1132
+ */
1133
+ html?: string;
1134
+ };
1135
+ };
1136
+ };
1137
+ };
1138
+ };
1103
1139
  /**
1104
1140
  * Navigate to coverage info
1105
1141
  * @description Navigate to the coverage info page.
package/lib/openapi.yaml CHANGED
@@ -724,6 +724,10 @@ components:
724
724
  description: The amount this coupon discounts in dollars for this line item.
725
725
  id:
726
726
  type: string
727
+ required:
728
+ - id
729
+ - code
730
+ - discountAmount
727
731
  type: object
728
732
  type: array
729
733
  id:
@@ -1155,6 +1159,32 @@ paths:
1155
1159
  tags:
1156
1160
  - Merchant admin
1157
1161
  summary: Merchant admin
1162
+ /stores/{storeId}/checkout-buttons-ui:
1163
+ description: Generate HTML and CSS for checkout buttons
1164
+ get:
1165
+ description: Generate HTML and CSS for checkout buttons
1166
+ operationId: Checkout buttons UI
1167
+ parameters:
1168
+ - $ref: '#/components/parameters/store-id.param'
1169
+ responses:
1170
+ '200':
1171
+ content:
1172
+ application/json:
1173
+ schema:
1174
+ properties:
1175
+ css:
1176
+ description: Boilerplate checkout button CSS, plus any merchant configured styles or A/B tests.
1177
+ title: Checkout buttons CSS
1178
+ type: string
1179
+ html:
1180
+ description: Boilerplate checkout button HTML
1181
+ title: Checkout buttons HTML
1182
+ type: string
1183
+ summary: Retrieve some rendered HTML and CSS for checkout buttons options for enabling and disabling coverage
1184
+ tags:
1185
+ - Checkout buttons
1186
+ - UI
1187
+ summary: Checkout buttons UI
1158
1188
  /stores/{storeId}/coverage-info:
1159
1189
  description: Navigate to the coverage info page.
1160
1190
  get:
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  ]
32
32
  }
33
33
  },
34
- "version": "2.2.90"
34
+ "version": "2.2.101"
35
35
  }