@vendasta/billing 10.3.0 → 10.4.1

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 (46) hide show
  1. package/esm2020/lib/_internal/billing.api.service.mjs +6 -2
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  3. package/esm2020/lib/_internal/enums/payment.enum.mjs +8 -1
  4. package/esm2020/lib/_internal/index.mjs +1 -2
  5. package/esm2020/lib/_internal/interfaces/balance.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/merchant.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/payment.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/product.interface.mjs +1 -1
  11. package/esm2020/lib/_internal/merchant.api.service.mjs +7 -2
  12. package/esm2020/lib/_internal/objects/balance.mjs +50 -1
  13. package/esm2020/lib/_internal/objects/billable-item.mjs +42 -1
  14. package/esm2020/lib/_internal/objects/index.mjs +5 -5
  15. package/esm2020/lib/_internal/objects/merchant.mjs +49 -6
  16. package/esm2020/lib/_internal/objects/payment.mjs +59 -1
  17. package/esm2020/lib/_internal/objects/product.mjs +10 -1
  18. package/esm2020/lib/_internal/payment.api.service.mjs +7 -2
  19. package/esm2020/lib/currency-conversion-rate.mjs +3 -0
  20. package/esm2020/lib/index.mjs +2 -1
  21. package/fesm2015/vendasta-billing.mjs +228 -7
  22. package/fesm2015/vendasta-billing.mjs.map +1 -1
  23. package/fesm2020/vendasta-billing.mjs +228 -7
  24. package/fesm2020/vendasta-billing.mjs.map +1 -1
  25. package/lib/_internal/billing.api.service.d.ts +3 -2
  26. package/lib/_internal/enums/index.d.ts +1 -1
  27. package/lib/_internal/enums/payment.enum.d.ts +6 -0
  28. package/lib/_internal/index.d.ts +0 -1
  29. package/lib/_internal/interfaces/balance.interface.d.ts +7 -0
  30. package/lib/_internal/interfaces/billable-item.interface.d.ts +8 -0
  31. package/lib/_internal/interfaces/index.d.ts +4 -4
  32. package/lib/_internal/interfaces/merchant.interface.d.ts +7 -1
  33. package/lib/_internal/interfaces/payment.interface.d.ts +9 -0
  34. package/lib/_internal/interfaces/product.interface.d.ts +3 -0
  35. package/lib/_internal/merchant.api.service.d.ts +3 -2
  36. package/lib/_internal/objects/balance.d.ts +13 -0
  37. package/lib/_internal/objects/billable-item.d.ts +11 -0
  38. package/lib/_internal/objects/index.d.ts +4 -4
  39. package/lib/_internal/objects/merchant.d.ts +19 -7
  40. package/lib/_internal/objects/payment.d.ts +15 -0
  41. package/lib/_internal/objects/product.d.ts +3 -0
  42. package/lib/_internal/payment.api.service.d.ts +3 -2
  43. package/lib/{_internal/currency-conversion-rate.d.ts → currency-conversion-rate.d.ts} +0 -0
  44. package/lib/index.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/esm2020/lib/_internal/currency-conversion-rate.mjs +0 -3
