@vendasta/billing 9.7.0 → 10.0.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.
Files changed (39) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +3 -3
  2. package/esm2020/lib/_internal/bank-reconciliation.api.service.mjs +3 -3
  3. package/esm2020/lib/_internal/billing.api.service.mjs +3 -3
  4. package/esm2020/lib/_internal/bundle.api.service.mjs +3 -3
  5. package/esm2020/lib/_internal/contract-document.api.service.mjs +3 -3
  6. package/esm2020/lib/_internal/contract.api.service.mjs +3 -3
  7. package/esm2020/lib/_internal/credit.api.service.mjs +3 -3
  8. package/esm2020/lib/_internal/discount.api.service.mjs +3 -3
  9. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/payment.interface.mjs +1 -1
  11. package/esm2020/lib/_internal/invoice-template.api.service.mjs +3 -3
  12. package/esm2020/lib/_internal/invoice.api.service.mjs +3 -3
  13. package/esm2020/lib/_internal/merchant.api.service.mjs +3 -3
  14. package/esm2020/lib/_internal/objects/index.mjs +2 -2
  15. package/esm2020/lib/_internal/objects/payment.mjs +88 -45
  16. package/esm2020/lib/_internal/payment-method.api.service.mjs +3 -3
  17. package/esm2020/lib/_internal/payment.api.service.mjs +10 -5
  18. package/esm2020/lib/_internal/pricing.api.service.mjs +3 -3
  19. package/esm2020/lib/_internal/product-summary.api.service.mjs +3 -3
  20. package/esm2020/lib/_internal/product.api.service.mjs +3 -3
  21. package/esm2020/lib/_internal/purchase.api.service.mjs +3 -3
  22. package/esm2020/lib/_internal/recurring-invoice.api.service.mjs +3 -3
  23. package/esm2020/lib/_internal/refund.api.service.mjs +3 -3
  24. package/esm2020/lib/_internal/retail-customer-configuration.api.service.mjs +3 -3
  25. package/esm2020/lib/_internal/sales-credit-note.api.service.mjs +3 -3
  26. package/esm2020/lib/_internal/sales-invoice.api.service.mjs +3 -3
  27. package/esm2020/lib/_internal/tax.api.service.mjs +3 -3
  28. package/esm2020/lib/_internal/vendor.api.service.mjs +3 -3
  29. package/fesm2015/vendasta-billing.mjs +165 -117
  30. package/fesm2015/vendasta-billing.mjs.map +1 -1
  31. package/fesm2020/vendasta-billing.mjs +165 -117
  32. package/fesm2020/vendasta-billing.mjs.map +1 -1
  33. package/{vendasta-billing.d.ts → index.d.ts} +0 -0
  34. package/lib/_internal/interfaces/index.d.ts +1 -1
  35. package/lib/_internal/interfaces/payment.interface.d.ts +18 -11
  36. package/lib/_internal/objects/index.d.ts +1 -1
  37. package/lib/_internal/objects/payment.d.ts +27 -14
  38. package/lib/_internal/payment.api.service.d.ts +3 -2
  39. package/package.json +5 -5
File without changes
@@ -24,7 +24,7 @@ export {} from './month.interface';
24
24
  export { ListMerchantBillingReportsRequestInterface, ListMerchantBillingReportsResponseInterface, MerchantReportInterface, } from './merchant-report.interface';
25
25
  export { CreateMeteredComponentRequestInterface, MeteredComponentInterface, TickComponentUsageRequestInterface, } from './metered-component.interface';
26
26
  export {} from './card.interface';
