repzo 1.0.55 → 1.0.57

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;
@@ -4910,6 +4915,8 @@ export declare namespace Service {
4910
4915
  client_id: string;
4911
4916
  client_name: string;
4912
4917
  creator: AdminCreator | RepCreator;
4918
+ implemented_by?: AdminCreator | RepCreator;
4919
+ transaction_processed: boolean;
4913
4920
  time?: number;
4914
4921
  serial_number: SerialNumber;
4915
4922
  route?: string;
@@ -4923,6 +4930,10 @@ export declare namespace Service {
4923
4930
  Txn_invoice_total: number;
4924
4931
  TxnType: "refund" | "invoice";
4925
4932
  };
4933
+ client_geo_location?: {
4934
+ lat?: number;
4935
+ lng?: number;
4936
+ };
4926
4937
  company_namespace: string[];
4927
4938
  integration_meta?: {
4928
4939
  [key: string]: any;
@@ -4952,12 +4963,17 @@ export declare namespace Service {
4952
4963
  note?: string;
4953
4964
  currency: string;
4954
4965
  payment_type: PaymentType;
4966
+ transaction_processed: boolean;
4955
4967
  check?: Check;
4956
4968
  LinkedTxn?: {
4957
4969
  Txn_serial_number: SerialNumber;
4958
4970
  Txn_invoice_total: number;
4959
4971
  TxnType: "refund" | "invoice";
4960
4972
  };
4973
+ client_geo_location?: {
4974
+ lat?: number;
4975
+ lng?: number;
4976
+ };
4961
4977
  company_namespace?: string[];
4962
4978
  integration_meta?: {
4963
4979
  [key: string]: any;
@@ -4989,7 +5005,7 @@ export declare namespace Service {
4989
5005
  route?: string | Route.RouteSchema;
4990
5006
  };
4991
5007
  type PaymentType = "check" | "cash";
4992
- type PopulatedKeys = "custom_status";
5008
+ type PopulatedKeys = "custom_status" | "teams" | "route";
4993
5009
  type PaymentStatus = "consumed" | "unconsumed" | "partially_consumed";
4994
5010
  export namespace Find {
4995
5011
  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.57",
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;
@@ -4920,6 +4925,8 @@ export namespace Service {
4920
4925
  client_id: string;
4921
4926
  client_name: string;
4922
4927
  creator: AdminCreator | RepCreator;
4928
+ implemented_by?: AdminCreator | RepCreator;
4929
+ transaction_processed: boolean;
4923
4930
  time?: number;
4924
4931
  serial_number: SerialNumber;
4925
4932
  route?: string;
@@ -4933,6 +4940,10 @@ export namespace Service {
4933
4940
  Txn_invoice_total: number;
4934
4941
  TxnType: "refund" | "invoice";
4935
4942
  };
4943
+ client_geo_location?: {
4944
+ lat?: number;
4945
+ lng?: number;
4946
+ };
4936
4947
  company_namespace: string[];
4937
4948
  integration_meta?: { [key: string]: any };
4938
4949
  sync_id: string;
@@ -4960,12 +4971,17 @@ export namespace Service {
4960
4971
  note?: string;
4961
4972
  currency: string;
4962
4973
  payment_type: PaymentType;
4974
+ transaction_processed: boolean;
4963
4975
  check?: Check;
4964
4976
  LinkedTxn?: {
4965
4977
  Txn_serial_number: SerialNumber;
4966
4978
  Txn_invoice_total: number;
4967
4979
  TxnType: "refund" | "invoice";
4968
4980
  };
4981
+ client_geo_location?: {
4982
+ lat?: number;
4983
+ lng?: number;
4984
+ };
4969
4985
  company_namespace?: string[];
4970
4986
  integration_meta?: { [key: string]: any };
4971
4987
  sync_id: string;
@@ -4992,7 +5008,7 @@ export namespace Service {
4992
5008
  route?: string | Route.RouteSchema;
4993
5009
  };
4994
5010
  type PaymentType = "check" | "cash";
4995
- type PopulatedKeys = "custom_status";
5011
+ type PopulatedKeys = "custom_status" | "teams" | "route";
4996
5012
  type PaymentStatus = "consumed" | "unconsumed" | "partially_consumed";
4997
5013
  export namespace Find {
4998
5014
  export type Params = DefaultPaginationQueryParams & {