public class InvoiceResource extends JaxRsResourceBase
accountUserApi, auditUserApi, catalogName, clock, context, customFieldUserApi, DATE_TIME_FORMATTER, LOCAL_DATE_FORMATTER, mapper, paymentApi, tagUserApi, uriBuilderACCOUNTS, ACCOUNTS_PATH, ADMIN, ADMIN_PATH, ALL_TAGS, ANALYTICS, ANALYTICS_PATH, ANYTHING_PATTERN, API_POSTFIX, API_PREFIX, API_VERSION, AUTHORIZATION, BLOCK, BUNDLES, BUNDLES_PATH, CAPTURE, CATALOG, CATALOG_PATH, CBA_REBALANCING, CHARGEBACKS, CHARGEBACKS_PATH, CHARGES, CHARGES_PATH, COMBO, CREDITS, CREDITS_PATH, CUSTOM_FIELDS, CUSTOM_FIELDS_PATH, DRY_RUN, EMAIL_NOTIFICATIONS, EMAILS, ENTITLEMENTS, ENTITLEMENTS_PATH, EXPORT, EXPORT_PATH, FORM, HDR_API_KEY, HDR_API_SECRET, HDR_COMMENT, HDR_CREATED_BY, HDR_PAGINATION_CURRENT_OFFSET, HDR_PAGINATION_MAX_NB_RECORDS, HDR_PAGINATION_NEXT_OFFSET, HDR_PAGINATION_NEXT_PAGE_URI, HDR_PAGINATION_TOTAL_NB_RECORDS, HDR_REASON, HOSTED, INVOICE_CATALOG_TRANSLATION, INVOICE_MP_TEMPLATE, INVOICE_PAYMENTS, INVOICE_PAYMENTS_PATH, INVOICE_TEMPLATE, INVOICE_TRANSLATION, INVOICES, INVOICES_PATH, NODES_INFO, NODES_INFO_PATH, NOTIFICATION, NUMBER_PATTERN, OVERDUE, OVERDUE_PATH, PAGINATION, PAUSE, PAYMENT_GATEWAYS, PAYMENT_GATEWAYS_PATH, PAYMENT_METHODS, PAYMENT_METHODS_DEFAULT_PATH_POSTFIX, PAYMENT_METHODS_PATH, PAYMENT_TRANSACTIONS, PAYMENT_TRANSACTIONS_PATH, PAYMENTS, PAYMENTS_PATH, PLUGINS, PLUGINS_INFO, PLUGINS_INFO_PATH, PLUGINS_PATH, PREFIX, QUERY_ACCOUNT_ID, QUERY_ACCOUNT_WITH_BALANCE, QUERY_ACCOUNT_WITH_BALANCE_AND_CBA, QUERY_API_KEY, QUERY_AUDIT, QUERY_BILLING_POLICY, QUERY_BUNDLE_TRANSFER_ADDON, QUERY_BUNDLE_TRANSFER_CANCEL_IMM, QUERY_CALL_COMPLETION, QUERY_CALL_TIMEOUT, QUERY_CUSTOM_FIELDS, QUERY_DELETE_DEFAULT_PM_WITH_AUTO_PAY_OFF, QUERY_DELETE_IF_EXISTS, QUERY_END_DATE, QUERY_ENTITLEMENT_POLICY, QUERY_EXTERNAL_KEY, QUERY_INVOICE_WITH_ITEMS, QUERY_LOCAL_NODE_ONLY, QUERY_NOTIFICATION_CALLBACK, QUERY_OBJECT_TYPE, QUERY_PARALLEL, QUERY_PAY_ALL_UNPAID_INVOICES, QUERY_PAY_INVOICE, QUERY_PAYMENT_AMOUNT, QUERY_PAYMENT_CONTROL_PLUGIN_NAME, QUERY_PAYMENT_EXTERNAL, QUERY_PAYMENT_METHOD_ID, QUERY_PAYMENT_METHOD_IS_DEFAULT, QUERY_PAYMENT_METHOD_PLUGIN_NAME, QUERY_PAYMENT_PLUGIN_NAME, QUERY_PAYMENT_WITH_REFUNDS_AND_CHARGEBACKS, QUERY_PLUGIN_PROPERTY, QUERY_REQUESTED_DT, QUERY_SEARCH_LIMIT, QUERY_SEARCH_OFFSET, QUERY_START_DATE, QUERY_TAGS, QUERY_TAGS_INCLUDED_DELETED, QUERY_TARGET_DATE, QUERY_UNPAID_INVOICES_ONLY, QUERY_USE_REQUESTED_DATE_FOR_BILLING, QUERY_WITH_PLUGIN_INFO, REFUNDS, REGISTER_NOTIFICATION_CALLBACK, RESUME, SEARCH, SECURITY, SECURITY_PATH, STRING_PATTERN, SUBSCRIPTIONS, SUBSCRIPTIONS_PATH, TAG_DEFINITIONS, TAG_DEFINITIONS_PATH, TAGS, TAGS_PATH, TENANTS, TENANTS_PATH, TEST, TEST_PATH, TIMELINE, UPLOAD_PLUGIN_CONFIG, UPLOAD_PLUGIN_PAYMENT_STATE_MACHINE_CONFIG, USAGES, USAGES_PATH, USER_KEY_VALUE, UUID_PATTERN| Constructor and Description |
|---|
InvoiceResource(AccountUserApi accountUserApi,
InvoiceUserApi invoiceApi,
PaymentApi paymentApi,
InvoiceNotifier invoiceNotifier,
org.killbill.clock.Clock clock,
JaxrsUriBuilder uriBuilder,
org.killbill.billing.util.api.TagUserApi tagUserApi,
org.killbill.billing.util.api.CustomFieldUserApi customFieldUserApi,
org.killbill.billing.util.api.AuditUserApi auditUserApi,
TenantUserApi tenantApi,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
adjustInvoiceItem(InvoiceItemJson json,
String invoiceId,
String requestedDateTimeString,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createCustomFields(String id,
List<CustomFieldJson> customFields,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createExternalCharges(Iterable<InvoiceItemJson> externalChargesJson,
String accountId,
String requestedDateTimeString,
Boolean payInvoice,
List<String> pluginPropertiesString,
String createdBy,
String reason,
String comment,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
createFutureInvoice(String accountId,
String targetDate,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createInstantPayment(InvoicePaymentJson payment,
Boolean externalPayment,
List<String> pluginPropertiesString,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
createTags(String id,
String tagList,
String createdBy,
String reason,
String comment,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
deleteCBA(String invoiceId,
String invoiceItemId,
String accountId,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
deleteCustomFields(String id,
String customFieldList,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
deleteTags(String id,
String tagList,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
generateDryRunInvoice(InvoiceDryRunJson dryRunSubscriptionSpec,
String accountId,
String targetDate,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getCatalogTranslation(String localeStr,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getCustomFields(String id,
AuditMode auditMode,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoice(String invoiceId,
boolean withItems,
AuditMode auditMode,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoiceAsHTML(String invoiceId,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoiceByNumber(Integer invoiceNumber,
boolean withItems,
AuditMode auditMode,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoiceMPTemplate(String localeStr,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoices(Long offset,
Long limit,
Boolean withItems,
AuditMode auditMode,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoiceTemplate(javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getInvoiceTranslation(String localeStr,
javax.servlet.http.HttpServletRequest request) |
protected org.killbill.billing.ObjectType |
getObjectType() |
javax.ws.rs.core.Response |
getPayments(String invoiceId,
AuditMode auditMode,
Boolean withPluginInfo,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
getTags(String invoiceIdString,
AuditMode auditMode,
Boolean includedDeleted,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
searchInvoices(String searchKey,
Long offset,
Long limit,
Boolean withItems,
AuditMode auditMode,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
triggerEmailNotificationForInvoice(String invoiceId,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request) |
javax.ws.rs.core.Response |
uploadCatalogTranslation(String catalogTranslation,
String localeStr,
boolean deleteIfExists,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
uploadInvoiceMPTemplate(String catalogTranslation,
boolean deleteIfExists,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
uploadInvoiceTemplate(String catalogTranslation,
boolean deleteIfExists,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
uploadInvoiceTranslation(String invoiceTranslation,
String localeStr,
boolean deleteIfExists,
String createdBy,
String reason,
String comment,
javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo) |
buildStreamingPaginationResponse, createControlPluginApiPaymentOptions, createControlPluginApiPaymentOptions, createCustomFields, createInvoicePaymentControlPluginApiPaymentOptions, createPaymentResponse, createPurchaseForInvoice, createTagResponse, createTags, deleteCustomFields, deleteTags, extractPluginProperties, extractPluginProperties, getCustomFields, getInvoiceId, getPaymentTransactions, getTagDefinitionUUIDs, getTags, lookupPendingTransaction, toLocalDate, toLocalDate, validatePaymentMethodForAccount, verifyNonNull, verifyNonNullOrEmpty, verifyNumberOfElements@Inject public InvoiceResource(AccountUserApi accountUserApi, InvoiceUserApi invoiceApi, PaymentApi paymentApi, InvoiceNotifier invoiceNotifier, org.killbill.clock.Clock clock, JaxrsUriBuilder uriBuilder, org.killbill.billing.util.api.TagUserApi tagUserApi, org.killbill.billing.util.api.CustomFieldUserApi customFieldUserApi, org.killbill.billing.util.api.AuditUserApi auditUserApi, TenantUserApi tenantApi, Context context)
public javax.ws.rs.core.Response getInvoice(String invoiceId, boolean withItems, AuditMode auditMode, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException
InvoiceApiExceptionpublic javax.ws.rs.core.Response getInvoiceByNumber(Integer invoiceNumber, boolean withItems, AuditMode auditMode, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException
InvoiceApiExceptionpublic javax.ws.rs.core.Response getInvoiceAsHTML(String invoiceId, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException, IOException, AccountApiException
public javax.ws.rs.core.Response getInvoices(Long offset, Long limit, Boolean withItems, AuditMode auditMode, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException
InvoiceApiExceptionpublic javax.ws.rs.core.Response searchInvoices(String searchKey, Long offset, Long limit, Boolean withItems, AuditMode auditMode, @Context javax.servlet.http.HttpServletRequest request) throws SubscriptionApiException
SubscriptionApiExceptionpublic javax.ws.rs.core.Response createFutureInvoice(String accountId, String targetDate, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws AccountApiException, InvoiceApiException
public javax.ws.rs.core.Response generateDryRunInvoice(@Nullable InvoiceDryRunJson dryRunSubscriptionSpec, String accountId, @Nullable String targetDate, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws AccountApiException, InvoiceApiException
public javax.ws.rs.core.Response deleteCBA(String invoiceId, String invoiceItemId, String accountId, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request) throws AccountApiException, InvoiceApiException
public javax.ws.rs.core.Response adjustInvoiceItem(InvoiceItemJson json, String invoiceId, String requestedDateTimeString, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws AccountApiException, InvoiceApiException
public javax.ws.rs.core.Response createExternalCharges(Iterable<InvoiceItemJson> externalChargesJson, String accountId, String requestedDateTimeString, Boolean payInvoice, List<String> pluginPropertiesString, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request) throws AccountApiException, InvoiceApiException, PaymentApiException
public javax.ws.rs.core.Response getPayments(String invoiceId, AuditMode auditMode, Boolean withPluginInfo, @Context javax.servlet.http.HttpServletRequest request) throws PaymentApiException, InvoiceApiException
public javax.ws.rs.core.Response createInstantPayment(InvoicePaymentJson payment, Boolean externalPayment, List<String> pluginPropertiesString, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws AccountApiException, PaymentApiException
public javax.ws.rs.core.Response triggerEmailNotificationForInvoice(String invoiceId, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException, AccountApiException
public javax.ws.rs.core.Response getInvoiceTranslation(String localeStr, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException, TenantApiException
public javax.ws.rs.core.Response uploadInvoiceTranslation(String invoiceTranslation, String localeStr, boolean deleteIfExists, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exceptionpublic javax.ws.rs.core.Response getCatalogTranslation(String localeStr, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException, TenantApiException
public javax.ws.rs.core.Response uploadCatalogTranslation(String catalogTranslation, String localeStr, boolean deleteIfExists, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exceptionpublic javax.ws.rs.core.Response getInvoiceTemplate(@Context
javax.servlet.http.HttpServletRequest request)
throws InvoiceApiException,
TenantApiException
public javax.ws.rs.core.Response uploadInvoiceTemplate(String catalogTranslation, boolean deleteIfExists, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exceptionpublic javax.ws.rs.core.Response getInvoiceMPTemplate(String localeStr, @Context javax.servlet.http.HttpServletRequest request) throws InvoiceApiException, TenantApiException
public javax.ws.rs.core.Response uploadInvoiceMPTemplate(String catalogTranslation, boolean deleteIfExists, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exceptionpublic javax.ws.rs.core.Response getCustomFields(String id, AuditMode auditMode, @Context javax.servlet.http.HttpServletRequest request)
public javax.ws.rs.core.Response createCustomFields(String id, List<CustomFieldJson> customFields, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws org.killbill.billing.util.api.CustomFieldApiException
public javax.ws.rs.core.Response deleteCustomFields(String id, String customFieldList, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request) throws org.killbill.billing.util.api.CustomFieldApiException
public javax.ws.rs.core.Response getTags(String invoiceIdString, AuditMode auditMode, Boolean includedDeleted, @Context javax.servlet.http.HttpServletRequest request) throws org.killbill.billing.util.api.TagDefinitionApiException, InvoiceApiException
public javax.ws.rs.core.Response createTags(String id, String tagList, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest request) throws org.killbill.billing.util.api.TagApiException
public javax.ws.rs.core.Response deleteTags(String id, String tagList, @HeaderParam(value="X-Killbill-CreatedBy") String createdBy, @HeaderParam(value="X-Killbill-Reason") String reason, @HeaderParam(value="X-Killbill-Comment") String comment, @Context javax.servlet.http.HttpServletRequest request) throws org.killbill.billing.util.api.TagApiException
protected org.killbill.billing.ObjectType getObjectType()
getObjectType in class JaxRsResourceBaseCopyright © 2010-2016. All Rights Reserved.