@unified-api/typescript-sdk 1.0.3 → 1.0.4

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.
@@ -1,4 +1,5 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AccountingContactPaymentMethod } from "./accountingcontactpaymentmethod";
2
3
  import { AccountingEmail } from "./accountingemail";
3
4
  import { AccountingTelephone } from "./accountingtelephone";
4
5
  import { PropertyAccountingContactBillingAddress } from "./propertyaccountingcontactbillingaddress";
@@ -26,6 +27,7 @@ export declare class AccountingContact extends SpeakeasyBase {
26
27
  isCustomer?: boolean;
27
28
  isSupplier?: boolean;
28
29
  name?: string;
30
+ paymentMethods?: AccountingContactPaymentMethod[];
29
31
  portalUrl?: string;
30
32
  raw?: Record<string, any>;
31
33
  shippingAddress?: PropertyAccountingContactShippingAddress;
@@ -29,6 +29,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.AccountingContact = exports.TaxExemption = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
+ var accountingcontactpaymentmethod_1 = require("./accountingcontactpaymentmethod");
32
33
  var accountingemail_1 = require("./accountingemail");
33
34
  var accountingtelephone_1 = require("./accountingtelephone");
34
35
  var propertyaccountingcontactbillingaddress_1 = require("./propertyaccountingcontactbillingaddress");
@@ -104,6 +105,12 @@ var AccountingContact = /** @class */ (function (_super) {
104
105
  (0, class_transformer_1.Expose)({ name: "name" }),
105
106
  __metadata("design:type", String)
106
107
  ], AccountingContact.prototype, "name", void 0);
108
+ __decorate([
109
+ (0, utils_1.SpeakeasyMetadata)({ elemType: accountingcontactpaymentmethod_1.AccountingContactPaymentMethod }),
110
+ (0, class_transformer_1.Expose)({ name: "payment_methods" }),
111
+ (0, class_transformer_1.Type)(function () { return accountingcontactpaymentmethod_1.AccountingContactPaymentMethod; }),
112
+ __metadata("design:type", Array)
113
+ ], AccountingContact.prototype, "paymentMethods", void 0);
107
114
  __decorate([
108
115
  (0, utils_1.SpeakeasyMetadata)(),
109
116
  (0, class_transformer_1.Expose)({ name: "portal_url" }),
@@ -0,0 +1,14 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare enum AccountingContactPaymentMethodType {
3
+ Ach = "ACH",
4
+ Alipay = "ALIPAY",
5
+ Card = "CARD",
6
+ Giropay = "GIROPAY",
7
+ Ideal = "IDEAL",
8
+ Other = "OTHER",
9
+ Paypal = "PAYPAL"
10
+ }
11
+ export declare class AccountingContactPaymentMethod extends SpeakeasyBase {
12
+ name?: string;
13
+ type: AccountingContactPaymentMethodType;
14
+ }
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.AccountingContactPaymentMethod = exports.AccountingContactPaymentMethodType = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var AccountingContactPaymentMethodType;
34
+ (function (AccountingContactPaymentMethodType) {
35
+ AccountingContactPaymentMethodType["Ach"] = "ACH";
36
+ AccountingContactPaymentMethodType["Alipay"] = "ALIPAY";
37
+ AccountingContactPaymentMethodType["Card"] = "CARD";
38
+ AccountingContactPaymentMethodType["Giropay"] = "GIROPAY";
39
+ AccountingContactPaymentMethodType["Ideal"] = "IDEAL";
40
+ AccountingContactPaymentMethodType["Other"] = "OTHER";
41
+ AccountingContactPaymentMethodType["Paypal"] = "PAYPAL";
42
+ })(AccountingContactPaymentMethodType = exports.AccountingContactPaymentMethodType || (exports.AccountingContactPaymentMethodType = {}));
43
+ var AccountingContactPaymentMethod = /** @class */ (function (_super) {
44
+ __extends(AccountingContactPaymentMethod, _super);
45
+ function AccountingContactPaymentMethod() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+ __decorate([
49
+ (0, utils_1.SpeakeasyMetadata)(),
50
+ (0, class_transformer_1.Expose)({ name: "name" }),
51
+ __metadata("design:type", String)
52
+ ], AccountingContactPaymentMethod.prototype, "name", void 0);
53
+ __decorate([
54
+ (0, utils_1.SpeakeasyMetadata)(),
55
+ (0, class_transformer_1.Expose)({ name: "type" }),
56
+ __metadata("design:type", String)
57
+ ], AccountingContactPaymentMethod.prototype, "type", void 0);
58
+ return AccountingContactPaymentMethod;
59
+ }(utils_1.SpeakeasyBase));
60
+ exports.AccountingContactPaymentMethod = AccountingContactPaymentMethod;
@@ -1,5 +1,6 @@
1
1
  export * from "./accountingaccount";
2
2
  export * from "./accountingcontact";
3
+ export * from "./accountingcontactpaymentmethod";
3
4
  export * from "./accountingemail";
4
5
  export * from "./accountinginvoice";
5
6
  export * from "./accountinglineitem";
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  __exportStar(require("./accountingaccount"), exports);
21
21
  __exportStar(require("./accountingcontact"), exports);
22
+ __exportStar(require("./accountingcontactpaymentmethod"), exports);
22
23
  __exportStar(require("./accountingemail"), exports);
23
24
  __exportStar(require("./accountinginvoice"), exports);
24
25
  __exportStar(require("./accountinglineitem"), exports);
package/dist/sdk/sdk.js CHANGED
@@ -81,9 +81,9 @@ var SDKConfiguration = /** @class */ (function () {
81
81
  function SDKConfiguration(init) {
82
82
  this.language = "typescript";
83
83
  this.openapiDocVersion = "1.0";
84
- this.sdkVersion = "1.0.3";
84
+ this.sdkVersion = "1.0.4";
85
85
  this.genVersion = "2.277.0";
86
- this.userAgent = "speakeasy-sdk/typescript 1.0.3 2.277.0 1.0 @unified-api/typescript-sdk";
86
+ this.userAgent = "speakeasy-sdk/typescript 1.0.4 2.277.0 1.0 @unified-api/typescript-sdk";
87
87
  Object.assign(this, init);
88
88
  }
89
89
  return SDKConfiguration;
@@ -14,6 +14,7 @@
14
14
  | `isCustomer` | *boolean* | :heavy_minus_sign: | N/A |
15
15
  | `isSupplier` | *boolean* | :heavy_minus_sign: | N/A |
16
16
  | `name` | *string* | :heavy_minus_sign: | N/A |
17
+ | `paymentMethods` | [shared.AccountingContactPaymentMethod](../../../sdk/models/shared/accountingcontactpaymentmethod.md)[] | :heavy_minus_sign: | N/A |
17
18
  | `portalUrl` | *string* | :heavy_minus_sign: | N/A |
18
19
  | `raw` | Record<string, *any*> | :heavy_minus_sign: | N/A |
19
20
  | `shippingAddress` | [shared.PropertyAccountingContactShippingAddress](../../../sdk/models/shared/propertyaccountingcontactshippingaddress.md) | :heavy_minus_sign: | N/A |
@@ -0,0 +1,9 @@
1
+ # AccountingContactPaymentMethod
2
+
3
+
4
+ ## Fields
5
+
6
+ | Field | Type | Required | Description |
7
+ | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
8
+ | `name` | *string* | :heavy_minus_sign: | N/A |
9
+ | `type` | [shared.AccountingContactPaymentMethodType](../../../sdk/models/shared/accountingcontactpaymentmethodtype.md) | :heavy_check_mark: | N/A |
@@ -0,0 +1,14 @@
1
+ # AccountingContactPaymentMethodType
2
+
3
+
4
+ ## Values
5
+
6
+ | Name | Value |
7
+ | --------- | --------- |
8
+ | `Ach` | ACH |
9
+ | `Alipay` | ALIPAY |
10
+ | `Card` | CARD |
11
+ | `Giropay` | GIROPAY |
12
+ | `Ideal` | IDEAL |
13
+ | `Other` | OTHER |
14
+ | `Paypal` | PAYPAL |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unified-api/typescript-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Unified",
5
5
  "scripts": {
6
6
  "prepare": "tsc --build",