choco-one-click-payment 1.1.62 → 1.1.64

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/index.d.ts CHANGED
@@ -73,6 +73,18 @@ export interface ChocoOneClickConfig {
73
73
  */
74
74
  merchantName?: string;
75
75
 
76
+ /**
77
+ * Рантайм, из которого идёт оплата — уходит на checkout заголовком X-OS.
78
+ * IOS/ANDROID означают нативное приложение (суперапп Choco, партнёрская нативка),
79
+ * мобильный браузер — это WEB.
80
+ *
81
+ * Значение передаёт хост-приложение: только оно достоверно знает свой рантайм.
82
+ * Если не передано, уходит WEB.
83
+ * @optional
84
+ * @example "IOS"
85
+ */
86
+ os?: 'WEB' | 'IOS' | 'ANDROID';
87
+
76
88
  /**
77
89
  * Окружение для API
78
90
  * @default "production"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "choco-one-click-payment",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "description": "Встраиваемый виджет для быстрой оплаты с bottom sheet интерфейсом",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",