@flowio/types 11.22.1 → 11.23.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.
package/dist/api.d.ts CHANGED
@@ -1578,7 +1578,7 @@ declare namespace io.flow.shopify.external.v0.models {
1578
1578
  declare namespace io.flow.channel.internal.v0.enums {
1579
1579
  type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
1580
1580
  type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card';
1581
- type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'held_for_review' | 'reviewed';
1581
+ type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review';
1582
1582
  }
1583
1583
  declare namespace io.flow.channel.internal.v0.models {
1584
1584
  interface Channel {
@@ -1622,12 +1622,18 @@ declare namespace io.flow.channel.internal.v0.models {
1622
1622
  readonly organization_id: string;
1623
1623
  readonly order_number: string;
1624
1624
  readonly channel_id: string;
1625
+ readonly external_order_reference: string;
1626
+ readonly payment_request_id?: string;
1625
1627
  readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1626
- readonly reasons: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason[];
1628
+ readonly reasons: io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason[];
1627
1629
  }
1628
1630
  interface ChannelOrderAcceptanceForm {
1629
1631
  readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1630
1632
  }
1633
+ interface ChannelOrderAcceptanceReason {
1634
+ readonly description: string;
1635
+ readonly rejection_reason?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
1636
+ }
1631
1637
  }
1632
1638
  declare namespace io.flow.common.v0.enums {
1633
1639
  type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
14
18
  var __importStar = (this && this.__importStar) || function (mod) {
15
19
  if (mod && mod.__esModule) return mod;
16
20
  var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
22
  __setModuleDefault(result, mod);
19
23
  return result;
20
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.22.1",
3
+ "version": "11.23.0",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "ae96a8120e0bba0395976a7c77910d0ddf48bc98"
28
+ "gitHead": "129fe18d09e9288613920a6f7f783e4a6216c787"
29
29
  }