@@ -1,5 +1,5 @@
1
- import { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateMeteredComponentRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, DeleteBillableItemRequest, DeletePricingPlanProductRequest, ExpireBillableItemRequest, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GetBillableItemRequest, GetBillableItemResponse, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductRequest, GetMultiProductResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, ListBillableItemsRequest, ListBillableItemsResponse, ListContractsRequest, ListContractsResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsResponse, ResetContractPricingRequest, ReverseSubscriptionRequest, SetRenewalStartRequest, StartRevRecTemplateBackfillRequest, TickComponentUsageRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse } from './objects/';
2
- import { BillItemRequestInterface, BillMultipleItemsRequestInterface, CanBillItemRequestInterface, CanCreateSubscriptionsRequestInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateMeteredComponentRequestInterface, CreatePricingPlanProductRequestInterface, CreatePricingPlanRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, DeleteBillableItemRequestInterface, DeletePricingPlanProductRequestInterface, ExpireBillableItemRequestInterface, GenerateBillableItemsCSVRequestInterface, GetBillableItemRequestInterface, GetMultiContractsRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanRequestInterface, GetMultiProductPricingRequestInterface, GetMultiProductRequestInterface, GetMultiSubscriptionsRequestInterface, GetPricingPlanProductRequestInterface, GetProductSummariesTotalRequestInterface, GetPurchaseCostRequestInterface, ListBillableItemsRequestInterface, ListContractsRequestInterface, ListMerchantBillingReportsRequestInterface, ListPricingPlanProductsRequestInterface, ListProductSummariesRequestInterface, ListProductsRequestInterface, ResetContractPricingRequestInterface, ReverseSubscriptionRequestInterface, SetRenewalStartRequestInterface, StartRevRecTemplateBackfillRequestInterface, TickComponentUsageRequestInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanRequestInterface } from './interfaces/';
1
+ import { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsResponse, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, CreateMeteredComponentRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateUsageRequest, DeleteBillableItemRequest, DeletePricingPlanProductRequest, ExpireBillableItemRequest, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GetBillableItemRequest, GetBillableItemResponse, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductRequest, GetMultiProductResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, ListBillableItemsRequest, ListBillableItemsResponse, ListContractsRequest, ListContractsResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsResponse, ResetContractPricingRequest, ReverseSubscriptionRequest, SetRenewalStartRequest, StartRevRecTemplateBackfillRequest, TickComponentUsageRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse } from './objects/';
2
+ import { BillItemRequestInterface, BillMultipleItemsRequestInterface, CanBillItemRequestInterface, CanCreateSubscriptionsRequestInterface, ChangeCustomUnitPriceRequestInterface, ChangeFrequencyRequestInterface, ChangeRenewalDateRequestInterface, CreateMeteredComponentRequestInterface, CreatePricingPlanProductRequestInterface, CreatePricingPlanRequestInterface, CreateSubscriptionRequestInterface, CreateSubscriptionsRequestInterface, CreateUsageRequestInterface, DeleteBillableItemRequestInterface, DeletePricingPlanProductRequestInterface, ExpireBillableItemRequestInterface, GenerateBillableItemsCSVRequestInterface, GetBillableItemRequestInterface, GetMultiContractsRequestInterface, GetMultiPricingPlanProductRequestInterface, GetMultiPricingPlanRequestInterface, GetMultiProductPricingRequestInterface, GetMultiProductRequestInterface, GetMultiSubscriptionsRequestInterface, GetPricingPlanProductRequestInterface, GetProductSummariesTotalRequestInterface, GetPurchaseCostRequestInterface, ListBillableItemsRequestInterface, ListContractsRequestInterface, ListMerchantBillingReportsRequestInterface, ListPricingPlanProductsRequestInterface, ListProductSummariesRequestInterface, ListProductsRequestInterface, ResetContractPricingRequestInterface, ReverseSubscriptionRequestInterface, SetRenewalStartRequestInterface, StartRevRecTemplateBackfillRequestInterface, TickComponentUsageRequestInterface, UpdatePricingPlanProductRequestInterface, UpdatePricingPlanRequestInterface } 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';
@@ -39,6 +39,7 @@ export declare class BillingApiService {
39
39
  getMultiProductPricing(r: GetMultiProductPricingRequest | GetMultiProductPricingRequestInterface): Observable<GetMultiProductPricingResponse>;
40
40
  tickComponentUsage(r: TickComponentUsageRequest | TickComponentUsageRequestInterface): Observable<HttpResponse<null>>;
41
41
  createMeteredComponent(r: CreateMeteredComponentRequest | CreateMeteredComponentRequestInterface): Observable<HttpResponse<null>>;
42
+ createUsage(r: CreateUsageRequest | CreateUsageRequestInterface): Observable<HttpResponse<null>>;
42
43
  listContracts(r: ListContractsRequest | ListContractsRequestInterface): Observable<ListContractsResponse>;
43
44
  getMultiContract(r: GetMultiContractsRequest | GetMultiContractsRequestInterface): Observable<GetMultiContractsResponse>;
44
45
  listProducts(r: ListProductsRequest | ListProductsRequestInterface): Observable<ListProductsResponse>;
@@ -10,7 +10,7 @@ export { MerchantType, SearchMerchantsRequestSortBy, } from './merchant.enum';
10
10
  export { Month, } from './month.enum';
11
11
  export { MerchantReportStatus, } from './merchant-report.enum';
12
12
  export { CardType, } from './card.enum';
13
- export { DisputeStatus, PaymentAllocationType, PaymentSource, PaymentStatus, RetailPaymentReferenceType, } from './payment.enum';
13
+ export { DisputeStatus, PaymentAllocationType, PaymentSource, PaymentStatus, RetailPaymentReferenceType, RetailRefundReason, } from './payment.enum';
14
14
  export { PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, } from './payment-card.enum';
15
15
  export { FeeAmountType, FeeType, } from './fee.enum';
16
16
  export { BillingStrategy, ProductPricingType, } from './pricing-plan.enum';
@@ -31,3 +31,9 @@ export declare enum RetailPaymentReferenceType {
31
31
  RETAIL_PAYMENT_REFERENCE_TYPE_INVOICE = 1,
32
32
  RETAIL_PAYMENT_REFERENCE_TYPE_SALES_ORDER = 2
33
33
  }
34
+ export declare enum RetailRefundReason {
35
+ RETAIL_REFUND_REASON_UNSET = 0,
36
+ RETAIL_REFUND_REASON_DUPLICATE = 1,
37
+ RETAIL_REFUND_REASON_FRAUDULENT = 2,
38
+ RETAIL_REFUND_REASON_REQUESTED_BY_CUSTOMER = 3
39
+ }
@@ -24,4 +24,3 @@ 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,6 +1,13 @@
1
+ export interface AccountBalanceInterface {
2
+ available?: BalanceAmountInterface[];
3
+ }
1
4
  export interface BalanceInterface {
2
5
  currencyCode?: string;
3
6
  amount?: number;
4
7
  futurePayouts?: number;
5
8
  inTransit?: number;
6
9
  }
10
+ export interface BalanceAmountInterface {
11
+ currencyCode?: string;
12
+ amount?: number;
13
+ }
@@ -38,6 +38,14 @@ export interface CanBillItemRequestInterface {
38
38
  merchantId?: string;
39
39
  sku?: string;
40
40
  }
41
+ export interface CreateUsageRequestInterface {
42
+ merchantId?: string;
43
+ customerId?: string;
44
+ orderId?: string;
45
+ sku?: string;
46
+ quantity?: number;
47
+ usageDate?: Date;
48
+ }
41
49
  export interface BillableItemCustomerAddressInterface {
42
50
  address?: string;
43
51
  city?: string;
@@ -1,6 +1,6 @@
1
1
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './common.interface';
2
2
  export {} from './frequency.interface';
3
- export { BillItemRequestInterface, BillMultipleItemsRequestInterface, BillMultipleItemsResponseInterface, BillableItemInterface, CanBillItemRequestInterface, BillableItemCustomerAddressInterface, DeleteBillableItemRequestInterface, ExpireBillableItemRequestInterface, ListBillableItemsRequestFiltersInterface, GetBillableItemRequestInterface, GetBillableItemResponseInterface, GetMultiSubscriptionsRequestInterface, GetMultiSubscriptionsResponseInterface, ItemInterface, GetMultiSubscriptionsRequestKeyInterface, ListBillableItemsRequestInterface, ListBillableItemsResponseInterface, } from './billable-item.interface';
3
+ export { BillItemRequestInterface, BillMultipleItemsRequestInterface, BillMultipleItemsResponseInterface, BillableItemInterface, CanBillItemRequestInterface, CreateUsageRequestInterface, BillableItemCustomerAddressInterface, DeleteBillableItemRequestInterface, ExpireBillableItemRequestInterface, ListBillableItemsRequestFiltersInterface, GetBillableItemRequestInterface, GetBillableItemResponseInterface, GetMultiSubscriptionsRequestInterface, GetMultiSubscriptionsResponseInterface, ItemInterface, GetMultiSubscriptionsRequestKeyInterface, ListBillableItemsRequestInterface, ListBillableItemsResponseInterface, } from './billable-item.interface';
4
4
  export { AppliedDiscountInterface, } from './applied-discount.interface';
5
5
  export { BundleInterface, BundleItemInterface, BundlePricingInterface, GetMultiBundleResponseBundlesEntryInterface, ListBundlesRequestFiltersInterface, GetMultiBundleRequestInterface, GetMultiBundleResponseInterface, ListBundlesRequestInterface, ListBundlesResponseInterface, BundleItemPriceInterface, BundlePricingPriceAndFrequencyInterface, UpsertBundleRequestInterface, } from './bundle.interface';
6
6
  export { CommitmentInterface, } from './commitment.interface';
@@ -15,16 +15,16 @@ export { FieldMaskInterface, } from './field-mask.interface';
15
15
  export { ArchiveTaxRequestInterface, CalculateTaxRequestInterface, CalculateTaxResponseInterface, CreateTaxRequestInterface, ListTaxRequestFiltersInterface, GetMultiTaxRequestInterface, GetMultiTaxResponseInterface, ListTaxRequestInterface, ListTaxResponseInterface, TaxRateInterface, UpdateTaxRequestInterface, } from './tax-rate.interface';
16
16
  export { AppliedBundleInterface, AppliedBundleItemInterface, } from './applied-bundle.interface';
17
17
  export { AddBundleRequestInterface, AddBundleResponseInterface, AddLineItemRequestInterface, AddLineItemResponseInterface, ChargeInvoiceRequestInterface, CreateInvoiceRequestInterface, CreateInvoiceResponseInterface, CreatePaymentLinkRequestInterface, CreatePaymentLinkResponseInterface, InvoiceCustomerAddressInterface, ListInvoicesRequestFiltersDateFilterInterface, DeleteInvoiceRequestInterface, DeleteLineItemRequestInterface, DeleteLineItemResponseInterface, DuplicateInvoiceRequestInterface, DuplicateInvoiceResponseInterface, ListInvoicesRequestFiltersInterface, GetInvoiceRequestInterface, GetInvoiceResponseInterface, InvoiceInterface, InvoiceItemInterface, ListInvoicesRequestInterface, ListInvoicesResponseInterface, PayInvoiceRequestInterface, PaymentLinkItemInterface, RemoveBundleRequestInterface, RemoveBundleResponseInterface, SendInvoiceRequestInterface, UpdateBundleRequestInterface, UpdateBundleResponseInterface, UpdateDefaultTaxRatesRequestInterface, UpdateDefaultTaxRatesResponseInterface, UpdateInvoiceRequestInterface, UpdateInvoiceResponseInterface, UpdateLineItemRequestInterface, UpdateLineItemResponseInterface, VoidInvoiceRequestInterface, } from './invoice.interface';
18
- export { BalanceInterface, } from './balance.interface';
18
+ export { AccountBalanceInterface, BalanceInterface, BalanceAmountInterface, } from './balance.interface';
19
19
  export { DateRangeInterface, } from './date-range.interface';
20
20
  export { ListPayoutsRequestFiltersInterface, ListPayoutsRequestInterface, ListPayoutsResponseInterface, PayoutInterface, ReconcilePayoutRequestInterface, ReconcilePayoutResponseInterface, RetailPayoutInterface, } from './payout.interface';
21
21
  export {} from './sort-direction.interface';
22
- export { ChargeSalesInvoiceRequestInterface, ConnectStripeAccountRequestInterface, ConnectStripeAccountResponseInterface, CreateMerchantRequestInterface, DefaultCustomerConfigurationInterface, GetMerchantRequestInterface, GetMerchantResponseInterface, GetMultiRetailConfigurationsRequestInterface, GetMultiRetailConfigurationsResponseInterface, GetOutstandingBalanceRequestInterface, GetOutstandingBalanceResponseInterface, GetPayoutSummaryRequestInterface, GetPayoutSummaryResponseInterface, GetRetailBalanceRequestInterface, GetRetailBalanceResponseInterface, GetRetailPayoutRequestInterface, GetRetailPayoutResponseInterface, UpdateMerchantRequestIncludeInFinancialRecordsInterface, CreateMerchantRequestIncludeInFinancialRecordsInterface, ListRetailPayoutsRequestInterface, ListRetailPayoutsResponseInterface, MerchantInterface, RetailConfigurationInterface, GetMultiRetailConfigurationsResponseRetailConfigurationsEntryInterface, SearchMerchantsRequestInterface, SearchMerchantsResponseInterface, SetAutoChargeInvoicesRequestInterface, SetAutoPostInvoicesRequestInterface, SetDefaultPaymentCardRequestInterface, SetHasAlternativePaymentMethodRequestInterface, SetIncludeInFinancialRecordsRequestInterface, UpdateMerchantRequestInterface, UpsertDefaultRetailCustomerConfigurationRequestInterface, UpsertRetailConfigurationRequestInterface, } from './merchant.interface';
22
+ export { ChargeSalesInvoiceRequestInterface, ConnectStripeAccountRequestInterface, ConnectStripeAccountResponseInterface, CreateMerchantRequestInterface, DefaultCustomerConfigurationInterface, GetMerchantRequestInterface, GetMerchantResponseInterface, GetMultiRetailConfigurationsRequestInterface, GetMultiRetailConfigurationsResponseInterface, GetOutstandingBalanceRequestInterface, GetOutstandingBalanceResponseInterface, GetPayoutSummaryRequestInterface, GetPayoutSummaryResponseInterface, GetRetailAccountBalanceRequestInterface, GetRetailAccountBalanceResponseInterface, GetRetailBalanceRequestInterface, GetRetailBalanceResponseInterface, GetRetailPayoutRequestInterface, GetRetailPayoutResponseInterface, CreateMerchantRequestIncludeInFinancialRecordsInterface, UpdateMerchantRequestIncludeInFinancialRecordsInterface, ListRetailPayoutsRequestInterface, ListRetailPayoutsResponseInterface, MerchantInterface, RetailConfigurationInterface, GetMultiRetailConfigurationsResponseRetailConfigurationsEntryInterface, SearchMerchantsRequestInterface, SearchMerchantsResponseInterface, SetAutoChargeInvoicesRequestInterface, SetAutoPostInvoicesRequestInterface, SetDefaultPaymentCardRequestInterface, SetHasAlternativePaymentMethodRequestInterface, SetIncludeInFinancialRecordsRequestInterface, UpdateMerchantRequestInterface, UpsertDefaultRetailCustomerConfigurationRequestInterface, UpsertRetailConfigurationRequestInterface, } from './merchant.interface';
23
23
  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, 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';
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, RefundRetailPaymentRequestInterface, RefundRetailPaymentResponseInterface, 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 { AppliedFeeInterface, FeeInterface, } from './fee.interface';
30
30
  export { ComponentPricingInterface, CreatePricingPlanRequestInterface, CreatePricingPlanResponseInterface, GetMultiPricingPlanRequestInterface, GetMultiPricingPlanResponseInterface, PricingPlanInterface, PricingPlanProductPricingInterface, ProductPricingRuleInterface, UpdatePricingPlanRequestInterface, UpdatePricingPlanResponseInterface, } from './pricing-plan.interface';
@@ -1,4 +1,4 @@
1
- import { BalanceInterface } from './balance.interface';
1
+ import { BalanceInterface, AccountBalanceInterface } from './balance.interface';
2
2
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './common.interface';
3
3
  import { RetailPayoutInterface } from './payout.interface';
4
4
  import * as e from '../enums';
@@ -69,6 +69,12 @@ export interface GetPayoutSummaryResponseInterface {
69
69
  payoutInterval?: string;
70
70
  payoutDelayDays?: number;
71
71
  }
72
+ export interface GetRetailAccountBalanceRequestInterface {
73
+ merchantId?: string;
74
+ }
75
+ export interface GetRetailAccountBalanceResponseInterface {
76
+ balance?: AccountBalanceInterface;
77
+ }
72
78
  export interface GetRetailBalanceRequestInterface {
73
79
  merchantId?: string;
74
80
  }
@@ -166,6 +166,15 @@ export interface PrepareRetailPaymentResponseInterface {
166
166
  stripeClientSecret?: string;
167
167
  intentId?: string;
168
168
  }
169
+ export interface RefundRetailPaymentRequestInterface {
170
+ merchantId?: string;
171
+ paymentId?: string;
172
+ amount?: number;
173
+ reason?: e.RetailRefundReason;
174
+ }
175
+ export interface RefundRetailPaymentResponseInterface {
176
+ payment?: RetailPaymentInterface;
177
+ }
169
178
  export interface RetailPaymentInterface {
170
179
  merchantId?: string;
171
180
  created?: Date;
@@ -7,6 +7,7 @@ export interface CreateProductRequestInterface {
7
7
  name?: string;
8
8
  reportingCode?: string;
9
9
  productType?: e.ProductType;
10
+ metered?: boolean;
10
11
  }
11
12
  export interface DeleteProductRequestInterface {
12
13
  sku?: string;
@@ -42,6 +43,7 @@ export interface ProductInterface {
42
43
  hasPricingOverride?: boolean;
43
44
  hasDiscount?: boolean;
44
45
  productType?: e.ProductType;
46
+ metered?: boolean;
45
47
  }
46
48
  export interface GetMultiProductResponseProductsEntryInterface {
47
49
  key?: string;
@@ -52,4 +54,5 @@ export interface UpdateProductRequestInterface {
52
54
  name?: string;
53
55
  reportingCode?: string;
54
56
  productType?: e.ProductType;
57
+ metered?: boolean;
55
58
  }
@@ -1,5 +1,5 @@
1
- import { ChargeSalesInvoiceRequest, CreateMerchantRequest, CreateMerchantServicesReportRun, CreatePaymentCardRequest, CreateStripeExternalAccountRequest, DeleteBankAccountRequest, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetStatisticsRequest, GetStatisticsResponse, ListBankAccountsRequest, ListBankAccountsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, MerchantServicesReportRun, SearchMerchantsRequest, SearchMerchantsResponse, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, UpdateMerchantRequest, UpdatePaymentCardRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest } from './objects/';
2
- import { ChargeSalesInvoiceRequestInterface, CreateMerchantRequestInterface, CreateMerchantServicesReportRunInterface, CreatePaymentCardRequestInterface, CreateStripeExternalAccountRequestInterface, DeleteBankAccountRequestInterface, GetMerchantRequestInterface, GetMerchantServicesReportRunInterface, GetMultiRetailConfigurationsRequestInterface, GetOutstandingBalanceRequestInterface, GetPayoutSummaryRequestInterface, GetRetailBalanceRequestInterface, GetRetailPayoutRequestInterface, GetStatisticsRequestInterface, ListBankAccountsRequestInterface, ListPaymentCardsRequestInterface, ListRetailPayoutsRequestInterface, SearchMerchantsRequestInterface, SendSalesInvoiceEmailRequestInterface, SendSalesInvoiceReceiptEmailRequestInterface, SetAutoChargeInvoicesRequestInterface, SetAutoPostInvoicesRequestInterface, SetDefaultBankAccountRequestInterface, SetDefaultPaymentCardRequestInterface, SetHasAlternativePaymentMethodRequestInterface, SetIncludeInFinancialRecordsRequestInterface, UpdateMerchantRequestInterface, UpdatePaymentCardRequestInterface, UpsertDefaultRetailCustomerConfigurationRequestInterface, UpsertRetailConfigurationRequestInterface } from './interfaces/';
1
+ import { ChargeSalesInvoiceRequest, CreateMerchantRequest, CreateMerchantServicesReportRun, CreatePaymentCardRequest, CreateStripeExternalAccountRequest, DeleteBankAccountRequest, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetStatisticsRequest, GetStatisticsResponse, ListBankAccountsRequest, ListBankAccountsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, MerchantServicesReportRun, SearchMerchantsRequest, SearchMerchantsResponse, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, UpdateMerchantRequest, UpdatePaymentCardRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest } from './objects/';
2
+ import { ChargeSalesInvoiceRequestInterface, CreateMerchantRequestInterface, CreateMerchantServicesReportRunInterface, CreatePaymentCardRequestInterface, CreateStripeExternalAccountRequestInterface, DeleteBankAccountRequestInterface, GetMerchantRequestInterface, GetMerchantServicesReportRunInterface, GetMultiRetailConfigurationsRequestInterface, GetOutstandingBalanceRequestInterface, GetPayoutSummaryRequestInterface, GetRetailAccountBalanceRequestInterface, GetRetailBalanceRequestInterface, GetRetailPayoutRequestInterface, GetStatisticsRequestInterface, ListBankAccountsRequestInterface, ListPaymentCardsRequestInterface, ListRetailPayoutsRequestInterface, SearchMerchantsRequestInterface, SendSalesInvoiceEmailRequestInterface, SendSalesInvoiceReceiptEmailRequestInterface, SetAutoChargeInvoicesRequestInterface, SetAutoPostInvoicesRequestInterface, SetDefaultBankAccountRequestInterface, SetDefaultPaymentCardRequestInterface, SetHasAlternativePaymentMethodRequestInterface, SetIncludeInFinancialRecordsRequestInterface, UpdateMerchantRequestInterface, UpdatePaymentCardRequestInterface, UpsertDefaultRetailCustomerConfigurationRequestInterface, UpsertRetailConfigurationRequestInterface } 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';
@@ -40,6 +40,7 @@ export declare class MerchantApiService {
40
40
  getRetailPayout(r: GetRetailPayoutRequest | GetRetailPayoutRequestInterface): Observable<GetRetailPayoutResponse>;
41
41
  createReportRun(r: CreateMerchantServicesReportRun | CreateMerchantServicesReportRunInterface): Observable<MerchantServicesReportRun>;
42
42
  getReportRun(r: GetMerchantServicesReportRun | GetMerchantServicesReportRunInterface): Observable<MerchantServicesReportRun>;
43
+ getRetailAccountBalance(r: GetRetailAccountBalanceRequest | GetRetailAccountBalanceRequestInterface): Observable<GetRetailAccountBalanceResponse>;
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<MerchantApiService, never>;
44
45
  static ɵprov: i0.ɵɵInjectableDeclaration<MerchantApiService>;
45
46
  }
@@ -1,5 +1,11 @@
1
1
  import * as i from '../interfaces';
2
2
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class AccountBalance implements i.AccountBalanceInterface {
4
+ available: BalanceAmount[];
5
+ static fromProto(proto: any): AccountBalance;
6
+ constructor(kwargs?: i.AccountBalanceInterface);
7
+ toApiJson(): object;
8
+ }
3
9
  export declare class Balance implements i.BalanceInterface {
4
10
  currencyCode: string;
5
11
  amount: number;
@@ -9,3 +15,10 @@ export declare class Balance implements i.BalanceInterface {
9
15
  constructor(kwargs?: i.BalanceInterface);
10
16
  toApiJson(): object;
11
17
  }
18
+ export declare class BalanceAmount implements i.BalanceAmountInterface {
19
+ currencyCode: string;
20
+ amount: number;
21
+ static fromProto(proto: any): BalanceAmount;
22
+ constructor(kwargs?: i.BalanceAmountInterface);
23
+ toApiJson(): object;
24
+ }
@@ -55,6 +55,17 @@ export declare class CanBillItemRequest implements i.CanBillItemRequestInterface
55
55
  constructor(kwargs?: i.CanBillItemRequestInterface);
56
56
  toApiJson(): object;
57
57
  }
58
+ export declare class CreateUsageRequest implements i.CreateUsageRequestInterface {
59
+ merchantId: string;
60
+ customerId: string;
61
+ orderId: string;
62
+ sku: string;
63
+ quantity: number;
64
+ usageDate: Date;
65
+ static fromProto(proto: any): CreateUsageRequest;
66
+ constructor(kwargs?: i.CreateUsageRequestInterface);
67
+ toApiJson(): object;
68
+ }
58
69
  export declare class BillableItemCustomerAddress implements i.BillableItemCustomerAddressInterface {
59
70
  address: string;
60
71
  city: string;
@@ -1,6 +1,6 @@
1
1
  export { PagedRequestOptions, PagedResponseMetadata, } from './common';
2
2
  export {} from './frequency';
3
- export { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, CanBillItemRequest, BillableItemCustomerAddress, DeleteBillableItemRequest, ExpireBillableItemRequest, ListBillableItemsRequestFilters, GetBillableItemRequest, GetBillableItemResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, Item, GetMultiSubscriptionsRequestKey, ListBillableItemsRequest, ListBillableItemsResponse, } from './billable-item';
3
+ export { BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, CanBillItemRequest, CreateUsageRequest, BillableItemCustomerAddress, DeleteBillableItemRequest, ExpireBillableItemRequest, ListBillableItemsRequestFilters, GetBillableItemRequest, GetBillableItemResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsResponse, Item, GetMultiSubscriptionsRequestKey, ListBillableItemsRequest, ListBillableItemsResponse, } from './billable-item';
4
4
  export { AppliedDiscount, } from './applied-discount';
5
5
  export { Bundle, BundleItem, BundlePricing, GetMultiBundleResponseBundlesEntry, ListBundlesRequestFilters, GetMultiBundleRequest, GetMultiBundleResponse, ListBundlesRequest, ListBundlesResponse, BundleItemPrice, BundlePricingPriceAndFrequency, UpsertBundleRequest, } from './bundle';
6
6
  export { Commitment, } from './commitment';
@@ -15,16 +15,16 @@ export { FieldMask, } from './field-mask';
15
15
  export { ArchiveTaxRequest, CalculateTaxRequest, CalculateTaxResponse, CreateTaxRequest, ListTaxRequestFilters, GetMultiTaxRequest, GetMultiTaxResponse, ListTaxRequest, ListTaxResponse, TaxRate, UpdateTaxRequest, } from './tax-rate';
16
16
  export { AppliedBundle, AppliedBundleItem, } from './applied-bundle';
17
17
  export { AddBundleRequest, AddBundleResponse, AddLineItemRequest, AddLineItemResponse, ChargeInvoiceRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreatePaymentLinkRequest, CreatePaymentLinkResponse, InvoiceCustomerAddress, ListInvoicesRequestFiltersDateFilter, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ListInvoicesRequestFilters, GetInvoiceRequest, GetInvoiceResponse, Invoice, InvoiceItem, ListInvoicesRequest, ListInvoicesResponse, PayInvoiceRequest, PaymentLinkItem, RemoveBundleRequest, RemoveBundleResponse, SendInvoiceRequest, UpdateBundleRequest, UpdateBundleResponse, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, VoidInvoiceRequest, } from './invoice';
18
- export { Balance, } from './balance';
18
+ export { AccountBalance, Balance, BalanceAmount, } from './balance';
19
19
  export { DateRange, } from './date-range';
20
20
  export { ListPayoutsRequestFilters, ListPayoutsRequest, ListPayoutsResponse, Payout, ReconcilePayoutRequest, ReconcilePayoutResponse, RetailPayout, } from './payout';
21
21
  export {} from './sort-direction';
22
- export { ChargeSalesInvoiceRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, CreateMerchantRequest, DefaultCustomerConfiguration, GetMerchantRequest, GetMerchantResponse, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, CreateMerchantRequestIncludeInFinancialRecords, UpdateMerchantRequestIncludeInFinancialRecords, ListRetailPayoutsRequest, ListRetailPayoutsResponse, Merchant, RetailConfiguration, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, SearchMerchantsRequest, SearchMerchantsResponse, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultPaymentCardRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, UpdateMerchantRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, } from './merchant';
22
+ export { ChargeSalesInvoiceRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, CreateMerchantRequest, DefaultCustomerConfiguration, GetMerchantRequest, GetMerchantResponse, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, CreateMerchantRequestIncludeInFinancialRecords, UpdateMerchantRequestIncludeInFinancialRecords, ListRetailPayoutsRequest, ListRetailPayoutsResponse, Merchant, RetailConfiguration, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, SearchMerchantsRequest, SearchMerchantsResponse, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultPaymentCardRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, UpdateMerchantRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, } from './merchant';
23
23
  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, 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';
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, RefundRetailPaymentRequest, RefundRetailPaymentResponse, 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 { AppliedFee, Fee, } from './fee';
30
30
  export { ComponentPricing, CreatePricingPlanRequest, CreatePricingPlanResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, PricingPlan, PricingPlanProductPricing, ProductPricingRule, UpdatePricingPlanRequest, UpdatePricingPlanResponse, } from './pricing-plan';
@@ -1,5 +1,5 @@
1
1
  import * as i from '../interfaces';
2
- import { Balance } from './balance';
2
+ import { Balance, AccountBalance } from './balance';
3
3
  import { PagedRequestOptions, PagedResponseMetadata } from './common';
4
4
  import { RetailPayout } from './payout';
5
5
  import * as e from '../enums';
@@ -110,6 +110,18 @@ export declare class GetPayoutSummaryResponse implements i.GetPayoutSummaryRespo
110
110
  constructor(kwargs?: i.GetPayoutSummaryResponseInterface);
111
111
  toApiJson(): object;
112
112
  }
113
+ export declare class GetRetailAccountBalanceRequest implements i.GetRetailAccountBalanceRequestInterface {
114
+ merchantId: string;
115
+ static fromProto(proto: any): GetRetailAccountBalanceRequest;
116
+ constructor(kwargs?: i.GetRetailAccountBalanceRequestInterface);
117
+ toApiJson(): object;
118
+ }
119
+ export declare class GetRetailAccountBalanceResponse implements i.GetRetailAccountBalanceResponseInterface {
120
+ balance: AccountBalance;
121
+ static fromProto(proto: any): GetRetailAccountBalanceResponse;
122
+ constructor(kwargs?: i.GetRetailAccountBalanceResponseInterface);
123
+ toApiJson(): object;
124
+ }
113
125
  export declare class GetRetailBalanceRequest implements i.GetRetailBalanceRequestInterface {
114
126
  merchantId: string;
115
127
  static fromProto(proto: any): GetRetailBalanceRequest;
@@ -135,18 +147,18 @@ export declare class GetRetailPayoutResponse implements i.GetRetailPayoutRespons
135
147
  constructor(kwargs?: i.GetRetailPayoutResponseInterface);
136
148
  toApiJson(): object;
137
149
  }
138
- export declare class UpdateMerchantRequestIncludeInFinancialRecords implements i.UpdateMerchantRequestIncludeInFinancialRecordsInterface {
139
- includeInFinancialRecords: boolean;
140
- static fromProto(proto: any): UpdateMerchantRequestIncludeInFinancialRecords;
141
- constructor(kwargs?: i.UpdateMerchantRequestIncludeInFinancialRecordsInterface);
142
- toApiJson(): object;
143
- }
144
150
  export declare class CreateMerchantRequestIncludeInFinancialRecords implements i.CreateMerchantRequestIncludeInFinancialRecordsInterface {
145
151
  includeInFinancialRecords: boolean;
146
152
  static fromProto(proto: any): CreateMerchantRequestIncludeInFinancialRecords;
147
153
  constructor(kwargs?: i.CreateMerchantRequestIncludeInFinancialRecordsInterface);
148
154
  toApiJson(): object;
149
155
  }
156
+ export declare class UpdateMerchantRequestIncludeInFinancialRecords implements i.UpdateMerchantRequestIncludeInFinancialRecordsInterface {
157
+ includeInFinancialRecords: boolean;
158
+ static fromProto(proto: any): UpdateMerchantRequestIncludeInFinancialRecords;
159
+ constructor(kwargs?: i.UpdateMerchantRequestIncludeInFinancialRecordsInterface);
160
+ toApiJson(): object;
161
+ }
150
162
  export declare class ListRetailPayoutsRequest implements i.ListRetailPayoutsRequestInterface {
151
163
  merchantId: string;
152
164
  pagingOptions: PagedRequestOptions;
@@ -261,6 +261,21 @@ export declare class PrepareRetailPaymentResponse implements i.PrepareRetailPaym
261
261
  constructor(kwargs?: i.PrepareRetailPaymentResponseInterface);
262
262
  toApiJson(): object;
263
263
  }
264
+ export declare class RefundRetailPaymentRequest implements i.RefundRetailPaymentRequestInterface {
265
+ merchantId: string;
266
+ paymentId: string;
267
+ amount: number;
268
+ reason: e.RetailRefundReason;
269
+ static fromProto(proto: any): RefundRetailPaymentRequest;
270
+ constructor(kwargs?: i.RefundRetailPaymentRequestInterface);
271
+ toApiJson(): object;
272
+ }
273
+ export declare class RefundRetailPaymentResponse implements i.RefundRetailPaymentResponseInterface {
274
+ payment: RetailPayment;
275
+ static fromProto(proto: any): RefundRetailPaymentResponse;
276
+ constructor(kwargs?: i.RefundRetailPaymentResponseInterface);
277
+ toApiJson(): object;
278
+ }
264
279
  export declare class RetailPayment implements i.RetailPaymentInterface {
265
280
  merchantId: string;
266
281
  created: Date;
@@ -9,6 +9,7 @@ export declare class CreateProductRequest implements i.CreateProductRequestInter
9
9
  name: string;
10
10
  reportingCode: string;
11
11
  productType: e.ProductType;
12
+ metered: boolean;
12
13
  static fromProto(proto: any): CreateProductRequest;
13
14
  constructor(kwargs?: i.CreateProductRequestInterface);
14
15
  toApiJson(): object;
@@ -65,6 +66,7 @@ export declare class Product implements i.ProductInterface {
65
66
  hasPricingOverride: boolean;
66
67
  hasDiscount: boolean;
67
68
  productType: e.ProductType;
69
+ metered: boolean;
68
70
  static fromProto(proto: any): Product;
69
71
  constructor(kwargs?: i.ProductInterface);
70
72
  toApiJson(): object;
@@ -81,6 +83,7 @@ export declare class UpdateProductRequest implements i.UpdateProductRequestInter
81
83
  name: string;
82
84
  reportingCode: string;
83
85
  productType: e.ProductType;
86
+ metered: boolean;
84
87
  static fromProto(proto: any): UpdateProductRequest;
85
88
  constructor(kwargs?: i.UpdateProductRequestInterface);
86
89
  toApiJson(): object;
@@ -1,5 +1,5 @@
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/';
1
+ import { CloseRetailDisputeRequest, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, ListPaymentRequest, ListPaymentResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsResponse, PrepareRetailPaymentRequest, PrepareRetailPaymentResponse, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailStatusRequest, RetailStatusResponse, SubmitEvidenceRequest, UpdateRetailPaymentProviderRequest } from './objects/';
2
+ import { CloseRetailDisputeRequestInterface, ConfigureRetailPaymentProviderRequestInterface, ConfirmRetailPaymentRequestInterface, GetRetailDisputeRequestInterface, GetRetailPaymentProviderRequestInterface, GetRetailPaymentRequestInterface, GetWholesaleProviderPublicKeyRequestInterface, ListPaymentRequestInterface, ListRetailDisputesRequestInterface, ListRetailPaymentsRequestInterface, PrepareRetailPaymentRequestInterface, RefundRetailPaymentRequestInterface, 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';
@@ -25,6 +25,7 @@ export declare class PaymentApiService {
25
25
  getRetailProvider(r: GetRetailPaymentProviderRequest | GetRetailPaymentProviderRequestInterface): Observable<GetRetailPaymentProviderResponse>;
26
26
  submitEvidence(r: SubmitEvidenceRequest | SubmitEvidenceRequestInterface): Observable<HttpResponse<null>>;
27
27
  getWholesaleProviderPublicKey(r: GetWholesaleProviderPublicKeyRequest | GetWholesaleProviderPublicKeyRequestInterface): Observable<GetWholesaleProviderPublicKeyResponse>;
28
+ refundRetail(r: RefundRetailPaymentRequest | RefundRetailPaymentRequestInterface): Observable<RefundRetailPaymentResponse>;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<PaymentApiService, never>;
29
30
  static ɵprov: i0.ɵɵInjectableDeclaration<PaymentApiService>;
30
31
  }
package/lib/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './_internal';
2
2
  export * from './_generated';
3
+ export { usdConversionRate } from './currency-conversion-rate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/billing",
3
- "version": "10.3.0",
3
+ "version": "10.4.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.1",
6
6
  "@angular/core": "^14.0.1"
@@ -1,3 +0,0 @@
1
- // Hardcoded conversion rate of 1.4 for our currently supported currencies (CAD and AUD)
2
- export const usdConversionRate = 1.4;
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3ktY29udmVyc2lvbi1yYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vYmlsbGluZ19zZGsvc3JjL2xpYi9faW50ZXJuYWwvY3VycmVuY3ktY29udmVyc2lvbi1yYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLHdGQUF3RjtBQUN4RixNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBRyxHQUFHLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcbi8vIEhhcmRjb2RlZCBjb252ZXJzaW9uIHJhdGUgb2YgMS40IGZvciBvdXIgY3VycmVudGx5IHN1cHBvcnRlZCBjdXJyZW5jaWVzIChDQUQgYW5kIEFVRClcbmV4cG9ydCBjb25zdCB1c2RDb252ZXJzaW9uUmF0ZSA9IDEuNDtcbiJdfQ==