@vendasta/billing 10.1.0 → 10.3.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.
@@ -0,0 +1 @@
1
+ export declare const usdConversionRate = 1.4;
@@ -24,3 +24,4 @@ export { SalesCreditNoteApiService } from './sales-credit-note.api.service';
24
24
  export { SalesInvoiceApiService } from './sales-invoice.api.service';
25
25
  export { TaxApiService } from './tax.api.service';
26
26
  export { VendorApiService } from './vendor.api.service';
27
+ export * from './currency-conversion-rate';
@@ -1,4 +1,8 @@
1
1
  import * as e from '../enums';
2
+ export interface AppliedFeeInterface {
3
+ appliedAmount?: number;
4
+ fee?: FeeInterface;
5
+ }
2
6
  export interface FeeInterface {
3
7
  amount?: number;
4
8
  amountType?: e.FeeAmountType;
@@ -26,7 +26,7 @@ export { CreateMeteredComponentRequestInterface, MeteredComponentInterface, Tick
26
26
  export {} from './card.interface';
27
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
- export { FeeInterface, } from './fee.interface';
29
+ export { AppliedFeeInterface, FeeInterface, } from './fee.interface';
30
30
  export { ComponentPricingInterface, CreatePricingPlanRequestInterface, CreatePricingPlanResponseInterface, GetMultiPricingPlanRequestInterface, GetMultiPricingPlanResponseInterface, PricingPlanInterface, PricingPlanProductPricingInterface, ProductPricingRuleInterface, UpdatePricingPlanRequestInterface, UpdatePricingPlanResponseInterface, } from './pricing-plan.interface';
31
31
  export { CreatePricingPlanProductRequestInterface, CreatePricingPlanProductResponseInterface, DeletePricingPlanProductRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanProductResponseInterface, GetPricingPlanProductRequestInterface, GetPricingPlanProductResponseInterface, ListPricingPlanProductsRequestListPricingPlanProductsFiltersInterface, ListPricingPlanProductsRequestInterface, ListPricingPlanProductsResponseInterface, PricingPlanProductPricingEntryInterface, CreatePricingPlanProductRequestPricingEntryInterface, UpdatePricingPlanProductRequestPricingEntryInterface, PricingPlanProductInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanProductResponseInterface, UpsertWholesalePricingRequestInterface, } from './pricing-plan-product.interface';
32
32
  export { CreateProductRequestInterface, DeleteProductRequestInterface, GetMultiProductRequestInterface, GetMultiProductResponseInterface, ListProductsRequestListProductsFiltersInterface, ListProductsRequestInterface, ListProductsResponseInterface, ProductInterface, GetMultiProductResponseProductsEntryInterface, UpdateProductRequestInterface, } from './product.interface';
@@ -1,4 +1,5 @@
1
1
  import { AppliedDiscountInterface } from './applied-discount.interface';
2
+ import { AppliedFeeInterface } from './fee.interface';
2
3
  import { AppliedTaxRateInterface } from './applied-tax-rate.interface';
3
4
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './common.interface';
4
5
  import * as e from '../enums';
@@ -78,6 +79,8 @@ export interface PurchaseItemInterface {
78
79
  taxAmount?: number;
79
80
  appliedTaxRates?: AppliedTaxRateInterface[];
80
81
  setupFee?: number;
82
+ feeAmount?: number;
83
+ appliedFees?: AppliedFeeInterface[];
81
84
  }
82
85
  export interface RetryPurchaseRequestInterface {
83
86
  purchaseId?: string;
@@ -1,6 +1,13 @@
1
1
  import * as i from '../interfaces';
2
2
  import * as e from '../enums';
3
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class AppliedFee implements i.AppliedFeeInterface {
5
+ appliedAmount: number;
6
+ fee: Fee;
7
+ static fromProto(proto: any): AppliedFee;
8
+ constructor(kwargs?: i.AppliedFeeInterface);
9
+ toApiJson(): object;
10
+ }
4
11
  export declare class Fee implements i.FeeInterface {
5
12
  amount: number;
6
13
  amountType: e.FeeAmountType;
@@ -26,7 +26,7 @@ export { CreateMeteredComponentRequest, MeteredComponent, TickComponentUsageRequ
26
26
  export {} from './card';
27
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
- export { Fee, } from './fee';
29
+ export { AppliedFee, Fee, } from './fee';
30
30
  export { ComponentPricing, CreatePricingPlanRequest, CreatePricingPlanResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, PricingPlan, PricingPlanProductPricing, ProductPricingRule, UpdatePricingPlanRequest, UpdatePricingPlanResponse, } from './pricing-plan';
31
31
  export { CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, DeletePricingPlanProductRequest, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, PricingPlanProductPricingEntry, CreatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductRequestPricingEntry, PricingPlanProduct, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpsertWholesalePricingRequest, } from './pricing-plan-product';
32
32
  export { CreateProductRequest, DeleteProductRequest, GetMultiProductRequest, GetMultiProductResponse, ListProductsRequestListProductsFilters, ListProductsRequest, ListProductsResponse, Product, GetMultiProductResponseProductsEntry, UpdateProductRequest, } from './product';
@@ -1,5 +1,6 @@
1
1
  import * as i from '../interfaces';
2
2
  import { AppliedDiscount } from './applied-discount';
3
+ import { AppliedFee } from './fee';
3
4
  import { AppliedTaxRate } from './applied-tax-rate';
4
5
  import { PagedRequestOptions, PagedResponseMetadata } from './common';
5
6
  import * as e from '../enums';
@@ -107,6 +108,8 @@ export declare class PurchaseItem implements i.PurchaseItemInterface {
107
108
  taxAmount: number;
108
109
  appliedTaxRates: AppliedTaxRate[];
109
110
  setupFee: number;
111
+ feeAmount: number;
112
+ appliedFees: AppliedFee[];
110
113
  static fromProto(proto: any): PurchaseItem;
111
114
  constructor(kwargs?: i.PurchaseItemInterface);
112
115
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/billing",
3
- "version": "10.1.0",
3
+ "version": "10.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.1",
6
6
  "@angular/core": "^14.0.1"