@vendasta/billing 10.0.0 → 10.2.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.
@@ -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';
@@ -7,6 +7,7 @@ export interface ListPayoutsRequestFiltersInterface {
7
7
  export interface ListPayoutsRequestInterface {
8
8
  filters?: ListPayoutsRequestFiltersInterface;
9
9
  pagingOptions?: PagedRequestOptionsInterface;
10
+ subsidiary?: string;
10
11
  }
11
12
  export interface ListPayoutsResponseInterface {
12
13
  payouts?: PayoutInterface[];
@@ -27,6 +28,7 @@ export interface ReconcilePayoutRequestInterface {
27
28
  bankReconciliationId?: string;
28
29
  payoutId?: string;
29
30
  allowRetries?: boolean;
31
+ subsidiary?: string;
30
32
  }
31
33
  export interface ReconcilePayoutResponseInterface {
32
34
  pipelineId?: string;
@@ -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';
@@ -12,6 +12,7 @@ export declare class ListPayoutsRequestFilters implements i.ListPayoutsRequestFi
12
12
  export declare class ListPayoutsRequest implements i.ListPayoutsRequestInterface {
13
13
  filters: ListPayoutsRequestFilters;
14
14
  pagingOptions: PagedRequestOptions;
15
+ subsidiary: string;
15
16
  static fromProto(proto: any): ListPayoutsRequest;
16
17
  constructor(kwargs?: i.ListPayoutsRequestInterface);
17
18
  toApiJson(): object;
@@ -41,6 +42,7 @@ export declare class ReconcilePayoutRequest implements i.ReconcilePayoutRequestI
41
42
  bankReconciliationId: string;
42
43
  payoutId: string;
43
44
  allowRetries: boolean;
45
+ subsidiary: string;
44
46
  static fromProto(proto: any): ReconcilePayoutRequest;
45
47
  constructor(kwargs?: i.ReconcilePayoutRequestInterface);
46
48
  toApiJson(): object;
@@ -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.0.0",
3
+ "version": "10.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.1",
6
6
  "@angular/core": "^14.0.1"