repzo 1.0.55 → 1.0.56

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios from "axios";
2
2
  import { v4 as uuid } from "uuid";
3
- class Repzo {
3
+ export default class Repzo {
4
4
  constructor(apiKey, options) {
5
5
  this.client = {
6
6
  _path: "/client",
@@ -1722,4 +1722,3 @@ Repzo.CommandLog = class {
1722
1722
  return this;
1723
1723
  }
1724
1724
  };
1725
- export default Repzo;
@@ -60,7 +60,9 @@ interface PaymentData {
60
60
  view_serial_number?: SerialNumber;
61
61
  type?: "invoice" | "payment" | "return_invoice" | "refund" | "adjustment";
62
62
  amount: number;
63
+ account_index?: number;
63
64
  is_linked_txn?: boolean;
65
+ is_original?: boolean;
64
66
  }
65
67
  interface Check {
66
68
  _id: string;
@@ -4348,6 +4350,7 @@ export declare namespace Service {
4348
4350
  client_name: string;
4349
4351
  comment?: string;
4350
4352
  creator: AdminCreator | RepCreator | ClientCreator;
4353
+ implemented_by?: AdminCreator | RepCreator;
4351
4354
  latest: boolean;
4352
4355
  version?: number;
4353
4356
  time?: number;
@@ -4460,6 +4463,7 @@ export declare namespace Service {
4460
4463
  comment?: string;
4461
4464
  class: "proforma" | "return";
4462
4465
  creator: AdminCreator | RepCreator | ClientCreator;
4466
+ implemented_by?: AdminCreator | RepCreator;
4463
4467
  version?: number;
4464
4468
  time?: number;
4465
4469
  issue_date: string;
@@ -4562,6 +4566,7 @@ export declare namespace Service {
4562
4566
  client_name?: string;
4563
4567
  comment?: string;
4564
4568
  creator?: AdminCreator | RepCreator | ClientCreator;
4569
+ implemented_by?: AdminCreator | RepCreator;
4565
4570
  latest?: boolean;
4566
4571
  version?: number;
4567
4572
  time?: number;
@@ -4923,6 +4928,10 @@ export declare namespace Service {
4923
4928
  Txn_invoice_total: number;
4924
4929
  TxnType: "refund" | "invoice";
4925
4930
  };
4931
+ client_geo_location?: {
4932
+ lat?: number;
4933
+ lng?: number;
4934
+ };
4926
4935
  company_namespace: string[];
4927
4936
  integration_meta?: {
4928
4937
  [key: string]: any;
@@ -4958,6 +4967,10 @@ export declare namespace Service {
4958
4967
  Txn_invoice_total: number;
4959
4968
  TxnType: "refund" | "invoice";
4960
4969
  };
4970
+ client_geo_location?: {
4971
+ lat?: number;
4972
+ lng?: number;
4973
+ };
4961
4974
  company_namespace?: string[];
4962
4975
  integration_meta?: {
4963
4976
  [key: string]: any;
@@ -4989,7 +5002,7 @@ export declare namespace Service {
4989
5002
  route?: string | Route.RouteSchema;
4990
5003
  };
4991
5004
  type PaymentType = "check" | "cash";
4992
- type PopulatedKeys = "custom_status";
5005
+ type PopulatedKeys = "custom_status" | "teams" | "route";
4993
5006
  type PaymentStatus = "consumed" | "unconsumed" | "partially_consumed";
4994
5007
  export namespace Find {
4995
5008
  type Params = DefaultPaginationQueryParams & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -61,7 +61,9 @@ interface PaymentData {
61
61
  view_serial_number?: SerialNumber;
62
62
  type?: "invoice" | "payment" | "return_invoice" | "refund" | "adjustment";
63
63
  amount: number;
64
+ account_index?: number;
64
65
  is_linked_txn?: boolean;
66
+ is_original?: boolean;
65
67
  }
66
68
  interface Check {
67
69
  _id: string;
@@ -4400,6 +4402,7 @@ export namespace Service {
4400
4402
  client_name: string;
4401
4403
  comment?: string;
4402
4404
  creator: AdminCreator | RepCreator | ClientCreator;
4405
+ implemented_by?: AdminCreator | RepCreator;
4403
4406
  latest: boolean;
4404
4407
  version?: number;
4405
4408
  time?: number;
@@ -4504,6 +4507,7 @@ export namespace Service {
4504
4507
  comment?: string;
4505
4508
  class: "proforma" | "return";
4506
4509
  creator: AdminCreator | RepCreator | ClientCreator;
4510
+ implemented_by?: AdminCreator | RepCreator;
4507
4511
  version?: number;
4508
4512
  time?: number;
4509
4513
  issue_date: string;
@@ -4598,6 +4602,7 @@ export namespace Service {
4598
4602
  client_name?: string;
4599
4603
  comment?: string;
4600
4604
  creator?: AdminCreator | RepCreator | ClientCreator;
4605
+ implemented_by?: AdminCreator | RepCreator;
4601
4606
  latest?: boolean;
4602
4607
  version?: number;
4603
4608
  time?: number;
@@ -4933,6 +4938,10 @@ export namespace Service {
4933
4938
  Txn_invoice_total: number;
4934
4939
  TxnType: "refund" | "invoice";
4935
4940
  };
4941
+ client_geo_location?: {
4942
+ lat?: number;
4943
+ lng?: number;
4944
+ };
4936
4945
  company_namespace: string[];
4937
4946
  integration_meta?: { [key: string]: any };
4938
4947
  sync_id: string;
@@ -4966,6 +4975,10 @@ export namespace Service {
4966
4975
  Txn_invoice_total: number;
4967
4976
  TxnType: "refund" | "invoice";
4968
4977
  };
4978
+ client_geo_location?: {
4979
+ lat?: number;
4980
+ lng?: number;
4981
+ };
4969
4982
  company_namespace?: string[];
4970
4983
  integration_meta?: { [key: string]: any };
4971
4984
  sync_id: string;
@@ -4992,7 +5005,7 @@ export namespace Service {
4992
5005
  route?: string | Route.RouteSchema;
4993
5006
  };
4994
5007
  type PaymentType = "check" | "cash";
4995
- type PopulatedKeys = "custom_status";
5008
+ type PopulatedKeys = "custom_status" | "teams" | "route";
4996
5009
  type PaymentStatus = "consumed" | "unconsumed" | "partially_consumed";
4997
5010
  export namespace Find {
4998
5011
  export type Params = DefaultPaginationQueryParams & {