27
- export { RetailPaymentCardDetailsInterface, CloseRetailDisputeRequestInterface, ConfigureRetailPaymentProviderRequestInterface, ConfigureRetailPaymentProviderResponseInterface, ConfirmRetailPaymentRequestInterface, DisputeInterface, DisputeEvidenceInterface, SubmitEvidenceRequestDisputeEvidenceInterface, DisputeEvidenceDetailsInterface, FileInterface, GetRetailDisputeRequestInterface, GetRetailDisputeResponseInterface, GetRetailPaymentProviderRequestInterface, GetRetailPaymentProviderResponseInterface, GetRetailPaymentRequestInterface, GetRetailPaymentResponseInterface, ListPaymentRequestListPaymentFiltersInterface, ListPaymentRequestInterface, ListPaymentResponseInterface, ListRetailDisputesRequestInterface, ListRetailDisputesResponseInterface, ListRetailPaymentsRequestListRetailPaymentsFiltersInterface, ListRetailPaymentsRequestInterface, ListRetailPaymentsResponseInterface, PrepareRetailPaymentRequestOrderInterface, PaymentInterface, PaymentPaymentAllocationInterface, PrepareRetailPaymentRequestInterface, PrepareRetailPaymentResponseInterface, RetailPaymentInterface, RetailPaymentsEnabledRequestInterface, RetailPaymentsEnabledResponseInterface, RetailStatusRequestInterface, RetailStatusResponseInterface, SubmitEvidenceRequestInterface, UpdateRetailPaymentProviderRequestInterface, RetailStatusResponseVerificationErrorInterface, RetailStatusResponseVerificationRequirementsInterface, } from './payment.interface';
27
+ export { RetailPaymentCardDetailsInterface, CloseRetailDisputeRequestInterface, ConfigureRetailPaymentProviderRequestInterface, ConfigureRetailPaymentProviderResponseInterface, ConfirmRetailPaymentRequestInterface, DisputeInterface, SubmitEvidenceRequestDisputeEvidenceInterface, DisputeEvidenceInterface, DisputeEvidenceDetailsInterface, FileInterface, GetRetailDisputeRequestInterface, GetRetailDisputeResponseInterface, GetRetailPaymentProviderRequestInterface, GetRetailPaymentProviderResponseInterface, GetRetailPaymentRequestInterface, GetRetailPaymentResponseInterface, GetWholesaleProviderPublicKeyRequestInterface, GetWholesaleProviderPublicKeyResponseInterface, ListPaymentRequestListPaymentFiltersInterface, ListPaymentRequestInterface, ListPaymentResponseInterface, ListRetailDisputesRequestInterface, ListRetailDisputesResponseInterface, ListRetailPaymentsRequestListRetailPaymentsFiltersInterface, ListRetailPaymentsRequestInterface, ListRetailPaymentsResponseInterface, PrepareRetailPaymentRequestOrderInterface, PaymentInterface, PaymentPaymentAllocationInterface, PrepareRetailPaymentRequestInterface, PrepareRetailPaymentResponseInterface, RetailPaymentInterface, RetailPaymentsEnabledRequestInterface, RetailPaymentsEnabledResponseInterface, RetailStatusRequestInterface, RetailStatusResponseInterface, SubmitEvidenceRequestInterface, UpdateRetailPaymentProviderRequestInterface, RetailStatusResponseVerificationErrorInterface, RetailStatusResponseVerificationRequirementsInterface, } from './payment.interface';
28
28
  export { CreatePaymentCardRequestInterface, DeletePaymentCardRequestInterface, ListPaymentCardsRequestInterface, ListPaymentCardsResponseInterface, PaymentCardInterface, SetDefaultPaymentMethodRequestInterface, UpdatePaymentCardRequestInterface, } from './payment-card.interface';
29
29
  export { FeeInterface, } from './fee.interface';
30
30
  export { ComponentPricingInterface, CreatePricingPlanRequestInterface, CreatePricingPlanResponseInterface, GetMultiPricingPlanRequestInterface, GetMultiPricingPlanResponseInterface, PricingPlanInterface, PricingPlanProductPricingInterface, ProductPricingRuleInterface, UpdatePricingPlanRequestInterface, UpdatePricingPlanResponseInterface, } from './pricing-plan.interface';
@@ -35,17 +35,6 @@ export interface DisputeInterface {
35
35
  fee?: number;
36
36
  feeCurrencyCode?: string;
37
37
  }
38
- export interface DisputeEvidenceInterface {
39
- customerCommunication?: FileInterface;
40
- customerSignature?: FileInterface;
41
- shippingDocumentation?: FileInterface;
42
- receipt?: FileInterface;
43
- uncategorizedFile?: FileInterface;
44
- billingAddress?: string;
45
- customerEmailAddress?: string;
46
- customerName?: string;
47
- productDescription?: string;
48
- }
49
38
  export interface SubmitEvidenceRequestDisputeEvidenceInterface {
50
39
  billingAddress?: string;
51
40
  customerEmailAddress?: string;
@@ -57,6 +46,17 @@ export interface SubmitEvidenceRequestDisputeEvidenceInterface {
57
46
  shippingDocumentationFileId?: string;
58
47
  uncategorizedFileId?: string;
59
48
  }
49
+ export interface DisputeEvidenceInterface {
50
+ customerCommunication?: FileInterface;
51
+ customerSignature?: FileInterface;
52
+ shippingDocumentation?: FileInterface;
53
+ receipt?: FileInterface;
54
+ uncategorizedFile?: FileInterface;
55
+ billingAddress?: string;
56
+ customerEmailAddress?: string;
57
+ customerName?: string;
58
+ productDescription?: string;
59
+ }
60
60
  export interface DisputeEvidenceDetailsInterface {
61
61
  dueBy?: Date;
62
62
  hasEvidence?: boolean;
@@ -90,6 +90,13 @@ export interface GetRetailPaymentRequestInterface {
90
90
  export interface GetRetailPaymentResponseInterface {
91
91
  payment?: RetailPaymentInterface;
92
92
  }
93
+ export interface GetWholesaleProviderPublicKeyRequestInterface {
94
+ merchantId?: string;
95
+ countryCode?: string;
96
+ }
97
+ export interface GetWholesaleProviderPublicKeyResponseInterface {
98
+ publcApiKey?: string;
99
+ }
93
100
  export interface ListPaymentRequestListPaymentFiltersInterface {
94
101
  merchantId?: string;
95
102
  allocationIds?: string[];
@@ -24,7 +24,7 @@ export {} from './month';
24
24
  export { ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, MerchantReport, } from './merchant-report';
25
25
  export { CreateMeteredComponentRequest, MeteredComponent, TickComponentUsageRequest, } from './metered-component';
26
26
  export {} from './card';
27
- export { RetailPaymentCardDetails, CloseRetailDisputeRequest, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, Dispute, DisputeEvidence, SubmitEvidenceRequestDisputeEvidence, DisputeEvidenceDetails, File, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, ListPaymentRequestListPaymentFilters, ListPaymentRequest, ListPaymentResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsRequest, ListRetailPaymentsResponse, PrepareRetailPaymentRequestOrder, Payment, PaymentPaymentAllocation, PrepareRetailPaymentRequest, PrepareRetailPaymentResponse, RetailPayment, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailStatusRequest, RetailStatusResponse, SubmitEvidenceRequest, UpdateRetailPaymentProviderRequest, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, } from './payment';
27
+ export { RetailPaymentCardDetails, CloseRetailDisputeRequest, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, Dispute, SubmitEvidenceRequestDisputeEvidence, DisputeEvidence, DisputeEvidenceDetails, File, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, ListPaymentRequestListPaymentFilters, ListPaymentRequest, ListPaymentResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsRequest, ListRetailPaymentsResponse, PrepareRetailPaymentRequestOrder, Payment, PaymentPaymentAllocation, PrepareRetailPaymentRequest, PrepareRetailPaymentResponse, RetailPayment, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailStatusRequest, RetailStatusResponse, SubmitEvidenceRequest, UpdateRetailPaymentProviderRequest, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, } from './payment';
28
28
  export { CreatePaymentCardRequest, DeletePaymentCardRequest, ListPaymentCardsRequest, ListPaymentCardsResponse, PaymentCard, SetDefaultPaymentMethodRequest, UpdatePaymentCardRequest, } from './payment-card';
29
29
  export { Fee, } from './fee';
30
30
  export { ComponentPricing, CreatePricingPlanRequest, CreatePricingPlanResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, PricingPlan, PricingPlanProductPricing, ProductPricingRule, UpdatePricingPlanRequest, UpdatePricingPlanResponse, } from './pricing-plan';
@@ -55,20 +55,6 @@ export declare class Dispute implements i.DisputeInterface {
55
55
  constructor(kwargs?: i.DisputeInterface);
56
56
  toApiJson(): object;
57
57
  }
58
- export declare class DisputeEvidence implements i.DisputeEvidenceInterface {
59
- customerCommunication: File;
60
- customerSignature: File;
61
- shippingDocumentation: File;
62
- receipt: File;
63
- uncategorizedFile: File;
64
- billingAddress: string;
65
- customerEmailAddress: string;
66
- customerName: string;
67
- productDescription: string;
68
- static fromProto(proto: any): DisputeEvidence;
69
- constructor(kwargs?: i.DisputeEvidenceInterface);
70
- toApiJson(): object;
71
- }
72
58
  export declare class SubmitEvidenceRequestDisputeEvidence implements i.SubmitEvidenceRequestDisputeEvidenceInterface {
73
59
  billingAddress: string;
74
60
  customerEmailAddress: string;
@@ -83,6 +69,20 @@ export declare class SubmitEvidenceRequestDisputeEvidence implements i.SubmitEvi
83
69
  constructor(kwargs?: i.SubmitEvidenceRequestDisputeEvidenceInterface);
84
70
  toApiJson(): object;
85
71
  }
72
+ export declare class DisputeEvidence implements i.DisputeEvidenceInterface {
73
+ customerCommunication: File;
74
+ customerSignature: File;
75
+ shippingDocumentation: File;
76
+ receipt: File;
77
+ uncategorizedFile: File;
78
+ billingAddress: string;
79
+ customerEmailAddress: string;
80
+ customerName: string;
81
+ productDescription: string;
82
+ static fromProto(proto: any): DisputeEvidence;
83
+ constructor(kwargs?: i.DisputeEvidenceInterface);
84
+ toApiJson(): object;
85
+ }
86
86
  export declare class DisputeEvidenceDetails implements i.DisputeEvidenceDetailsInterface {
87
87
  dueBy: Date;
88
88
  hasEvidence: boolean;
@@ -140,6 +140,19 @@ export declare class GetRetailPaymentResponse implements i.GetRetailPaymentRespo
140
140
  constructor(kwargs?: i.GetRetailPaymentResponseInterface);
141
141
  toApiJson(): object;
142
142
  }
143
+ export declare class GetWholesaleProviderPublicKeyRequest implements i.GetWholesaleProviderPublicKeyRequestInterface {
144
+ merchantId: string;
145
+ countryCode: string;
146
+ static fromProto(proto: any): GetWholesaleProviderPublicKeyRequest;
147
+ constructor(kwargs?: i.GetWholesaleProviderPublicKeyRequestInterface);
148
+ toApiJson(): object;
149
+ }
150
+ export declare class GetWholesaleProviderPublicKeyResponse implements i.GetWholesaleProviderPublicKeyResponseInterface {
151
+ publcApiKey: string;
152
+ static fromProto(proto: any): GetWholesaleProviderPublicKeyResponse;
153
+ constructor(kwargs?: i.GetWholesaleProviderPublicKeyResponseInterface);
154
+ toApiJson(): object;
155
+ }
143
156
  export declare class ListPaymentRequestListPaymentFilters implements i.ListPaymentRequestListPaymentFiltersInterface {
144
157
  merchantId: string;
145
158
  allocationIds: string[];
@@ -1,5 +1,5 @@
1
- import { CloseRetailDisputeRequest, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, ListPaymentRequest, ListPaymentResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsResponse, PrepareRetailPaymentRequest, PrepareRetailPaymentResponse, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailStatusRequest, RetailStatusResponse, SubmitEvidenceRequest, UpdateRetailPaymentProviderRequest } from './objects/';
2
- import { CloseRetailDisputeRequestInterface, ConfigureRetailPaymentProviderRequestInterface, ConfirmRetailPaymentRequestInterface, GetRetailDisputeRequestInterface, GetRetailPaymentProviderRequestInterface, GetRetailPaymentRequestInterface, ListPaymentRequestInterface, ListRetailDisputesRequestInterface, ListRetailPaymentsRequestInterface, PrepareRetailPaymentRequestInterface, RetailPaymentsEnabledRequestInterface, RetailStatusRequestInterface, SubmitEvidenceRequestInterface, UpdateRetailPaymentProviderRequestInterface } from './interfaces/';
1
+ import { CloseRetailDisputeRequest, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, ListPaymentRequest, ListPaymentResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsResponse, PrepareRetailPaymentRequest, PrepareRetailPaymentResponse, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailStatusRequest, RetailStatusResponse, SubmitEvidenceRequest, UpdateRetailPaymentProviderRequest } from './objects/';
2
+ import { CloseRetailDisputeRequestInterface, ConfigureRetailPaymentProviderRequestInterface, ConfirmRetailPaymentRequestInterface, GetRetailDisputeRequestInterface, GetRetailPaymentProviderRequestInterface, GetRetailPaymentRequestInterface, GetWholesaleProviderPublicKeyRequestInterface, ListPaymentRequestInterface, ListRetailDisputesRequestInterface, ListRetailPaymentsRequestInterface, PrepareRetailPaymentRequestInterface, RetailPaymentsEnabledRequestInterface, RetailStatusRequestInterface, SubmitEvidenceRequestInterface, UpdateRetailPaymentProviderRequestInterface } from './interfaces/';
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -24,6 +24,7 @@ export declare class PaymentApiService {
24
24
  updateRetailProvider(r: UpdateRetailPaymentProviderRequest | UpdateRetailPaymentProviderRequestInterface): Observable<HttpResponse<null>>;
25
25
  getRetailProvider(r: GetRetailPaymentProviderRequest | GetRetailPaymentProviderRequestInterface): Observable<GetRetailPaymentProviderResponse>;
26
26
  submitEvidence(r: SubmitEvidenceRequest | SubmitEvidenceRequestInterface): Observable<HttpResponse<null>>;
27
+ getWholesaleProviderPublicKey(r: GetWholesaleProviderPublicKeyRequest | GetWholesaleProviderPublicKeyRequestInterface): Observable<GetWholesaleProviderPublicKeyResponse>;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PaymentApiService, never>;
28
29
  static ɵprov: i0.ɵɵInjectableDeclaration<PaymentApiService>;
29
30
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@vendasta/billing",
3
- "version": "9.7.0",
3
+ "version": "10.0.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^13.0.0",
6
- "@angular/core": "^13.0.0"
5
+ "@angular/common": "^14.0.1",
6
+ "@angular/core": "^14.0.1"
7
7
  },
8
8
  "author": "Vendasta R&D",
9
9
  "description": "SDK to interact with the billing service",
10
- "typings": "vendasta-billing.d.ts",
10
+ "typings": "index.d.ts",
11
11
  "license": "ISC",
12
12
  "main": "index.js",
13
13
  "module": "fesm2015/vendasta-billing.mjs",
@@ -20,7 +20,7 @@
20
20
  "default": "./package.json"
21
21
  },
22
22
  ".": {
23
- "types": "./vendasta-billing.d.ts",
23
+ "types": "./index.d.ts",
24
24
  "esm2020": "./esm2020/vendasta-billing.mjs",
25
25
  "es2020": "./fesm2020/vendasta-billing.mjs",
26
26
  "es2015": "./fesm2015/vendasta-billing.mjs",