diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0b5415..358ce47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,11 +15,11 @@ env: jobs: tests: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: matrix: include: - - python-version: '3.6' + - python-version: '3.7.17' docker-compose-file: 'docker-compose.ci.mysql.yml' steps: - name: Checkout code @@ -34,8 +34,8 @@ jobs: - name: Start stack run: | cd docker - docker-compose -p it -f ${{ matrix.docker-compose-file }} up --no-start - docker start it_db_1 + docker compose -p it -f ${{ matrix.docker-compose-file }} up --no-start + docker start it-db-1 - name: Wait for MySQL if: ${{ matrix.docker-compose-file == 'docker-compose.ci.mysql.yml' }} run: | @@ -80,7 +80,7 @@ jobs: # Sometimes it gets stuck (if Kill Bill starts when the DB isn't ready?) timeout-minutes: 4 run: | - docker start it_killbill_1 + docker start it-killbill-1 count=0 until $(curl --connect-timeout 10 --max-time 30 --output /dev/null --silent --fail http://${KB_ADDRESS}:${KB_PORT}/1.0/healthcheck); do if [[ "$count" == "180" ]]; then @@ -113,10 +113,10 @@ jobs: echo "[DEBUG] docker ps -a" docker ps -a echo "[DEBUG] killbill env" - docker exec it_killbill_1 env || true + docker exec it-killbill-1 env || true echo "[DEBUG] db env" - docker exec it_db_1 env || true + docker exec it-db-1 env || true echo "[DEBUG] killbill logs" - docker logs -t --details it_killbill_1 || true + docker logs -t --details it-killbill-1 || true echo "[DEBUG] db logs" - docker logs -t --details it_db_1 || true + docker logs -t --details it-db-1 || true diff --git a/.swagger-codegen/KB_VERSION b/.swagger-codegen/KB_VERSION index 842a132..7873b06 100644 --- a/.swagger-codegen/KB_VERSION +++ b/.swagger-codegen/KB_VERSION @@ -1,4 +1,4 @@ swaggerVersion=2.4.1 -kbVersion=0.24.0 -kbApiVersion=0.54.0 -kbPluginApiVersion=0.27.0 +kbVersion=0.25.6-SNAPSHOT +kbApiVersion=0.55.3 +kbPluginApiVersion=0.28.3 diff --git a/.swagger-codegen/kbswagger.yaml b/.swagger-codegen/kbswagger.yaml index 261b8ac..d90bebb 100644 --- a/.swagger-codegen/kbswagger.yaml +++ b/.swagger-codegen/kbswagger.yaml @@ -1,14 +1,13 @@ ---- swagger: "2.0" info: - description: "Kill Bill is an open-source billing and payments platform" - version: "0.24.0" title: "Kill Bill" + description: "Kill Bill is an open-source billing and payments platform" contact: name: "killbilling-users@googlegroups.com" license: name: "Apache License, Version 2.0" url: "http://www.apache.org/licenses/LICENSE-2.0.html" + version: "0.25.6-SNAPSHOT" tags: - name: "Account" - name: "Admin" @@ -33,57 +32,49 @@ tags: - name: "Tenant" - name: "PaymentTransaction" - name: "Usage" +securityDefinitions: + basicAuth: + type: "basic" + Killbill Api Key: + type: "apiKey" + name: "X-Killbill-ApiKey" + in: "header" + Killbill Api Secret: + type: "apiKey" + name: "X-Killbill-ApiSecret" + in: "header" paths: - /1.0/kb/accounts/{accountId}/auditLogs: + /1.0/kb/accounts/{accountId}/block: get: tags: - "Account" - summary: "Retrieve audit logs by account id" - description: "" - operationId: "getAccountAuditLogs" - produces: - - "application/json" + summary: "Retrieve blocking states for account" + operationId: "getBlockingStates" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Account not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/tags: - get: - tags: - - "Account" - summary: "Retrieve account tags" - description: "" - operationId: "getAccountTags" - produces: - - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true - type: "string" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "includedDeleted" + - name: "blockingStateTypes" in: "query" + type: "array" + items: + type: "string" + enum: + - "SUBSCRIPTION" + - "SUBSCRIPTION_BUNDLE" + - "ACCOUNT" + collectionFormat: "multi" + required: false + - name: "blockingStateSvcs" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false - type: "boolean" - default: false - name: "audit" in: "query" required: false @@ -99,138 +90,172 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/BlockingState" "400": description: "Invalid account id supplied" - "404": - description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Account" - summary: "Add tags to account" - description: "" - operationId: "createAccountTags" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Block an account" + operationId: "addAccountBlockingState" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - type: "string" - format: "uuid" + $ref: "#/definitions/BlockingState" + - name: "requestedDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Tag created successfully" + description: "Blocking state created successfully" schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/BlockingState" "400": description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Account" - summary: "Remove tags from account" - description: "" - operationId: "deleteAccountTags" consumes: - "application/json" + /1.0/kb/accounts/{accountId}/emails: + get: + tags: + - "Account" + summary: "Retrieve an account emails" + operationId: "getEmails" + parameters: + - name: "accountId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AccountEmail" + "400": + description: "Invalid account id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + post: + tags: + - "Account" + summary: "Add account email" + operationId: "addEmail" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" - in: "query" - required: false - type: "array" - items: - type: "string" - format: "uuid" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/AccountEmail" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Email created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/AccountEmail" "400": - description: "Invalid account id supplied or account does not have a default\ - \ payment method (AUTO_PAY_OFF tag only)" + description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/children: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}: get: tags: - "Account" - summary: "List children accounts" - description: "" - operationId: "getChildrenAccounts" - produces: - - "application/json" + summary: "Retrieve an account by id" + operationId: "getAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "accountWithBalance" in: "query" - required: false type: "boolean" default: false + required: false - name: "accountWithBalanceAndCBA" in: "query" - required: false type: "boolean" default: false + required: false - name: "audit" in: "query" required: false @@ -244,200 +269,140 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Account" + $ref: "#/definitions/Account" "400": - description: "Invalid parent account id supplied" + description: "Invalid account id supplied" "404": - description: "Parent Account not found" + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{childAccountId}/transferCredit: + produces: + - "application/json" put: tags: - "Account" - summary: "Move a given child credit to the parent level" - description: "" - operationId: "transferChildCreditToParent" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Update account" + operationId: "updateAccount" parameters: - - name: "childAccountId" + - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/Account" + - name: "treatNullAsReset" + in: "query" + type: "boolean" + default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Account does not have credit" - "404": - description: "Account not found" + description: "Invalid account data supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/paymentMethods/refresh: - put: - tags: - - "Account" - summary: "Refresh account payment methods" - description: "" - operationId: "refreshPaymentMethods" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Account" + summary: "Close account" + operationId: "closeAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "pluginName" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "cancelAllSubscriptions" in: "query" + type: "boolean" + default: false required: false - type: "string" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid account id supplied" - "404": - description: "Account not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/paymentMethods/{paymentMethodId}/setDefault: - put: - tags: - - "Account" - summary: "Set the default payment method" - description: "" - operationId: "setDefaultPaymentMethod" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "paymentMethodId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "payAllUnpaidInvoices" + - name: "writeOffUnpaidInvoices" in: "query" + type: "boolean" + default: false required: false + - name: "itemAdjustUnpaidInvoices" + in: "query" type: "boolean" default: false - - name: "pluginProperty" + required: false + - name: "removeFutureNotifications" in: "query" + type: "boolean" + default: true required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Invalid account id or payment method id supplied" - "404": - description: "Account not found" + description: "Invalid account id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/invoicePayments: + produces: + - "application/json" + /1.0/kb/accounts: get: tags: - "Account" - summary: "Retrieve account invoice payments" - description: "" - operationId: "getInvoicePayments" - produces: - - "application/json" + summary: "Retrieve an account by external key" + operationId: "getAccountByKey" parameters: - - name: "accountId" - in: "path" + - name: "externalKey" + in: "query" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "withPluginInfo" + - name: "accountWithBalance" in: "query" - required: false type: "boolean" default: false - - name: "withAttempts" - in: "query" required: false + - name: "accountWithBalanceAndCBA" + in: "query" type: "boolean" default: false - - name: "pluginProperty" - in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "audit" in: "query" required: false @@ -451,111 +416,66 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/InvoicePayment" - "400": - description: "Invalid account id supplied" + $ref: "#/definitions/Account" "404": description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Account" - summary: "Trigger a payment for all unpaid invoices" - description: "" - operationId: "payAllInvoices" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Create account" + operationId: "createAccount" parameters: - - name: "accountId" - in: "path" + - in: "body" + name: "body" required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "paymentMethodId" - in: "query" - required: false - type: "string" - format: "uuid" - - name: "externalPayment" - in: "query" - required: false - type: "boolean" - default: false - - name: "paymentAmount" - in: "query" - required: false - type: "number" - - name: "targetDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + schema: + $ref: "#/definitions/Account" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Successful operation" + description: "Account created successfully" schema: - type: "array" - items: - $ref: "#/definitions/Invoice" - "204": - description: "Nothing to pay" - "404": - description: "Invalid account id supplied" + $ref: "#/definitions/Account" + "400": + description: "Invalid account data supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/bundles: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/customFields: get: tags: - "Account" - summary: "Retrieve bundles for account" - description: "" - operationId: "getAccountBundles" - produces: - - "application/json" + summary: "Retrieve account custom fields" + operationId: "getAccountCustomFields" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "externalKey" - in: "query" - required: false - type: "string" - - name: "bundlesFilter" - in: "query" - required: false - type: "string" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -571,158 +491,139 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Bundle" + $ref: "#/definitions/CustomField" "400": description: "Invalid account id supplied" - "404": - description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}: - get: - tags: - - "Account" - summary: "Retrieve an account by id" - description: "" - operationId: "getAccount" produces: - "application/json" + put: + tags: + - "Account" + summary: "Modify custom fields to account" + operationId: "modifyAccountCustomFields" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "accountWithBalance" - in: "query" - required: false - type: "boolean" - default: false - - name: "accountWithBalanceAndCBA" - in: "query" - required: false - type: "boolean" - default: false - - name: "audit" - in: "query" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + required: false responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/Account" + "204": + description: "Successful operation" "400": description: "Invalid account id supplied" - "404": - description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Account" - summary: "Update account" - description: "" - operationId: "updateAccount" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "Account" + summary: "Add custom fields to account" + operationId: "createAccountCustomFields" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/Account" - - name: "treatNullAsReset" - in: "query" - required: false - type: "boolean" - default: false + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Custom field created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" "400": - description: "Invalid account data supplied" + description: "Invalid account id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "Account" - summary: "Close account" - description: "" - operationId: "closeAccount" - produces: - - "application/json" + summary: "Remove custom fields from account" + operationId: "deleteAccountCustomFields" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "cancelAllSubscriptions" - in: "query" - required: false - type: "boolean" - default: false - - name: "writeOffUnpaidInvoices" - in: "query" - required: false - type: "boolean" - default: false - - name: "itemAdjustUnpaidInvoices" - in: "query" - required: false - type: "boolean" - default: false - - name: "removeFutureNotifications" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" required: false - type: "boolean" - default: true - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -732,27 +633,44 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/overdue: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/tags: get: tags: - "Account" - summary: "Retrieve overdue state for account" - description: "" - operationId: "getOverdueAccount" - produces: - - "application/json" + summary: "Retrieve account tags" + operationId: "getAccountTags" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: "200": description: "successful operation" schema: - $ref: "#/definitions/OverdueState" + type: "array" + items: + $ref: "#/definitions/Tag" "400": description: "Invalid account id supplied" "404": @@ -761,94 +679,133 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/timeline: - get: + produces: + - "application/json" + post: tags: - "Account" - summary: "Retrieve account timeline" - description: "" - operationId: "getAccountTimeline" + summary: "Add tags to account" + operationId: "createAccountTags" + parameters: + - name: "accountId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + type: "string" + format: "uuid" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "201": + description: "Tag created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid account id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Account" + summary: "Remove tags from account" + operationId: "deleteAccountTags" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "parallel" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" required: false - type: "boolean" - default: false - - name: "audit" - in: "query" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + required: false responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/AccountTimeline" + "204": + description: "Successful operation" "400": - description: "Invalid account id supplied" - "404": - description: "Account not found" + description: "Invalid account id supplied or account does not have a default\ + \ payment method (AUTO_PAY_OFF tag only)" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/allTags: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/paymentMethods: get: tags: - "Account" - summary: "Retrieve account tags" - description: "" - operationId: "getAllTags" - produces: - - "application/json" + summary: "Retrieve account payment methods" + operationId: "getPaymentMethodsForAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "objectType" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false - type: "string" - enum: - - "ACCOUNT" - - "ACCOUNT_EMAIL" - - "BLOCKING_STATES" - - "BUNDLE" - - "CUSTOM_FIELD" - - "INVOICE" - - "PAYMENT" - - "TRANSACTION" - - "INVOICE_ITEM" - - "INVOICE_PAYMENT" - - "SUBSCRIPTION" - - "SUBSCRIPTION_EVENT" - - "SERVICE_BROADCAST" - - "PAYMENT_ATTEMPT" - - "PAYMENT_METHOD" - - "TAG" - - "TAG_DEFINITION" - - "TENANT" - - "TENANT_KVS" - name: "includedDeleted" in: "query" - required: false type: "boolean" default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -864,7 +821,7 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/PaymentMethod" "400": description: "Invalid account id supplied" "404": @@ -873,177 +830,155 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/payments: - get: - tags: - - "Account" - summary: "Retrieve account payments" - description: "" - operationId: "getPaymentsForAccount" produces: - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "withAttempts" - in: "query" - required: false - type: "boolean" - default: false - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Payment" - "400": - description: "Invalid account id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] post: tags: - "Account" - summary: "Trigger a payment (authorization, purchase or credit)" - description: "" - operationId: "processPayment" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Add a payment method" + operationId: "createPaymentMethod" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/PaymentTransaction" - - name: "paymentMethodId" + $ref: "#/definitions/PaymentMethod" + - name: "isDefault" in: "query" + type: "boolean" + default: false required: false - type: "string" - format: "uuid" - - name: "controlPluginName" + - name: "payAllUnpaidInvoices" in: "query" + type: "boolean" + default: false required: false + - name: "controlPluginName" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Payment transaction created successfully" + description: "Payment method created" schema: - $ref: "#/definitions/Payment" + $ref: "#/definitions/PaymentMethod" "400": description: "Invalid account id supplied" "404": description: "Account not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/allCustomFields: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/auditLogs: get: tags: - "Account" - summary: "Retrieve account customFields" - description: "" - operationId: "getAllCustomFields" + summary: "Retrieve audit logs by account id" + operationId: "getAccountAuditLogs" + parameters: + - name: "accountId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/accounts/{accountId}/auditLogsWithHistory: + get: + tags: + - "Account" + summary: "Retrieve account audit logs with history by account id" + operationId: "getAccountAuditLogsWithHistory" parameters: - name: "accountId" in: "path" required: true type: "string" + format: "uuid" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/bundles: + get: + tags: + - "Account" + summary: "Retrieve bundles for account" + operationId: "getAccountBundles" + parameters: + - name: "accountId" + in: "path" + required: true + type: "string" format: "uuid" - - name: "objectType" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "externalKey" in: "query" + type: "string" required: false + - name: "bundlesFilter" + in: "query" type: "string" - enum: - - "ACCOUNT" - - "ACCOUNT_EMAIL" - - "BLOCKING_STATES" - - "BUNDLE" - - "CUSTOM_FIELD" - - "INVOICE" - - "PAYMENT" - - "TRANSACTION" - - "INVOICE_ITEM" - - "INVOICE_PAYMENT" - - "SUBSCRIPTION" - - "SUBSCRIPTION_EVENT" - - "SERVICE_BROADCAST" - - "PAYMENT_ATTEMPT" - - "PAYMENT_METHOD" - - "TAG" - - "TAG_DEFINITION" - - "TENANT" - - "TENANT_KVS" + required: false - name: "audit" in: "query" required: false @@ -1059,7 +994,7 @@ paths: schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Bundle" "400": description: "Invalid account id supplied" "404": @@ -1068,30 +1003,33 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/bundles/pagination: get: tags: - "Account" - summary: "Retrieve an account by external key" - description: "" - operationId: "getAccountByKey" - produces: - - "application/json" + summary: "Retrieve paginated bundles for account" + operationId: "getAccountBundlesPaginated" parameters: - - name: "externalKey" - in: "query" + - name: "accountId" + in: "path" required: true type: "string" - - name: "accountWithBalance" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "boolean" - default: false - - name: "accountWithBalanceAndCBA" + - name: "limit" in: "query" + type: "integer" + format: "int64" + default: 100 required: false - type: "boolean" - default: false - name: "audit" in: "query" required: false @@ -1105,122 +1043,85 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/Account" + type: "array" + items: + $ref: "#/definitions/Bundle" + "400": + description: "Invalid account id supplied" "404": description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Account" - summary: "Create account" - description: "" - operationId: "createAccount" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/accounts/{accountId}/emails/{accountEmailId}/auditLogsWithHistory: + get: + tags: + - "Account" + summary: "Retrieve account email audit logs with history by id" + operationId: "getAccountEmailAuditLogsWithHistory" parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/Account" - - name: "X-Killbill-CreatedBy" - in: "header" + - name: "accountId" + in: "path" required: true type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "accountEmailId" + in: "path" + required: true type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "201": - description: "Account created successfully" - schema: - $ref: "#/definitions/Account" - "400": - description: "Invalid account data supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/emails: - get: - tags: - - "Account" - summary: "Retrieve an account emails" - description: "" - operationId: "getEmails" - produces: - - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/AccountEmail" - "400": - description: "Invalid account id supplied" + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Account" - summary: "Add account email" - description: "" - operationId: "addEmail" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/accounts/{accountId}/timeline: + get: + tags: + - "Account" + summary: "Retrieve account timeline" + operationId: "getAccountTimeline" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/AccountEmail" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "parallel" + in: "query" + type: "boolean" + default: false required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "audit" + in: "query" required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Email created successfully" + "200": + description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/AccountEmail" + $ref: "#/definitions/AccountTimeline" "400": description: "Invalid account id supplied" "404": @@ -1229,79 +1130,37 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/emails/{email}: - delete: - tags: - - "Account" - summary: "Delete email from account" - description: "" - operationId: "removeEmail" produces: - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "email" - in: "path" - required: true - type: "string" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid account id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] /1.0/kb/accounts/pagination: get: tags: - "Account" summary: "List accounts" - description: "" operationId: "getAccounts" - produces: - - "application/json" parameters: - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "accountWithBalance" in: "query" - required: false type: "boolean" default: false + required: false - name: "accountWithBalanceAndCBA" in: "query" - required: false type: "boolean" default: false + required: false - name: "audit" in: "query" required: false @@ -1322,43 +1181,45 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/search/{searchKey}: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/allCustomFields: get: tags: - "Account" - summary: "Search accounts" - description: "" - operationId: "searchAccounts" - produces: - - "application/json" + summary: "Retrieve account customFields" + operationId: "getAllCustomFields" parameters: - - name: "searchKey" + - name: "accountId" in: "path" required: true type: "string" - pattern: ".*" - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "accountWithBalance" - in: "query" - required: false - type: "boolean" - default: false - - name: "accountWithBalanceAndCBA" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "objectType" in: "query" + type: "string" + enum: + - "ACCOUNT" + - "ACCOUNT_EMAIL" + - "BLOCKING_STATES" + - "BUNDLE" + - "CUSTOM_FIELD" + - "INVOICE" + - "PAYMENT" + - "TRANSACTION" + - "INVOICE_ITEM" + - "INVOICE_PAYMENT" + - "SUBSCRIPTION" + - "SUBSCRIPTION_EVENT" + - "SERVICE_BROADCAST" + - "PAYMENT_ATTEMPT" + - "PAYMENT_METHOD" + - "TAG" + - "TAG_DEFINITION" + - "TENANT" + - "TENANT_KVS" required: false - type: "boolean" - default: false - name: "audit" in: "query" required: false @@ -1374,45 +1235,59 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Account" + $ref: "#/definitions/CustomField" + "400": + description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/block: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/allTags: get: tags: - "Account" - summary: "Retrieve blocking states for account" - description: "" - operationId: "getBlockingStates" - produces: - - "application/json" + summary: "Retrieve account tags" + operationId: "getAllTags" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "blockingStateTypes" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "objectType" in: "query" + type: "string" + enum: + - "ACCOUNT" + - "ACCOUNT_EMAIL" + - "BLOCKING_STATES" + - "BUNDLE" + - "CUSTOM_FIELD" + - "INVOICE" + - "PAYMENT" + - "TRANSACTION" + - "INVOICE_ITEM" + - "INVOICE_PAYMENT" + - "SUBSCRIPTION" + - "SUBSCRIPTION_EVENT" + - "SERVICE_BROADCAST" + - "PAYMENT_ATTEMPT" + - "PAYMENT_METHOD" + - "TAG" + - "TAG_DEFINITION" + - "TENANT" + - "TENANT_KVS" required: false - type: "array" - items: - type: "string" - enum: - - "SUBSCRIPTION" - - "SUBSCRIPTION_BUNDLE" - - "ACCOUNT" - collectionFormat: "multi" - - name: "blockingStateSvcs" + - name: "includedDeleted" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "audit" in: "query" required: false @@ -1428,105 +1303,124 @@ paths: schema: type: "array" items: - $ref: "#/definitions/BlockingState" + $ref: "#/definitions/Tag" "400": description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Account" - summary: "Block an account" - description: "" - operationId: "addAccountBlockingState" - consumes: + produces: - "application/json" + /1.0/kb/accounts/block/{blockingId}/auditLogsWithHistory: + get: + tags: + - "Account" + summary: "Retrieve blocking state audit logs with history by id" + operationId: "getBlockingStateAuditLogsWithHistory" parameters: - - name: "accountId" + - name: "blockingId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Blocking state not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/children: + get: + tags: + - "Account" + summary: "List children accounts" + operationId: "getChildrenAccounts" + parameters: + - name: "accountId" + in: "path" required: true - schema: - $ref: "#/definitions/BlockingState" - - name: "requestedDate" - in: "query" - required: false type: "string" - format: "date" - - name: "pluginProperty" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "accountWithBalance" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" + - name: "accountWithBalanceAndCBA" + in: "query" + type: "boolean" + default: false required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "audit" + in: "query" required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Blocking state created successfully" + "200": + description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/BlockingState" + $ref: "#/definitions/Account" "400": - description: "Invalid account id supplied" + description: "Invalid parent account id supplied" "404": - description: "Account not found" + description: "Parent Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/paymentMethods: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/invoicePayments: get: tags: - "Account" - summary: "Retrieve account payment methods" - description: "" - operationId: "getPaymentMethodsForAccount" - produces: - - "application/json" + summary: "Retrieve account invoice payments" + operationId: "getInvoicePayments" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "withPluginInfo" in: "query" - required: false type: "boolean" default: false - - name: "includedDeleted" - in: "query" required: false + - name: "withAttempts" + in: "query" type: "boolean" default: false + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -1542,7 +1436,7 @@ paths: schema: type: "array" items: - $ref: "#/definitions/PaymentMethod" + $ref: "#/definitions/InvoicePayment" "400": description: "Invalid account id supplied" "404": @@ -1551,134 +1445,175 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Account" - summary: "Add a payment method" - description: "" - operationId: "createPaymentMethod" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Trigger a payment for all unpaid invoices" + operationId: "payAllInvoices" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/PaymentMethod" - - name: "isDefault" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "paymentMethodId" in: "query" + type: "string" + format: "uuid" required: false + - name: "externalPayment" + in: "query" type: "boolean" default: false - - name: "payAllUnpaidInvoices" + required: false + - name: "paymentAmount" in: "query" + type: "number" required: false - type: "boolean" - default: false - - name: "controlPluginName" + - name: "targetDate" in: "query" + type: "string" + format: "date" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Payment method created" + description: "Successful operation" schema: - $ref: "#/definitions/PaymentMethod" - "400": - description: "Invalid account id supplied" + type: "array" + items: + $ref: "#/definitions/Invoice" + "204": + description: "Nothing to pay" "404": - description: "Account not found" + description: "Invalid account id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/auditLogsWithHistory: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/invoices: get: tags: - "Account" - summary: "Retrieve account audit logs with history by account id" - description: "" - operationId: "getAccountAuditLogsWithHistory" - produces: - - "application/json" + summary: "Retrieve account invoices" + operationId: "getInvoicesForAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "startDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "endDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "withMigrationInvoices" + in: "query" + type: "boolean" + default: false + required: false + - name: "unpaidInvoicesOnly" + in: "query" + type: "boolean" + default: false + required: false + - name: "includeVoidedInvoices" + in: "query" + type: "boolean" + default: false + required: false + - name: "includeInvoiceComponents" + in: "query" + type: "boolean" + default: false + required: false + - name: "invoicesFilter" + in: "query" + type: "string" + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: "200": description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/AuditLog" + $ref: "#/definitions/Invoice" + "400": + description: "Invalid account id supplied" "404": description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/bundles/pagination: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/invoices/pagination: get: tags: - "Account" - summary: "Retrieve paginated bundles for account" - description: "" - operationId: "getAccountBundlesPaginated" - produces: - - "application/json" + summary: "Retrieve paginated invoices for account" + operationId: "getInvoicesForAccountPaginated" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -1694,7 +1629,7 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Bundle" + $ref: "#/definitions/Invoice" "400": description: "Invalid account id supplied" "404": @@ -1703,196 +1638,172 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/customFields: + produces: + - "application/json" + /1.0/kb/accounts/{accountId}/overdue: get: tags: - "Account" - summary: "Retrieve account custom fields" - description: "" - operationId: "getAccountCustomFields" - produces: - - "application/json" + summary: "Retrieve overdue state for account" + operationId: "getOverdueAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/OverdueState" "400": description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Account" - summary: "Add custom fields to account" - description: "" - operationId: "createAccountCustomFields" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/accounts/{accountId}/payments: + get: + tags: + - "Account" + summary: "Retrieve account payments" + operationId: "getPaymentsForAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withAttempts" + in: "query" + type: "boolean" + default: false required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "withPluginInfo" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "audit" + in: "query" required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Custom field created successfully" + "200": + description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Payment" "400": description: "Invalid account id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Account" - summary: "Modify custom fields to account" - description: "" - operationId: "modifyAccountCustomFields" - consumes: - - "application/json" produces: - "application/json" + post: + tags: + - "Account" + summary: "Trigger a payment (authorization, purchase or credit)" + operationId: "processPayment" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid account id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - delete: - tags: - - "Account" - summary: "Remove custom fields from account" - description: "" - operationId: "deleteAccountCustomFields" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "accountId" - in: "path" - required: true + $ref: "#/definitions/PaymentTransaction" + - name: "paymentMethodId" + in: "query" type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "customField" + required: false + - name: "controlPluginName" in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Payment transaction created successfully" + schema: + $ref: "#/definitions/Payment" "400": description: "Invalid account id supplied" + "404": + description: "Account not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/accounts/payments: post: tags: - "Account" summary: "Trigger a payment using the account external key (authorization, purchase\ \ or credit)" - description: "" operationId: "processPaymentByExternalKey" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -1905,35 +1816,35 @@ paths: type: "string" - name: "paymentMethodId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" @@ -1957,110 +1868,126 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/invoices: - get: - tags: - - "Account" - summary: "Retrieve account invoices" - description: "" - operationId: "getInvoicesForAccount" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{accountId}/cbaRebalancing: + put: + tags: + - "Account" + summary: "Rebalance account CBA" + operationId: "rebalanceExistingCBAOnAccount" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "startDate" - in: "query" - required: false + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true type: "string" - format: "date" - - name: "endDate" - in: "query" - required: false + - name: "X-Killbill-Reason" + in: "header" type: "string" - format: "date" - - name: "withMigrationInvoices" - in: "query" - required: false - type: "boolean" - default: false - - name: "unpaidInvoicesOnly" - in: "query" - required: false - type: "boolean" - default: false - - name: "includeVoidedInvoices" - in: "query" - required: false - type: "boolean" - default: false - - name: "includeInvoiceComponents" - in: "query" - required: false - type: "boolean" - default: false - - name: "invoicesFilter" - in: "query" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - - name: "audit" - in: "query" required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Invoice" + "204": + description: "Successful operation" "400": description: "Invalid account id supplied" - "404": - description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/cbaRebalancing: - put: - tags: - - "Account" - summary: "Rebalance account CBA" - description: "" - operationId: "rebalanceExistingCBAOnAccount" + produces: + - "application/json" consumes: - "application/json" + /1.0/kb/accounts/{accountId}/paymentMethods/refresh: + put: + tags: + - "Account" + summary: "Refresh account payment methods" + operationId: "refreshPaymentMethods" + parameters: + - name: "accountId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "pluginName" + in: "query" + type: "string" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid account id supplied" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/accounts/{accountId}/emails/{email}: + delete: + tags: + - "Account" + summary: "Delete email from account" + operationId: "removeEmail" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "email" + in: "path" + required: true + type: "string" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -2070,34 +1997,42 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/invoices/pagination: + produces: + - "application/json" + /1.0/kb/accounts/search/{searchKey}: get: tags: - "Account" - summary: "Retrieve paginated invoices for account" - description: "" - operationId: "getInvoicesForAccountPaginated" - produces: - - "application/json" + summary: "Search accounts" + operationId: "searchAccounts" parameters: - - name: "accountId" + - name: "searchKey" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" + pattern: ".*" - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false + - name: "accountWithBalance" + in: "query" + type: "boolean" + default: false + required: false + - name: "accountWithBalanceAndCBA" + in: "query" + type: "boolean" + default: false + required: false - name: "audit" in: "query" required: false @@ -2113,133 +2048,162 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Invoice" - "400": - description: "Invalid account id supplied" - "404": - description: "Account not found" + $ref: "#/definitions/Account" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/{accountId}/emails/{accountEmailId}/auditLogsWithHistory: - get: - tags: - - "Account" - summary: "Retrieve account email audit logs with history by id" - description: "" - operationId: "getAccountEmailAuditLogsWithHistory" produces: - "application/json" + /1.0/kb/accounts/{accountId}/paymentMethods/{paymentMethodId}/setDefault: + put: + tags: + - "Account" + summary: "Set the default payment method" + operationId: "setDefaultPaymentMethod" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "accountEmailId" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "payAllUnpaidInvoices" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" + "204": + description: "Successful operation" + "400": + description: "Invalid account id or payment method id supplied" "404": description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/accounts/block/{blockingId}/auditLogsWithHistory: - get: - tags: - - "Account" - summary: "Retrieve blocking state audit logs with history by id" - description: "" - operationId: "getBlockingStateAuditLogsWithHistory" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/accounts/{childAccountId}/transferCredit: + put: + tags: + - "Account" + summary: "Move a given child credit to the parent level" + operationId: "transferChildCreditToParent" parameters: - - name: "blockingId" + - name: "childAccountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" + "204": + description: "Successful operation" + "400": + description: "Account does not have credit" "404": - description: "Blocking state not found" + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/admin/queues: get: tags: - "Admin" summary: "Get queues entries" - description: "" operationId: "getQueueEntries" - produces: - - "application/octet-stream" parameters: - name: "accountId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "queueName" in: "query" - required: false type: "string" + required: false - name: "serviceName" in: "query" - required: false type: "string" + required: false - name: "withHistory" in: "query" - required: false type: "boolean" default: true + required: false - name: "minDate" in: "query" - required: false type: "string" + required: false - name: "maxDate" in: "query" - required: false type: "string" + required: false - name: "withInProcessing" in: "query" - required: false type: "boolean" default: true + required: false - name: "withBusEvents" in: "query" - required: false type: "boolean" default: true + required: false - name: "withNotifications" in: "query" - required: false type: "boolean" default: true + required: false responses: "200": - description: "Success" + description: "successful operation" "400": description: "Invalid account id supplied" "404": @@ -2248,21 +2212,20 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/octet-stream" /1.0/kb/admin/cache: delete: tags: - "Admin" summary: "Invalidates the given Cache if specified, otherwise invalidates all\ \ caches" - description: "" operationId: "invalidatesCache" - produces: - - "application/json" parameters: - name: "cacheName" in: "query" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -2272,22 +2235,21 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/admin/cache/accounts/{accountId}: delete: tags: - "Admin" summary: "Invalidates Caches per account level" - description: "" operationId: "invalidatesCacheByAccount" - produces: - - "application/json" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "204": description: "Successful operation" @@ -2297,16 +2259,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/admin/cache/tenants: delete: tags: - "Admin" summary: "Invalidates Caches per tenant level" - description: "" operationId: "invalidatesCacheByTenant" - produces: - - "application/json" - parameters: [] responses: "204": description: "Successful operation" @@ -2314,99 +2274,75 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/admin/payments/{paymentId}/transactions/{paymentTransactionId}: + produces: + - "application/json" + /1.0/kb/admin/healthcheck: put: tags: - "Admin" - summary: "Update existing paymentTransaction and associated payment state" - description: "" - operationId: "updatePaymentTransactionState" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "paymentId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "paymentTransactionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/AdminPayment" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" + summary: "Put the host back into rotation" + operationId: "putInRotation" + responses: + "204": + description: "Successful operation" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + delete: + tags: + - "Admin" + summary: "Put the host out of rotation" + operationId: "putOutOfRotation" responses: "204": description: "Successful operation" - "400": - description: "Invalid account data supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/admin/invoices: post: tags: - "Admin" summary: "Trigger an invoice generation for all parked accounts" - description: "" operationId: "triggerInvoiceGenerationForParkedAccounts" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": description: "Successful operation" @@ -2414,176 +2350,131 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/admin/healthcheck: - put: - tags: - - "Admin" - summary: "Put the host back into rotation" - description: "" - operationId: "putInRotation" produces: - "application/json" - parameters: [] - responses: - "204": - description: "Successful operation" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - delete: - tags: - - "Admin" - summary: "Put the host out of rotation" - description: "" - operationId: "putOutOfRotation" - produces: + consumes: - "application/json" - parameters: [] - responses: - "204": - description: "Successful operation" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}: - get: + /1.0/kb/admin/payments/{paymentId}/transactions/{paymentTransactionId}: + put: tags: - - "Bundle" - summary: "Retrieve a bundle by id" - description: "" - operationId: "getBundle" - produces: - - "application/json" + - "Admin" + summary: "Update existing paymentTransaction and associated payment state" + operationId: "updatePaymentTransactionState" parameters: - - name: "bundleId" + - name: "paymentId" in: "path" required: true type: "string" + format: "uuid" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "paymentTransactionId" + in: "path" + required: true + type: "string" format: "uuid" - - name: "audit" - in: "query" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/AdminPayment" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + required: false responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/Bundle" + "204": + description: "Successful operation" "400": - description: "Invalid bundle id supplied" - "404": - description: "Bundle not found" + description: "Invalid account data supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/bundles/{bundleId}/block: post: tags: - "Bundle" - summary: "Transfer a bundle to another account" - description: "" - operationId: "transferBundle" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Block a bundle" + operationId: "addBundleBlockingState" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/Bundle" + $ref: "#/definitions/BlockingState" - name: "requestedDate" in: "query" - required: false type: "string" format: "date" - - name: "billingPolicy" - in: "query" - required: false - type: "string" - default: "END_OF_TERM" - enum: - - "START_OF_TERM" - - "END_OF_TERM" - - "IMMEDIATE" - - "ILLEGAL" - - name: "bcdTransfer" - in: "query" required: false - type: "string" - default: "USE_EXISTING" - enum: - - "NONE" - - "USE_EXISTING" - - "ALIGN_WITH_EFF_DT" - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Bundle transferred successfully" + description: "Blocking state created successfully" schema: - $ref: "#/definitions/Bundle" + type: "array" + items: + $ref: "#/definitions/BlockingState" "400": - description: "Invalid bundle id, requested date or policy supplied" + description: "Invalid bundle id supplied" "404": description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/tags: + consumes: + - "application/json" + /1.0/kb/bundles/{bundleId}/customFields: get: tags: - "Bundle" - summary: "Retrieve bundle tags" - description: "" - operationId: "getBundleTags" - produces: - - "application/json" + summary: "Retrieve bundle custom fields" + operationId: "getBundleCustomFields" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -2599,288 +2490,303 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/CustomField" "400": description: "Invalid bundle id supplied" - "404": - description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Bundle" - summary: "Add tags to bundle" - description: "" - operationId: "createBundleTags" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Bundle" + summary: "Modify custom fields to bundle" + operationId: "modifyBundleCustomFields" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - type: "string" - format: "uuid" + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Tag created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/Tag" + "204": + description: "Successful operation" "400": description: "Invalid bundle id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Bundle" - summary: "Remove tags from bundle" - description: "" - operationId: "deleteBundleTags" - consumes: - - "application/json" produces: - "application/json" - parameters: - - name: "bundleId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + consumes: + - "application/json" + post: + tags: + - "Bundle" + summary: "Add custom fields to bundle" + operationId: "createBundleCustomFields" + parameters: + - name: "bundleId" + in: "path" + required: true + type: "string" format: "uuid" - - name: "tagDef" - in: "query" - required: false - type: "array" - items: - type: "string" - format: "uuid" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Custom field created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" "400": description: "Invalid bundle id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/renameKey: - put: - tags: - - "Bundle" - summary: "Update a bundle externalKey" - description: "" - operationId: "renameExternalKey" + produces: + - "application/json" consumes: - "application/json" + delete: + tags: + - "Bundle" + summary: "Remove custom fields from bundle" + operationId: "deleteBundleCustomFields" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/Bundle" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" + in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Invalid argumnent supplied" - "404": - description: "Bundle not found" + description: "Invalid bundle id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/resume: - put: - tags: - - "Bundle" - summary: "Resume a bundle" - description: "" - operationId: "resumeBundle" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/bundles/{bundleId}/tags: + get: + tags: + - "Bundle" + summary: "Retrieve bundle tags" + operationId: "getBundleTags" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "requestedDate" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" in: "query" + type: "boolean" + default: false required: false - type: "string" - format: "date" - - name: "pluginProperty" + - name: "audit" in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid bundle id supplied" + "404": + description: "Bundle not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + post: + tags: + - "Bundle" + summary: "Add tags to bundle" + operationId: "createBundleTags" + parameters: + - name: "bundleId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + type: "string" + format: "uuid" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Tag created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" "400": description: "Invalid bundle id supplied" - "404": - description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/pause: - put: - tags: - - "Bundle" - summary: "Pause a bundle" - description: "" - operationId: "pauseBundle" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Bundle" + summary: "Remove tags from bundle" + operationId: "deleteBundleTags" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "requestedDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "pluginProperty" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" in: "query" - required: false type: "array" items: type: "string" + format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": description: "Invalid bundle id supplied" - "404": - description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/search/{searchKey}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/bundles/{bundleId}: get: tags: - "Bundle" - summary: "Search bundles" - description: "" - operationId: "searchBundles" - produces: - - "application/json" + summary: "Retrieve a bundle by id" + operationId: "getBundle" parameters: - - name: "searchKey" + - name: "bundleId" in: "path" required: true type: "string" - pattern: ".*" - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -2894,172 +2800,107 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Bundle" + $ref: "#/definitions/Bundle" + "400": + description: "Invalid bundle id supplied" + "404": + description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles: - get: - tags: - - "Bundle" - summary: "Retrieve a bundle by external key" - description: "" - operationId: "getBundleByKey" produces: - "application/json" + post: + tags: + - "Bundle" + summary: "Transfer a bundle to another account" + operationId: "transferBundle" parameters: - - name: "externalKey" - in: "query" + - name: "bundleId" + in: "path" required: true type: "string" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Bundle" - "404": - description: "Bundle not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/bundles/pagination: - get: - tags: - - "Bundle" - summary: "List bundles" - description: "" - operationId: "getBundles" - produces: - - "application/json" - parameters: - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Bundle" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/block: - post: - tags: - - "Bundle" - summary: "Block a bundle" - description: "" - operationId: "addBundleBlockingState" - consumes: - - "application/json" - parameters: - - name: "bundleId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/BlockingState" + $ref: "#/definitions/Bundle" - name: "requestedDate" in: "query" - required: false type: "string" format: "date" - - name: "pluginProperty" + required: false + - name: "billingPolicy" + in: "query" + type: "string" + default: "END_OF_TERM" + enum: + - "START_OF_TERM" + - "END_OF_TERM" + - "IMMEDIATE" + - "ILLEGAL" + required: false + - name: "bcdTransfer" in: "query" + type: "string" + default: "USE_EXISTING" + enum: + - "NONE" + - "USE_EXISTING" + - "ALIGN_WITH_EFF_DT" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Blocking state created successfully" + description: "Bundle transferred successfully" schema: - type: "array" - items: - $ref: "#/definitions/BlockingState" + $ref: "#/definitions/Bundle" "400": - description: "Invalid bundle id supplied" + description: "Invalid bundle id, requested date or policy supplied" "404": description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/bundles/{bundleId}/auditLogsWithHistory: get: tags: - "Bundle" summary: "Retrieve bundle audit logs with history by id" - description: "" operationId: "getBundleAuditLogsWithHistory" - produces: - - "application/json" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -3073,22 +2914,24 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/bundles/{bundleId}/customFields: + produces: + - "application/json" + /1.0/kb/bundles: get: tags: - "Bundle" - summary: "Retrieve bundle custom fields" - description: "" - operationId: "getBundleCustomFields" - produces: - - "application/json" + summary: "Retrieve a bundle by external key" + operationId: "getBundleByKey" parameters: - - name: "bundleId" - in: "path" + - name: "externalKey" + in: "query" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false - name: "audit" in: "query" required: false @@ -3104,244 +2947,337 @@ paths: schema: type: "array" items: - $ref: "#/definitions/CustomField" - "400": - description: "Invalid bundle id supplied" + $ref: "#/definitions/Bundle" + "404": + description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: + produces: + - "application/json" + /1.0/kb/bundles/pagination: + get: tags: - "Bundle" - summary: "Add custom fields to bundle" - description: "" - operationId: "createBundleCustomFields" - consumes: - - "application/json" + summary: "List bundles" + operationId: "getBundles" + parameters: + - name: "offset" + in: "query" + type: "integer" + format: "int64" + default: 0 + required: false + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Bundle" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/bundles/{bundleId}/pause: + put: + tags: + - "Bundle" + summary: "Pause a bundle" + operationId: "pauseBundle" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "requestedDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Custom field created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + "204": + description: "Successful operation" "400": description: "Invalid bundle id supplied" + "404": + description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/bundles/{bundleId}/renameKey: put: tags: - "Bundle" - summary: "Modify custom fields to bundle" - description: "" - operationId: "modifyBundleCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Update a bundle externalKey" + operationId: "renameExternalKey" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Bundle" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Invalid bundle id supplied" + description: "Invalid argumnent supplied" + "404": + description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Bundle" - summary: "Remove custom fields from bundle" - description: "" - operationId: "deleteBundleCustomFields" consumes: - "application/json" - produces: - - "application/json" + /1.0/kb/bundles/{bundleId}/resume: + put: + tags: + - "Bundle" + summary: "Resume a bundle" + operationId: "resumeBundle" parameters: - name: "bundleId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "customField" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "requestedDate" in: "query" + type: "string" + format: "date" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": description: "Invalid bundle id supplied" + "404": + description: "Bundle not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog: - get: - tags: - - "Catalog" - summary: "Retrieve the catalog as JSON" - description: "" - operationId: "getCatalogJson" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/bundles/search/{searchKey}: + get: + tags: + - "Bundle" + summary: "Search bundles" + operationId: "searchBundles" parameters: - - name: "requestedDate" + - name: "searchKey" + in: "path" + required: true + type: "string" + pattern: ".*" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "string" - format: "date-time" - - name: "accountId" + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 + required: false + - name: "audit" in: "query" required: false type: "string" - format: "uuid" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: "200": description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/Catalog" + $ref: "#/definitions/Bundle" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: + produces: + - "application/json" + /1.0/kb/catalog/simplePlan: + post: tags: - "Catalog" - summary: "Delete all versions for a per tenant catalog" - description: "" - operationId: "deleteCatalog" + summary: "Add a simple plan entry in the current version of the catalog" + operationId: "addSimplePlan" parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/SimplePlan" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Created new plan successfully" + schema: + type: "string" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog/simplePlan: - post: - tags: - - "Catalog" - summary: "Add a simple plan entry in the current version of the catalog" - description: "" - operationId: "addSimplePlan" + produces: + - "application/json" consumes: - "application/json" + /1.0/kb/catalog: + get: + tags: + - "Catalog" + summary: "Retrieve the catalog as JSON" + operationId: "getCatalogJson" + parameters: + - name: "requestedDate" + in: "query" + type: "string" + format: "date-time" + required: false + - name: "accountId" + in: "query" + type: "string" + format: "uuid" + required: false + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Catalog" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + delete: + tags: + - "Catalog" + summary: "Delete all versions for a per tenant catalog" + operationId: "deleteCatalog" parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/SimplePlan" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Created new plan successfully" - schema: - type: "string" + "204": + description: "Successful operation" security: - basicAuth: [] - Killbill Api Key: [] @@ -3351,24 +3287,46 @@ paths: tags: - "Catalog" summary: "Retrieve available add-ons for a given product" - description: "" operationId: "getAvailableAddons" - produces: - - "application/json" parameters: - name: "baseProductName" in: "query" - required: false type: "string" + required: false - name: "priceListName" in: "query" - required: false type: "string" + required: false - name: "accountId" in: "query" + type: "string" + format: "uuid" required: false + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/PlanDetail" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/catalog/availableBasePlans: + get: + tags: + - "Catalog" + summary: "Retrieve available base plans" + operationId: "getAvailableBasePlans" + parameters: + - name: "accountId" + in: "query" type: "string" format: "uuid" + required: false responses: "200": description: "successful operation" @@ -3380,21 +3338,20 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/catalog/versions: get: tags: - "Catalog" summary: "Retrieve a list of catalog versions" - description: "" operationId: "getCatalogVersions" - produces: - - "application/json" parameters: - name: "accountId" in: "query" - required: false type: "string" format: "uuid" + required: false responses: "200": description: "successful operation" @@ -3407,26 +3364,25 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/catalog/xml: get: tags: - "Catalog" summary: "Retrieve the full catalog as XML" - description: "" operationId: "getCatalogXml" - produces: - - "text/xml" parameters: - name: "requestedDate" in: "query" - required: false type: "string" format: "date-time" + required: false - name: "accountId" in: "query" - required: false type: "string" format: "uuid" + required: false responses: "200": description: "successful operation" @@ -3436,14 +3392,13 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "text/xml" post: tags: - "Catalog" summary: "Upload the full catalog as XML" - description: "" operationId: "uploadCatalogXml" - consumes: - - "text/xml" parameters: - in: "body" name: "body" @@ -3456,12 +3411,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Catalog XML created successfully" @@ -3471,64 +3426,25 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog/xml/validate: - post: - tags: - - "Catalog" - summary: "Validate a XML catalog" - description: "" - operationId: "validateCatalogXml" consumes: - "text/xml" - produces: - - "application/json" - parameters: - - in: "body" - name: "body" - required: true - schema: - type: "string" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/CatalogValidation" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] /1.0/kb/catalog/phase: get: tags: - "Catalog" summary: "Retrieve phase for a given subscription and date" - description: "" operationId: "getPhaseForSubscriptionAndDate" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "requestedDate" in: "query" - required: false type: "string" format: "date" + required: false responses: "200": description: "successful operation" @@ -3538,26 +3454,25 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/catalog/plan: get: tags: - "Catalog" summary: "Retrieve plan for a given subscription and date" - description: "" operationId: "getPlanForSubscriptionAndDate" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "requestedDate" in: "query" - required: false type: "string" format: "date" + required: false responses: "200": description: "successful operation" @@ -3567,101 +3482,107 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog/product: + produces: + - "application/json" + /1.0/kb/catalog/priceList: get: tags: - "Catalog" - summary: "Retrieve product for a given subscription and date" - description: "" - operationId: "getProductForSubscriptionAndDate" - produces: - - "application/json" + summary: "Retrieve priceList for a given subscription and date" + operationId: "getPriceListForSubscriptionAndDate" parameters: - name: "subscriptionId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "requestedDate" in: "query" - required: false type: "string" format: "date" + required: false responses: "200": description: "successful operation" schema: - $ref: "#/definitions/Product" + $ref: "#/definitions/PriceList" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog/priceList: + produces: + - "application/json" + /1.0/kb/catalog/product: get: tags: - "Catalog" - summary: "Retrieve priceList for a given subscription and date" - description: "" - operationId: "getPriceListForSubscriptionAndDate" - produces: - - "application/json" + summary: "Retrieve product for a given subscription and date" + operationId: "getProductForSubscriptionAndDate" parameters: - name: "subscriptionId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "requestedDate" in: "query" - required: false type: "string" format: "date" + required: false responses: "200": description: "successful operation" schema: - $ref: "#/definitions/PriceList" + $ref: "#/definitions/Product" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/catalog/availableBasePlans: - get: - tags: - - "Catalog" - summary: "Retrieve available base plans" - description: "" - operationId: "getAvailableBasePlans" produces: - "application/json" + /1.0/kb/catalog/xml/validate: + post: + tags: + - "Catalog" + summary: "Validate a XML catalog" + operationId: "validateCatalogXml" parameters: - - name: "accountId" - in: "query" + - in: "body" + name: "body" + required: true + schema: + type: "string" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - format: "uuid" + required: false responses: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/PlanDetail" + $ref: "#/definitions/CatalogValidation" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "text/xml" /1.0/kb/credits: post: tags: - "Credit" summary: "Create a credit" - description: "" operationId: "createCredits" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -3670,30 +3591,35 @@ paths: type: "array" items: $ref: "#/definitions/InvoiceItem" - - name: "autoCommit" + - name: "requestedDate" in: "query" + type: "string" + format: "date" required: false + - name: "autoCommit" + in: "query" type: "boolean" default: false + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Created credit successfully" @@ -3709,22 +3635,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/credits/{creditId}: get: tags: - "Credit" summary: "Retrieve a credit by id" - description: "" operationId: "getCredit" - produces: - - "application/json" parameters: - name: "creditId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -3738,33 +3665,55 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/customFields/search/{searchKey}: + produces: + - "application/json" + /1.0/kb/customFields/{customFieldId}/auditLogsWithHistory: get: tags: - "CustomField" - summary: "Search custom fields" - description: "" - operationId: "searchCustomFields" - produces: - - "application/json" + summary: "Retrieve custom field audit logs with history by id" + operationId: "getCustomFieldAuditLogsWithHistory" parameters: - - name: "searchKey" + - name: "customFieldId" in: "path" required: true type: "string" - pattern: ".*" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/customFields/pagination: + get: + tags: + - "CustomField" + summary: "List custom fields" + operationId: "getCustomFields" + parameters: - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -3785,69 +3734,32 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/customFields/{customFieldId}/auditLogsWithHistory: - get: - tags: - - "CustomField" - summary: "Retrieve custom field audit logs with history by id" - description: "" - operationId: "getCustomFieldAuditLogsWithHistory" produces: - "application/json" - parameters: - - name: "customFieldId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Account not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/customFields/search: + /1.0/kb/customFields/search/{searchKey}: get: tags: - "CustomField" - summary: "Search custom fields by type, name and optional value" - description: "" - operationId: "searchCustomFieldsByTypeName" - produces: - - "application/json" + summary: "Search custom fields" + operationId: "searchCustomFields" parameters: - - name: "objectType" - in: "query" - required: false - type: "string" - - name: "fieldName" - in: "query" - required: false - type: "string" - - name: "fieldValue" - in: "query" - required: false + - name: "searchKey" + in: "path" + required: true type: "string" + pattern: ".*" - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -3868,28 +3780,39 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/customFields/pagination: + produces: + - "application/json" + /1.0/kb/customFields/search: get: tags: - "CustomField" - summary: "List custom fields" - description: "" - operationId: "getCustomFields" - produces: - - "application/json" + summary: "Search custom fields by type, name and optional value" + operationId: "searchCustomFieldsByTypeName" parameters: - - name: "offset" + - name: "objectType" + in: "query" + type: "string" + required: false + - name: "fieldName" + in: "query" + type: "string" + required: false + - name: "fieldValue" in: "query" + type: "string" required: false + - name: "offset" + in: "query" type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -3910,37 +3833,36 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/export/{accountId}: get: tags: - "Export" summary: "Export account data" - description: "" operationId: "exportDataForAccount" - produces: - - "application/octet-stream" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": - description: "Success" + description: "successful operation" "400": description: "Invalid account id supplied" "404": @@ -3949,35 +3871,24 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoiceItems/{invoiceItemId}/tags: + produces: + - "application/octet-stream" + /1.0/kb/invoiceItems/{invoiceItemId}/customFields: get: tags: - "InvoiceItem" - summary: "Retrieve invoice item tags" - description: "" - operationId: "getInvoiceItemTags" - produces: - - "application/json" + summary: "Retrieve invoice item custom fields" + operationId: "getInvoiceItemCustomFields" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "accountId" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "audit" in: "query" - required: true - type: "string" - format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false - - name: "audit" - in: "query" - required: false + required: false type: "string" default: "NONE" enum: @@ -3990,102 +3901,139 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/CustomField" "400": description: "Invalid invoice item id supplied" - "404": - description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: + produces: + - "application/json" + put: tags: - "InvoiceItem" - summary: "Add tags to invoice item" - description: "" - operationId: "createInvoiceItemTags" - consumes: - - "application/json" + summary: "Modify custom fields to invoice item" + operationId: "modifyInvoiceItemCustomFields" + parameters: + - name: "invoiceItemId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid invoice item id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "InvoiceItem" + summary: "Add custom fields to invoice item" + operationId: "createInvoiceItemCustomFields" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - type: "string" - format: "uuid" + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Tag created successfully" + description: "Custom field created successfully" schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/CustomField" "400": description: "Invalid invoice item id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "InvoiceItem" - summary: "Remove tags from invoice item" - description: "" - operationId: "deleteInvoiceItemTags" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Remove custom fields from invoice item" + operationId: "deleteInvoiceItemCustomFields" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" in: "query" - required: false type: "array" items: type: "string" format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -4095,51 +4043,33 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoiceItems/{invoiceItemId}/auditLogsWithHistory: - get: - tags: - - "InvoiceItem" - summary: "Retrieve invoice item audit logs with history by id" - description: "" - operationId: "getInvoiceItemAuditLogsWithHistory" produces: - "application/json" - parameters: - - name: "invoiceItemId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Invoice item not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoiceItems/{invoiceItemId}/customFields: + consumes: + - "application/json" + /1.0/kb/invoiceItems/{invoiceItemId}/tags: get: tags: - "InvoiceItem" - summary: "Retrieve invoice item custom fields" - description: "" - operationId: "getInvoiceItemCustomFields" - produces: - - "application/json" + summary: "Retrieve invoice item tags" + operationId: "getInvoiceItemTags" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" + format: "uuid" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "accountId" + in: "query" + required: true + type: "string" format: "uuid" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false - name: "audit" in: "query" required: false @@ -4155,144 +4085,98 @@ paths: schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Tag" "400": description: "Invalid invoice item id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "InvoiceItem" - summary: "Add custom fields to invoice item" - description: "" - operationId: "createInvoiceItemCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Add tags to invoice item" + operationId: "createInvoiceItemTags" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - $ref: "#/definitions/CustomField" + type: "string" + format: "uuid" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Custom field created successfully" + description: "Tag created successfully" schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Tag" "400": description: "Invalid invoice item id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "InvoiceItem" - summary: "Modify custom fields to invoice item" - description: "" - operationId: "modifyInvoiceItemCustomFields" - consumes: - - "application/json" produces: - "application/json" - parameters: - - name: "invoiceItemId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid invoice item id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] + consumes: + - "application/json" delete: tags: - "InvoiceItem" - summary: "Remove custom fields from invoice item" - description: "" - operationId: "deleteInvoiceItemCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Remove tags from invoice item" + operationId: "deleteInvoiceItemTags" parameters: - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "customField" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" in: "query" - required: false type: "array" items: type: "string" format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -4302,34 +4186,68 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoicePayments/{paymentId}/tags: - get: - tags: - - "InvoicePayment" - summary: "Retrieve payment tags" - description: "" - operationId: "getInvoicePaymentTags" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/invoiceItems/{invoiceItemId}/auditLogsWithHistory: + get: + tags: + - "InvoiceItem" + summary: "Retrieve invoice item audit logs with history by id" + operationId: "getInvoiceItemAuditLogsWithHistory" parameters: - - name: "paymentId" + - name: "invoiceItemId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Invoice item not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/invoicePayments/{paymentId}: + get: + tags: + - "InvoicePayment" + summary: "Retrieve a payment by id" + operationId: "getInvoicePayment" + parameters: + - name: "paymentId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withPluginInfo" + in: "query" + type: "boolean" + default: false + required: false + - name: "withAttempts" in: "query" + type: "boolean" + default: false required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -4343,9 +4261,7 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/InvoicePayment" "400": description: "Invalid payment id supplied" "404": @@ -4354,120 +4270,143 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "InvoicePayment" - summary: "Add tags to payment" - description: "" - operationId: "createInvoicePaymentTags" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "InvoicePayment" + summary: "Complete an existing transaction" + operationId: "completeInvoicePaymentTransaction" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - type: "string" - format: "uuid" + $ref: "#/definitions/PaymentTransaction" + - name: "controlPluginName" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Tag created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/Tag" + "204": + description: "Successful operation" "400": - description: "Invalid payment id supplied" + description: "Invalid paymentId supplied" + "404": + description: "Account or payment not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "InvoicePayment" - summary: "Remove tags from payment" - description: "" - operationId: "deleteInvoicePaymentTags" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/invoicePayments/{paymentId}/chargebacks: + post: + tags: + - "InvoicePayment" + summary: "Record a chargeback" + operationId: "createChargeback" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/InvoicePaymentTransaction" + - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Created chargeback successfully" + schema: + $ref: "#/definitions/InvoicePayment" "400": description: "Invalid payment id supplied" + "404": + description: "Account or payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/invoicePayments/{paymentId}/chargebackReversals: post: tags: - "InvoicePayment" summary: "Record a chargebackReversal" - description: "" operationId: "createChargebackReversal" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -4475,23 +4414,23 @@ paths: $ref: "#/definitions/InvoicePaymentTransaction" - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Created chargeback reversal successfully" @@ -4505,39 +4444,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoicePayments/{paymentId}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoicePayments/{paymentId}/customFields: get: tags: - "InvoicePayment" - summary: "Retrieve a payment by id" - description: "" - operationId: "getInvoicePayment" - produces: - - "application/json" + summary: "Retrieve payment custom fields" + operationId: "getInvoicePaymentCustomFields" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "withAttempts" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -4551,155 +4474,179 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/InvoicePayment" + type: "array" + items: + $ref: "#/definitions/CustomField" "400": description: "Invalid payment id supplied" - "404": - description: "Payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" put: tags: - "InvoicePayment" - summary: "Complete an existing transaction" - description: "" - operationId: "completeInvoicePaymentTransaction" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Modify custom fields to payment" + operationId: "modifyInvoicePaymentCustomFields" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Invalid paymentId supplied" - "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" + description: "Invalid payment id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoicePayments/{paymentId}/chargebacks: + produces: + - "application/json" + consumes: + - "application/json" post: tags: - "InvoicePayment" - summary: "Record a chargeback" - description: "" - operationId: "createChargeback" - consumes: - - "application/json" - produces: - - "application/json" - parameters: + summary: "Add custom fields to payment" + operationId: "createInvoicePaymentCustomFields" + parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/InvoicePaymentTransaction" - - name: "pluginProperty" - in: "query" + type: "array" + items: + $ref: "#/definitions/CustomField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" required: false + responses: + "201": + description: "Custom field created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" + "400": + description: "Invalid payment id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + delete: + tags: + - "InvoicePayment" + summary: "Remove custom fields from payment" + operationId: "deleteInvoicePaymentCustomFields" + parameters: + - name: "paymentId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" + in: "query" type: "array" items: type: "string" + format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Created chargeback successfully" - schema: - $ref: "#/definitions/InvoicePayment" + "204": + description: "Successful operation" "400": description: "Invalid payment id supplied" - "404": - description: "Account or payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoicePayments/{paymentId}/customFields: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoicePayments/{paymentId}/tags: get: tags: - "InvoicePayment" - summary: "Retrieve payment custom fields" - description: "" - operationId: "getInvoicePaymentCustomFields" - produces: - - "application/json" + summary: "Retrieve payment tags" + operationId: "getInvoicePaymentTags" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -4715,144 +4662,98 @@ paths: schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Tag" "400": description: "Invalid payment id supplied" + "404": + description: "Payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "InvoicePayment" - summary: "Add custom fields to payment" - description: "" - operationId: "createInvoicePaymentCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Add tags to payment" + operationId: "createInvoicePaymentTags" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - $ref: "#/definitions/CustomField" + type: "string" + format: "uuid" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Custom field created successfully" + description: "Tag created successfully" schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Tag" "400": description: "Invalid payment id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "InvoicePayment" - summary: "Modify custom fields to payment" - description: "" - operationId: "modifyInvoicePaymentCustomFields" - consumes: - - "application/json" produces: - "application/json" - parameters: - - name: "paymentId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid payment id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] + consumes: + - "application/json" delete: tags: - "InvoicePayment" - summary: "Remove custom fields from payment" - description: "" - operationId: "deleteInvoicePaymentCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Remove tags from payment" + operationId: "deleteInvoicePaymentTags" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "customField" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" in: "query" - required: false type: "array" items: type: "string" format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -4862,24 +4763,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/invoicePayments/{paymentId}/refunds: post: tags: - "InvoicePayment" summary: "Refund a payment, and adjust the invoice if needed" - description: "" operationId: "createRefundWithAdjustments" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -4887,33 +4787,33 @@ paths: $ref: "#/definitions/InvoicePaymentTransaction" - name: "externalPayment" in: "query" - required: false type: "boolean" default: false + required: false - name: "paymentMethodId" in: "query" - required: false type: "string" format: "uuid" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Created refund successfully" @@ -4927,22 +4827,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/invoicePayments/{invoicePaymentId}/auditLogsWithHistory: get: tags: - "InvoicePayment" summary: "Retrieve invoice payment audit logs with history by id" - description: "" operationId: "getInvoicePaymentAuditLogsWithHistory" - produces: - - "application/json" parameters: - name: "invoicePaymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -4956,27 +4857,26 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/tags: + produces: + - "application/json" + /1.0/kb/invoices/{invoiceId}: get: tags: - "Invoice" - summary: "Retrieve invoice tags" - description: "" - operationId: "getInvoiceTags" - produces: - - "application/json" + summary: "Retrieve an invoice by id" + operationId: "getInvoice" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withChildrenItems" in: "query" - required: false type: "boolean" default: false + required: false - name: "audit" in: "query" required: false @@ -4990,9 +4890,7 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/Invoice" "400": description: "Invalid invoice id supplied" "404": @@ -5001,120 +4899,117 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Invoice" - summary: "Add tags to invoice" - description: "" - operationId: "createInvoiceTags" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Adjust an invoice item" + operationId: "adjustInvoiceItem" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - type: "string" - format: "uuid" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true + $ref: "#/definitions/InvoiceItem" + - name: "requestedDate" + in: "query" type: "string" - - name: "X-Killbill-Reason" - in: "header" + format: "date" required: false - type: "string" - - name: "X-Killbill-Comment" + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" + required: false responses: "201": - description: "Tag created successfully" + description: "Created adjustment Successfully" schema: - type: "array" - items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/Invoice" "400": - description: "Invalid invoice id supplied" + description: "Invalid account id, invoice id or invoice item id supplied" + "404": + description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Invoice" - summary: "Remove tags from invoice" - description: "" - operationId: "deleteInvoiceTags" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/{invoiceId}/commitInvoice: + put: + tags: + - "Invoice" + summary: "Perform the invoice status transition from DRAFT to COMMITTED" + operationId: "commitInvoice" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" - in: "query" - required: false - type: "array" - items: - type: "string" - format: "uuid" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" - "400": - description: "Invalid invoice id supplied" + "404": + description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/migration/{accountId}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/charges/{accountId}: post: tags: - "Invoice" - summary: "Create a migration invoice" - description: "" - operationId: "createMigrationInvoice" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Create external charge(s)" + operationId: "createExternalCharges" parameters: - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -5122,233 +5017,181 @@ paths: type: "array" items: $ref: "#/definitions/InvoiceItem" - - name: "targetDate" + - name: "requestedDate" in: "query" - required: false type: "string" format: "date" + required: false + - name: "autoCommit" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Created migration invoice successfully" + description: "Created external charge Successfully" schema: - $ref: "#/definitions/Invoice" + type: "array" + items: + $ref: "#/definitions/InvoiceItem" "400": - description: "Invalid account id or target datetime supplied" + description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/byItemId/{itemId}: - get: - tags: - - "Invoice" - summary: "Retrieve an invoice by invoice item id" - description: "" - operationId: "getInvoiceByItemId" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices: + post: + tags: + - "Invoice" + summary: "Trigger an invoice generation" + operationId: "createFutureInvoice" parameters: - - name: "itemId" - in: "path" + - name: "accountId" + in: "query" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "withChildrenItems" + - name: "targetDate" in: "query" + type: "string" + format: "date" required: false - type: "boolean" - default: false - - name: "audit" + - name: "pluginProperty" in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/Invoice" - "404": - description: "Invoice not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoices/template: - get: - tags: - - "Invoice" - summary: "Retrieves the invoice template for the tenant" - description: "" - operationId: "getInvoiceTemplate" - produces: - - "text/html" - parameters: [] - responses: - "200": - description: "successful operation" - schema: - type: "string" - "404": - description: "Template not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - post: - tags: - - "Invoice" - summary: "Upload the invoice template for the tenant" - description: "" - operationId: "uploadInvoiceTemplate" - consumes: - - "text/html" - produces: - - "text/html" - parameters: - - in: "body" - name: "body" - required: true - schema: + type: "array" + items: type: "string" - - name: "deleteIfExists" - in: "query" + collectionFormat: "multi" required: false - type: "boolean" - default: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Uploaded invoice template Successfully" + description: "Created invoice successfully" schema: - type: "string" + $ref: "#/definitions/Invoice" + "400": + description: "Invalid account id or target datetime supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/taxes/{accountId}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/group: post: tags: - "Invoice" - summary: "Create tax items" - description: "" - operationId: "createTaxItems" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Trigger an invoice generation" + operationId: "createFutureInvoiceGroup" parameters: - name: "accountId" - in: "path" + in: "query" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/InvoiceItem" - - name: "autoCommit" - in: "query" - required: false - type: "boolean" - default: false - - name: "requestedDate" + - name: "targetDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Create tax items successfully" + description: "Created invoice successfully" schema: type: "array" items: - $ref: "#/definitions/InvoiceItem" + $ref: "#/definitions/Invoice" "400": - description: "Invalid account id supplied" - "404": - description: "Account not found" + description: "Invalid account id or target datetime supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{groupId}/group: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/{invoiceId}/payments: get: tags: - "Invoice" - summary: "Retrieve a set of invoices by group id" - description: "" - operationId: "getInvoicesGroup" - produces: - - "application/json" + summary: "Retrieve payments associated with an invoice" + operationId: "getPaymentsForInvoice" parameters: - - name: "groupId" + - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "accountId" - in: "query" - required: true - type: "string" format: "uuid" - - name: "withChildrenItems" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false + - name: "withAttempts" + in: "query" type: "boolean" default: false + required: false - name: "audit" in: "query" required: false @@ -5364,34 +5207,97 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Invoice" + $ref: "#/definitions/InvoicePayment" "400": - description: "Invalid group id supplied" + description: "Invalid invoice id supplied" + "404": + description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}: - get: - tags: - - "Invoice" - summary: "Retrieve an invoice by id" - description: "" - operationId: "getInvoice" produces: - "application/json" + post: + tags: + - "Invoice" + summary: "Trigger a payment for invoice" + operationId: "createInstantPayment" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "withChildrenItems" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/InvoicePayment" + - name: "externalPayment" in: "query" - required: false type: "boolean" default: false + required: false + - name: "controlPluginName" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "201": + description: "Created payment Successfully" + schema: + $ref: "#/definitions/InvoicePayment" + "204": + description: "Nothing to pay for" + "400": + description: "Invalid account id or invoice id supplied" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/{invoiceId}/customFields: + get: + tags: + - "Invoice" + summary: "Retrieve invoice custom fields" + operationId: "getInvoiceCustomFields" + parameters: + - name: "invoiceId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -5405,174 +5311,172 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/Invoice" + type: "array" + items: + $ref: "#/definitions/CustomField" "400": description: "Invalid invoice id supplied" - "404": - description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Invoice" - summary: "Adjust an invoice item" - description: "" - operationId: "adjustInvoiceItem" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Invoice" + summary: "Modify custom fields to invoice" + operationId: "modifyInvoiceCustomFields" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/InvoiceItem" - - name: "requestedDate" - in: "query" + type: "array" + items: + $ref: "#/definitions/CustomField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - format: "date" - - name: "pluginProperty" - in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid invoice id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + post: + tags: + - "Invoice" + summary: "Add custom fields to invoice" + operationId: "createInvoiceCustomFields" + parameters: + - name: "invoiceId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Created adjustment Successfully" + description: "Custom field created successfully" schema: - $ref: "#/definitions/Invoice" + type: "array" + items: + $ref: "#/definitions/CustomField" "400": - description: "Invalid account id, invoice id or invoice item id supplied" - "404": - description: "Invoice not found" + description: "Invalid invoice id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/{invoiceItemId}/cba: + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "Invoice" - summary: "Delete a CBA item" - description: "" - operationId: "deleteCBA" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Remove custom fields from invoice" + operationId: "deleteInvoiceCustomFields" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "invoiceItemId" - in: "path" - required: true - type: "string" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "accountId" + - name: "customField" in: "query" - required: true - type: "string" - format: "uuid" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": - description: "Invalid account id, invoice id or invoice item id supplied" - "404": - description: "Account or invoice not found" + description: "Invalid invoice id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/html: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/{invoiceId}/tags: get: tags: - "Invoice" - summary: "Render an invoice as HTML" - description: "" - operationId: "getInvoiceAsHTML" - produces: - - "text/html" + summary: "Retrieve invoice tags" + operationId: "getInvoiceTags" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "string" - "404": - description: "Invoice not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoices/byNumber/{invoiceNumber}: - get: - tags: - - "Invoice" - summary: "Retrieve an invoice by number" - description: "" - operationId: "getInvoiceByNumber" - produces: - - "application/json" - parameters: - - name: "invoiceNumber" - in: "path" - required: true - type: "integer" - pattern: "[0-9]+" - format: "int32" - - name: "withChildrenItems" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" in: "query" - required: false type: "boolean" default: false + required: false - name: "audit" in: "query" required: false @@ -5586,332 +5490,348 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/Invoice" + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid invoice id supplied" "404": description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/pagination: - get: - tags: - - "Invoice" - summary: "List invoices" - description: "" - operationId: "getInvoices" produces: - "application/json" - parameters: - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Invoice" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoices/search/{searchKey}: - get: + post: tags: - "Invoice" - summary: "Search invoices" - description: "" - operationId: "searchInvoices" - produces: - - "application/json" + summary: "Add tags to invoice" + operationId: "createInvoiceTags" parameters: - - name: "searchKey" + - name: "invoiceId" in: "path" required: true type: "string" - pattern: ".*" - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/Invoice" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoices/manualPayTemplate: - post: - tags: - - "Invoice" - summary: "Upload the manualPay invoice template for the tenant" - description: "" - operationId: "uploadInvoiceMPTemplate" - consumes: - - "text/html" - produces: - - "text/html" - parameters: + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "string" - - name: "deleteIfExists" - in: "query" - required: false - type: "boolean" - default: false + type: "array" + items: + type: "string" + format: "uuid" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "200": - description: "successful operation" + "201": + description: "Tag created successfully" schema: - type: "string" + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid invoice id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/customFields: - get: - tags: - - "Invoice" - summary: "Retrieve invoice custom fields" - description: "" - operationId: "getInvoiceCustomFields" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Invoice" + summary: "Remove tags from invoice" + operationId: "deleteInvoiceTags" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "audit" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + "204": + description: "Successful operation" "400": description: "Invalid invoice id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/migration/{accountId}: post: tags: - "Invoice" - summary: "Add custom fields to invoice" - description: "" - operationId: "createInvoiceCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Create a migration invoice" + operationId: "createMigrationInvoice" parameters: - - name: "invoiceId" + - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/InvoiceItem" + - name: "targetDate" + in: "query" + type: "string" + format: "date" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Custom field created successfully" + description: "Created migration invoice successfully" schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Invoice" "400": - description: "Invalid invoice id supplied" + description: "Invalid account id or target datetime supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Invoice" - summary: "Modify custom fields to invoice" - description: "" - operationId: "modifyInvoiceCustomFields" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/taxes/{accountId}: + post: + tags: + - "Invoice" + summary: "Create tax items" + operationId: "createTaxItems" parameters: - - name: "invoiceId" + - name: "accountId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" + $ref: "#/definitions/InvoiceItem" + - name: "autoCommit" + in: "query" + type: "boolean" + default: false + required: false + - name: "requestedDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Create tax items successfully" + schema: + type: "array" + items: + $ref: "#/definitions/InvoiceItem" "400": - description: "Invalid invoice id supplied" + description: "Invalid account id supplied" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/{invoiceId}/{invoiceItemId}/cba: delete: tags: - "Invoice" - summary: "Remove custom fields from invoice" - description: "" - operationId: "deleteInvoiceCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Delete a CBA item" + operationId: "deleteCBA" parameters: - name: "invoiceId" in: "path" required: true type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "invoiceItemId" + in: "path" + required: true + type: "string" + format: "uuid" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "accountId" + in: "query" + required: true + type: "string" format: "uuid" - - name: "customField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid account id, invoice id or invoice item id supplied" + "404": + description: "Account or invoice not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/invoices/dryRun: + post: + tags: + - "Invoice" + summary: "Generate a dryRun invoice" + operationId: "generateDryRunInvoice" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/InvoiceDryRun" + - name: "accountId" in: "query" + required: true + type: "string" + format: "uuid" + - name: "targetDate" + in: "query" + type: "string" + format: "date" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: + "200": + description: "successful operation" + schema: + $ref: "#/definitions/Invoice" "204": - description: "Successful operation" + description: "Nothing to generate" "400": - description: "Invalid invoice id supplied" + description: "Invalid account id or target datetime supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/invoices/catalogTranslation/{locale}: get: tags: - "Invoice" summary: "Retrieves the catalog translation for the tenant" - description: "" operationId: "getCatalogTranslation" - produces: - - "text/plain" parameters: - name: "locale" in: "path" @@ -5931,16 +5851,13 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "text/plain" post: tags: - "Invoice" summary: "Upload the catalog translation for the tenant" - description: "" operationId: "uploadCatalogTranslation" - consumes: - - "text/plain" - produces: - - "text/plain" parameters: - name: "locale" in: "path" @@ -5954,21 +5871,21 @@ paths: type: "string" - name: "deleteIfExists" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Uploaded catalog translation Successfully" @@ -5978,91 +5895,49 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/charges/{accountId}: - post: + produces: + - "text/plain" + consumes: + - "text/plain" + /1.0/kb/invoices/{invoiceId}/html: + get: tags: - "Invoice" - summary: "Create external charge(s)" - description: "" - operationId: "createExternalCharges" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Render an invoice as HTML" + operationId: "getInvoiceAsHTML" parameters: - - name: "accountId" + - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/InvoiceItem" - - name: "requestedDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "autoCommit" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: - "201": - description: "Created external charge Successfully" + "200": + description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/InvoiceItem" - "400": - description: "Invalid account id supplied" + type: "string" "404": - description: "Account not found" + description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "text/html" /1.0/kb/invoices/{invoiceId}/auditLogsWithHistory: get: tags: - "Invoice" summary: "Retrieve invoice audit logs with history by id" - description: "" operationId: "getInvoiceAuditLogsWithHistory" - produces: - - "application/json" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -6076,50 +5951,137 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/translation/{locale}: + produces: + - "application/json" + /1.0/kb/invoices/byItemId/{itemId}: get: tags: - "Invoice" - summary: "Retrieves the invoice translation for the tenant" - description: "" - operationId: "getInvoiceTranslation" - produces: - - "text/plain" + summary: "Retrieve an invoice by invoice item id" + operationId: "getInvoiceByItemId" parameters: - - name: "locale" + - name: "itemId" in: "path" required: true type: "string" - pattern: ".*" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withChildrenItems" + in: "query" + type: "boolean" + default: false + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: "200": description: "successful operation" schema: - type: "string" - "400": - description: "Invalid locale supplied" + $ref: "#/definitions/Invoice" "404": - description: "Translation not found" + description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: + produces: + - "application/json" + /1.0/kb/invoices/byNumber/{invoiceNumber}: + get: + tags: - "Invoice" - summary: "Upload the invoice translation for the tenant" - description: "" - operationId: "uploadInvoiceTranslation" - consumes: - - "text/plain" + summary: "Retrieve an invoice by number" + operationId: "getInvoiceByNumber" + parameters: + - name: "invoiceNumber" + in: "path" + required: true + type: "integer" + format: "int32" + - name: "withChildrenItems" + in: "query" + type: "boolean" + default: false + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + $ref: "#/definitions/Invoice" + "404": + description: "Invoice not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - - "text/plain" + - "application/json" + /1.0/kb/invoices/manualPayTemplate/{locale}: + get: + tags: + - "Invoice" + summary: "Retrieves the manualPay invoice template for the tenant" + operationId: "getInvoiceMPTemplate" parameters: - name: "locale" in: "path" required: true type: "string" pattern: ".*" + responses: + "200": + description: "successful operation" + schema: + type: "string" + "404": + description: "Template not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "text/html" + /1.0/kb/invoices/template: + get: + tags: + - "Invoice" + summary: "Retrieves the invoice template for the tenant" + operationId: "getInvoiceTemplate" + responses: + "200": + description: "successful operation" + schema: + type: "string" + "404": + description: "Template not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "text/html" + post: + tags: + - "Invoice" + summary: "Upload the invoice template for the tenant" + operationId: "uploadInvoiceTemplate" + parameters: - in: "body" name: "body" required: true @@ -6127,108 +6089,126 @@ paths: type: "string" - name: "deleteIfExists" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Uploaded invoice translation Successfully" + description: "Uploaded invoice template Successfully" schema: type: "string" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices: - post: + produces: + - "text/html" + consumes: + - "text/html" + /1.0/kb/invoices/translation/{locale}: + get: tags: - "Invoice" - summary: "Trigger an invoice generation" - description: "" - operationId: "createFutureInvoice" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Retrieves the invoice translation for the tenant" + operationId: "getInvoiceTranslation" parameters: - - name: "accountId" - in: "query" + - name: "locale" + in: "path" required: true type: "string" - format: "uuid" - - name: "targetDate" - in: "query" - required: false + pattern: ".*" + responses: + "200": + description: "successful operation" + schema: + type: "string" + "400": + description: "Invalid locale supplied" + "404": + description: "Translation not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "text/plain" + post: + tags: + - "Invoice" + summary: "Upload the invoice translation for the tenant" + operationId: "uploadInvoiceTranslation" + parameters: + - name: "locale" + in: "path" + required: true type: "string" - format: "date" - - name: "pluginProperty" + pattern: ".*" + - in: "body" + name: "body" + required: true + schema: + type: "string" + - name: "deleteIfExists" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Created invoice successfully" + description: "Uploaded invoice translation Successfully" schema: - $ref: "#/definitions/Invoice" - "400": - description: "Invalid account id or target datetime supplied" + type: "string" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/payments: + produces: + - "text/plain" + consumes: + - "text/plain" + /1.0/kb/invoices/pagination: get: tags: - "Invoice" - summary: "Retrieve payments associated with an invoice" - description: "" - operationId: "getPaymentsForInvoice" - produces: - - "application/json" + summary: "List invoices" + operationId: "getInvoices" parameters: - - name: "invoiceId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "withPluginInfo" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "boolean" - default: false - - name: "withAttempts" + - name: "limit" in: "query" + type: "integer" + format: "int64" + default: 100 required: false - type: "boolean" - default: false - name: "audit" in: "query" required: false @@ -6244,291 +6224,173 @@ paths: schema: type: "array" items: - $ref: "#/definitions/InvoicePayment" - "400": - description: "Invalid invoice id supplied" - "404": - description: "Invoice not found" + $ref: "#/definitions/Invoice" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Invoice" - summary: "Trigger a payment for invoice" - description: "" - operationId: "createInstantPayment" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/invoices/{groupId}/group: + get: + tags: + - "Invoice" + summary: "Retrieve a set of invoices by group id" + operationId: "getInvoicesGroup" parameters: - - name: "invoiceId" + - name: "groupId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "accountId" + in: "query" required: true - schema: - $ref: "#/definitions/InvoicePayment" - - name: "externalPayment" + type: "string" + format: "uuid" + - name: "withChildrenItems" in: "query" - required: false type: "boolean" default: false - - name: "controlPluginName" - in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" + - name: "audit" in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Created payment Successfully" + "200": + description: "successful operation" schema: - $ref: "#/definitions/InvoicePayment" - "204": - description: "Nothing to pay for" + type: "array" + items: + $ref: "#/definitions/Invoice" "400": - description: "Invalid account id or invoice id supplied" - "404": - description: "Account not found" + description: "Invalid group id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/group: - post: - tags: - - "Invoice" - summary: "Trigger an invoice generation" - description: "" - operationId: "createFutureInvoiceGroup" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/invoices/search/{searchKey}: + get: + tags: + - "Invoice" + summary: "Search invoices" + operationId: "searchInvoices" parameters: - - name: "accountId" - in: "query" + - name: "searchKey" + in: "path" required: true type: "string" - format: "uuid" - - name: "targetDate" + pattern: ".*" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "string" - format: "date" - - name: "pluginProperty" + - name: "limit" in: "query" + type: "integer" + format: "int64" + default: 100 required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "audit" + in: "query" required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Created invoice successfully" + "200": + description: "successful operation" schema: type: "array" items: $ref: "#/definitions/Invoice" - "400": - description: "Invalid account id or target datetime supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/dryRun: + produces: + - "application/json" + /1.0/kb/invoices/manualPayTemplate: post: tags: - "Invoice" - summary: "Generate a dryRun invoice" - description: "" - operationId: "generateDryRunInvoice" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Upload the manualPay invoice template for the tenant" + operationId: "uploadInvoiceMPTemplate" parameters: - in: "body" name: "body" required: true schema: - $ref: "#/definitions/InvoiceDryRun" - - name: "accountId" - in: "query" - required: true - type: "string" - format: "uuid" - - name: "targetDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "pluginProperty" + type: "string" + - name: "deleteIfExists" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": description: "successful operation" schema: - $ref: "#/definitions/Invoice" - "204": - description: "Nothing to generate" - "400": - description: "Invalid account id or target datetime supplied" + type: "string" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/invoices/manualPayTemplate/{locale}: - get: - tags: - - "Invoice" - summary: "Retrieves the manualPay invoice template for the tenant" - description: "" - operationId: "getInvoiceMPTemplate" produces: - "text/html" - parameters: - - name: "locale" - in: "path" - required: true - type: "string" - pattern: ".*" - responses: - "200": - description: "successful operation" - schema: - type: "string" - "404": - description: "Template not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/invoices/{invoiceId}/commitInvoice: - put: - tags: - - "Invoice" - summary: "Perform the invoice status transition from DRAFT to COMMITTED" - description: "" - operationId: "commitInvoice" consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "invoiceId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "404": - description: "Invoice not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] + - "text/html" /1.0/kb/invoices/{invoiceId}/voidInvoice: put: tags: - "Invoice" summary: "Perform the action of voiding an invoice" - description: "" operationId: "voidInvoice" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "invoiceId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -6540,16 +6402,16 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/nodesInfo: get: tags: - "NodesInfo" summary: "Retrieve all the nodes infos" - description: "" operationId: "getNodesInfo" - produces: - - "application/json" - parameters: [] responses: "200": description: "successful operation" @@ -6559,16 +6421,13 @@ paths: $ref: "#/definitions/NodeInfo" security: - basicAuth: [] + produces: + - "application/json" post: tags: - "NodesInfo" summary: "Trigger a node command" - description: "" operationId: "triggerNodeCommand" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -6577,21 +6436,21 @@ paths: $ref: "#/definitions/NodeCommand" - name: "localNodeOnly" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "202": description: "Successful operation" @@ -6599,337 +6458,302 @@ paths: description: "Invalid node command supplied" security: - basicAuth: [] - /1.0/kb/overdue/xml: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/overdue: get: tags: - "Overdue" - summary: "Retrieve the overdue config as XML" - description: "" - operationId: "getOverdueConfigXml" - produces: - - "text/xml" - parameters: [] + summary: "Retrieve the overdue config as JSON" + operationId: "getOverdueConfigJson" responses: "200": description: "successful operation" schema: - type: "string" + $ref: "#/definitions/Overdue" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Overdue" - summary: "Upload the full overdue config as XML" - description: "" - operationId: "uploadOverdueConfigXml" - consumes: - - "text/xml" + summary: "Upload the full overdue config as JSON" + operationId: "uploadOverdueConfigJson" parameters: - in: "body" name: "body" required: true schema: - type: "string" + $ref: "#/definitions/Overdue" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Successfully uploaded overdue config" schema: - type: "string" + $ref: "#/definitions/Overdue" "400": description: "Invalid node command supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/overdue: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/overdue/xml: get: tags: - "Overdue" - summary: "Retrieve the overdue config as JSON" - description: "" - operationId: "getOverdueConfigJson" - produces: - - "application/json" - parameters: [] + summary: "Retrieve the overdue config as XML" + operationId: "getOverdueConfigXml" responses: "200": description: "successful operation" schema: - $ref: "#/definitions/Overdue" + type: "string" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "text/xml" post: tags: - "Overdue" - summary: "Upload the full overdue config as JSON" - description: "" - operationId: "uploadOverdueConfigJson" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Upload the full overdue config as XML" + operationId: "uploadOverdueConfigXml" parameters: - in: "body" name: "body" required: true schema: - $ref: "#/definitions/Overdue" + type: "string" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Successfully uploaded overdue config" schema: - $ref: "#/definitions/Overdue" + type: "string" "400": description: "Invalid node command supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentGateways/hosted/form/{accountId}: + consumes: + - "text/xml" + /1.0/kb/paymentGateways/hosted/form: post: tags: - "PaymentGateway" - summary: "Generate form data to redirect the customer to the gateway" - description: "" - operationId: "buildFormDescriptor" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Combo API to generate form data to redirect the customer to the gateway" + operationId: "buildComboFormDescriptor" parameters: - - name: "accountId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/HostedPaymentPageFields" - - name: "paymentMethodId" - in: "query" - required: false - type: "string" - format: "uuid" + $ref: "#/definitions/ComboHostedPaymentPage" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": description: "successful operation" schema: $ref: "#/definitions/HostedPaymentPageFormDescriptor" - "404": - description: "Account not found" + "400": + description: "Invalid data for Account or PaymentMethod" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentGateways/notification/{pluginName}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/paymentGateways/hosted/form/{accountId}: post: tags: - "PaymentGateway" - summary: "Process a gateway notification" - description: "The response is built by the appropriate plugin" - operationId: "processNotification" - consumes: - - "*/*" - produces: - - "application/json" + summary: "Generate form data to redirect the customer to the gateway" + operationId: "buildFormDescriptor" parameters: - - name: "pluginName" + - name: "accountId" in: "path" required: true type: "string" - pattern: ".*" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "string" - - name: "controlPluginName" + $ref: "#/definitions/HostedPaymentPageFields" + - name: "paymentMethodId" in: "query" + type: "string" + format: "uuid" required: false + - name: "controlPluginName" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": - description: "Successful" + description: "successful operation" + schema: + $ref: "#/definitions/HostedPaymentPageFormDescriptor" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentGateways/hosted/form: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/paymentGateways/notification/{pluginName}: post: tags: - "PaymentGateway" - summary: "Combo API to generate form data to redirect the customer to the gateway" - description: "" - operationId: "buildComboFormDescriptor" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Process a gateway notification" + operationId: "processNotification" parameters: + - name: "pluginName" + in: "path" + required: true + type: "string" + pattern: ".*" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/ComboHostedPaymentPage" + type: "string" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": - description: "successful operation" - schema: - $ref: "#/definitions/HostedPaymentPageFormDescriptor" - "400": - description: "Invalid data for Account or PaymentMethod" + description: "Successful" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentMethods/search/{searchKey}: + produces: + - "application/json" + consumes: + - "*/*" + /1.0/kb/paymentMethods/{paymentMethodId}/customFields: get: tags: - "PaymentMethod" - summary: "Search payment methods" - description: "" - operationId: "searchPaymentMethods" - produces: - - "application/json" + summary: "Retrieve payment method custom fields" + operationId: "getPaymentMethodCustomFields" parameters: - - name: "searchKey" + - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: ".*" - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "pluginName" - in: "query" - required: false - type: "string" - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -6945,234 +6769,71 @@ paths: schema: type: "array" items: - $ref: "#/definitions/PaymentMethod" + $ref: "#/definitions/CustomField" + "400": + description: "Invalid payment method id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentMethods/{paymentMethodId}: - get: - tags: - - "PaymentMethod" - summary: "Retrieve a payment method by id" - description: "" - operationId: "getPaymentMethod" produces: - "application/json" + put: + tags: + - "PaymentMethod" + summary: "Modify custom fields to payment method" + operationId: "modifyPaymentMethodCustomFields" parameters: - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "audit" - in: "query" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + required: false responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/PaymentMethod" + "204": + description: "Successful operation" "400": - description: "Invalid paymentMethodId supplied" - "404": - description: "Account or payment method not found" + description: "Invalid payment method id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "PaymentMethod" - summary: "Delete a payment method" - description: "" - operationId: "deletePaymentMethod" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "PaymentMethod" + summary: "Add custom fields to payment method" + operationId: "createPaymentMethodCustomFields" parameters: - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "deleteDefaultPmWithAutoPayOff" - in: "query" - required: false - type: "boolean" - default: false - - name: "forceDefaultPmDeletion" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid paymentMethodId supplied" - "404": - description: "Account or payment method not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/paymentMethods/pagination: - get: - tags: - - "PaymentMethod" - summary: "List payment methods" - description: "" - operationId: "getPaymentMethods" - produces: - - "application/json" - parameters: - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "pluginName" - in: "query" - required: false - type: "string" - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/PaymentMethod" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/paymentMethods/{paymentMethodId}/customFields: - get: - tags: - - "PaymentMethod" - summary: "Retrieve payment method custom fields" - description: "" - operationId: "getPaymentMethodCustomFields" - produces: - - "application/json" - parameters: - - name: "paymentMethodId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "audit" - in: "query" - required: false - type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - "400": - description: "Invalid payment method id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - post: - tags: - - "PaymentMethod" - summary: "Add custom fields to payment method" - description: "" - operationId: "createPaymentMethodCustomFields" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "paymentMethodId" - in: "path" - required: true - type: "string" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - in: "body" name: "body" required: true @@ -7186,12 +6847,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Custom field created successfully" @@ -7205,88 +6866,42 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "PaymentMethod" - summary: "Modify custom fields to payment method" - description: "" - operationId: "modifyPaymentMethodCustomFields" - consumes: - - "application/json" produces: - "application/json" - parameters: - - name: "paymentMethodId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid payment method id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] + consumes: + - "application/json" delete: tags: - "PaymentMethod" summary: "Remove custom fields from payment method" - description: "" operationId: "deletePaymentMethodCustomFields" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "customField" in: "query" - required: false type: "array" items: type: "string" format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -7296,37 +6911,40 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentMethods: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/paymentMethods/{paymentMethodId}: get: tags: - "PaymentMethod" - summary: "Retrieve a payment method by external key" - description: "" - operationId: "getPaymentMethodByKey" - produces: - - "application/json" + summary: "Retrieve a payment method by id" + operationId: "getPaymentMethod" parameters: - - name: "externalKey" - in: "query" + - name: "paymentMethodId" + in: "path" required: true type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "includedDeleted" in: "query" - required: false type: "boolean" default: false + required: false - name: "withPluginInfo" in: "query" - required: false type: "boolean" default: false + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -7341,72 +6959,126 @@ paths: description: "successful operation" schema: $ref: "#/definitions/PaymentMethod" + "400": + description: "Invalid paymentMethodId supplied" "404": description: "Account or payment method not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentMethods/{paymentMethodId}/auditLogsWithHistory: - get: - tags: - - "PaymentMethod" - summary: "Retrieve payment method audit logs with history by id" - description: "" - operationId: "getPaymentMethodAuditLogsWithHistory" produces: - "application/json" + delete: + tags: + - "PaymentMethod" + summary: "Delete a payment method" + operationId: "deletePaymentMethod" parameters: - name: "paymentMethodId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Account not found" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "deleteDefaultPmWithAutoPayOff" + in: "query" + type: "boolean" + default: false + required: false + - name: "forceDefaultPmDeletion" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid paymentMethodId supplied" + "404": + description: "Account or payment method not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments: + produces: + - "application/json" + /1.0/kb/paymentMethods/{paymentMethodId}/auditLogsWithHistory: get: tags: - - "Payment" - summary: "Retrieve a payment by external key" - description: "" - operationId: "getPaymentByExternalKey" + - "PaymentMethod" + summary: "Retrieve payment method audit logs with history by id" + operationId: "getPaymentMethodAuditLogsWithHistory" + parameters: + - name: "paymentMethodId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/paymentMethods: + get: + tags: + - "PaymentMethod" + summary: "Retrieve a payment method by external key" + operationId: "getPaymentMethodByKey" parameters: - - name: "withPluginInfo" + - name: "externalKey" + in: "query" + required: true + type: "string" + - name: "includedDeleted" in: "query" - required: false type: "boolean" default: false - - name: "withAttempts" - in: "query" required: false + - name: "withPluginInfo" + in: "query" type: "boolean" default: false - - name: "externalKey" - in: "query" - required: true - type: "string" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -7420,219 +7092,238 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/Payment" + $ref: "#/definitions/PaymentMethod" "404": - description: "Payment not found" + description: "Account or payment method not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Payment" - summary: "Capture an existing authorization" - description: "" - operationId: "captureAuthorizationByExternalKey" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/paymentMethods/pagination: + get: + tags: + - "PaymentMethod" + summary: "List payment methods" + operationId: "getPaymentMethods" parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 + required: false + - name: "pluginName" + in: "query" + type: "string" + required: false + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "audit" + in: "query" required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Payment transaction created successfully" + "200": + description: "successful operation" schema: - $ref: "#/definitions/Payment" - "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" + type: "array" + items: + $ref: "#/definitions/PaymentMethod" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Payment" - summary: "Complete an existing transaction" - description: "" - operationId: "completeTransactionByExternalKey" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/paymentMethods/search/{searchKey}: + get: + tags: + - "PaymentMethod" + summary: "Search payment methods" + operationId: "searchPaymentMethods" parameters: - - in: "body" - name: "body" + - name: "searchKey" + in: "path" required: true - schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" + type: "string" + pattern: ".*" + - name: "offset" in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 + required: false + - name: "pluginName" + in: "query" + type: "string" + required: false + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/PaymentMethod" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/payments/cancelScheduledPaymentTransaction: + delete: + tags: + - "Payment" + summary: "Cancels a scheduled payment attempt retry" + operationId: "cancelScheduledPaymentTransactionByExternalKey" + parameters: + - name: "transactionExternalKey" + in: "query" + required: true + type: "string" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" - "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" + "400": + description: "Invalid paymentTransactionExternalKey supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/{paymentTransactionId}/cancelScheduledPaymentTransaction: delete: tags: - "Payment" - summary: "Void an existing payment" - description: "" - operationId: "voidPaymentByExternalKey" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Cancels a scheduled payment attempt retry" + operationId: "cancelScheduledPaymentTransactionById" parameters: - - in: "body" - name: "body" + - name: "paymentTransactionId" + in: "path" required: true - schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" - "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" + "400": + description: "Invalid paymentTransactionId supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/{paymentId}/tags: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/{paymentId}: get: tags: - "Payment" - summary: "Retrieve payment payment tags" - description: "" - operationId: "getPaymentTags" - produces: - - "application/json" + summary: "Retrieve a payment by id" + operationId: "getPayment" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false + - name: "withAttempts" + in: "query" type: "boolean" default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -7646,161 +7337,251 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/Payment" "400": - description: "Invalid payment id supplied" + description: "Invalid paymentId supplied" "404": - description: "Invoice not found" + description: "Payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Payment" - summary: "Add tags to payment payment" - description: "" - operationId: "createPaymentTags" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Payment" + summary: "Complete an existing transaction" + operationId: "completeTransaction" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - type: "string" - format: "uuid" + $ref: "#/definitions/PaymentTransaction" + - name: "controlPluginName" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Tag created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/Tag" + "204": + description: "Successful operation" "400": - description: "Invalid payment id supplied" + description: "Invalid paymentId supplied" + "404": + description: "Account or payment not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Payment" - summary: "Remove tags from payment payment" - description: "" - operationId: "deletePaymentTags" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "Payment" + summary: "Capture an existing authorization" + operationId: "captureAuthorization" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/PaymentTransaction" + - name: "controlPluginName" in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Payment transaction created successfully" + schema: + $ref: "#/definitions/Payment" "400": - description: "Invalid payment id supplied" + description: "Invalid paymentId supplied" + "404": + description: "Account or payment not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/search/{searchKey}: - get: - tags: - - "Payment" - summary: "Search payments" - description: "" - operationId: "searchPayments" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Payment" + summary: "Void an existing payment" + operationId: "voidPayment" parameters: - - name: "searchKey" + - name: "paymentId" in: "path" required: true type: "string" - pattern: ".*" - - name: "offset" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/PaymentTransaction" + - name: "controlPluginName" in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" + - name: "pluginProperty" in: "query" - required: false - type: "integer" - default: 100 - format: "int64" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid paymentId supplied" + "404": + description: "Account or payment not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments: + get: + tags: + - "Payment" + summary: "Retrieve a payment by external key" + operationId: "getPaymentByExternalKey" + parameters: - name: "withPluginInfo" in: "query" - required: false type: "boolean" default: false + required: false - name: "withAttempts" in: "query" - required: false type: "boolean" default: false - - name: "pluginName" - in: "query" required: false + - name: "externalKey" + in: "query" + required: true type: "string" - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -7814,31 +7595,21 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Payment" + $ref: "#/definitions/Payment" + "404": + description: "Payment not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/{paymentId}/chargebacks: - post: - tags: - - "Payment" - summary: "Record a chargeback" - description: "" - operationId: "chargebackPayment" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Payment" + summary: "Complete an existing transaction" + operationId: "completeTransactionByExternalKey" parameters: - - name: "paymentId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - in: "body" name: "body" required: true @@ -7846,37 +7617,33 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Payment transaction created successfully" - schema: - $ref: "#/definitions/Payment" - "400": - description: "Invalid paymentId supplied" + "204": + description: "Successful operation" "404": description: "Account or payment not found" "402": @@ -7893,24 +7660,16 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/{paymentId}/refunds: + produces: + - "application/json" + consumes: + - "application/json" post: tags: - "Payment" - summary: "Refund an existing payment" - description: "" - operationId: "refundPayment" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Capture an existing authorization" + operationId: "captureAuthorizationByExternalKey" parameters: - - name: "paymentId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - in: "body" name: "body" required: true @@ -7918,37 +7677,35 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" schema: $ref: "#/definitions/Payment" - "400": - description: "Invalid paymentId supplied" "404": description: "Account or payment not found" "402": @@ -7965,78 +7722,83 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/{paymentId}: - get: - tags: - - "Payment" - summary: "Retrieve a payment by id" - description: "" - operationId: "getPayment" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Payment" + summary: "Void an existing payment" + operationId: "voidPaymentByExternalKey" parameters: - - name: "paymentId" - in: "path" + - in: "body" + name: "body" required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "withAttempts" + schema: + $ref: "#/definitions/PaymentTransaction" + - name: "controlPluginName" in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false - type: "boolean" - default: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" - - name: "audit" - in: "query" required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/Payment" - "400": - description: "Invalid paymentId supplied" + "204": + description: "Successful operation" "404": - description: "Payment not found" + description: "Account or payment not found" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/{paymentId}/chargebacks: post: tags: - "Payment" - summary: "Capture an existing authorization" - description: "" - operationId: "captureAuthorization" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Record a chargeback" + operationId: "chargebackPayment" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -8044,30 +7806,30 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" @@ -8091,23 +7853,17 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Payment" - summary: "Complete an existing transaction" - description: "" - operationId: "completeTransaction" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/chargebacks: + post: + tags: + - "Payment" + summary: "Record a chargeback" + operationId: "chargebackPaymentByExternalKey" parameters: - - name: "paymentId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - in: "body" name: "body" required: true @@ -8115,35 +7871,35 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" - "400": - description: "Invalid paymentId supplied" + "201": + description: "Payment transaction created successfully" + schema: + $ref: "#/definitions/Payment" "404": description: "Account or payment not found" "402": @@ -8160,23 +7916,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Payment" - summary: "Void an existing payment" - description: "" - operationId: "voidPayment" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/{paymentId}/chargebackReversals: + post: + tags: + - "Payment" + summary: "Record a chargeback reversal" + operationId: "chargebackReversalPayment" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -8184,33 +7940,35 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Payment transaction created successfully" + schema: + $ref: "#/definitions/Payment" "400": description: "Invalid paymentId supplied" "404": @@ -8229,50 +7987,55 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/combo: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/chargebackReversals: post: tags: - "Payment" - summary: "Combo api to create a new payment transaction on a existing (or not)\ - \ account " - description: "" - operationId: "createComboPayment" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Record a chargeback reversal" + operationId: "chargebackReversalPaymentByExternalKey" parameters: - in: "body" name: "body" required: true schema: - $ref: "#/definitions/ComboPaymentTransaction" + $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" schema: $ref: "#/definitions/Payment" - "400": - description: "Invalid data for Account or PaymentMethod" + "404": + description: "Account or payment not found" "402": description: "Transaction declined by gateway" "422": @@ -8287,85 +8050,80 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/pagination: - get: - tags: - - "Payment" - summary: "Get payments" - description: "" - operationId: "getPayments" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/combo: + post: + tags: + - "Payment" + summary: "Combo api to create a new payment transaction on a existing (or not)\ + \ account " + operationId: "createComboPayment" parameters: - - name: "offset" - in: "query" - required: false - type: "integer" - default: 0 - format: "int64" - - name: "limit" - in: "query" - required: false - type: "integer" - default: 100 - format: "int64" - - name: "pluginName" - in: "query" - required: false - type: "string" - - name: "withPluginInfo" - in: "query" - required: false - type: "boolean" - default: false - - name: "withAttempts" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/ComboPaymentTransaction" + - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" - - name: "audit" - in: "query" required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false responses: - "200": - description: "successful operation" + "201": + description: "Payment transaction created successfully" schema: - type: "array" - items: - $ref: "#/definitions/Payment" + $ref: "#/definitions/Payment" + "400": + description: "Invalid data for Account or PaymentMethod" + "402": + description: "Transaction declined by gateway" + "422": + description: "Payment is aborted by a control plugin" + "502": + description: "Failed to submit payment transaction" + "503": + description: "Payment in unknown status, failed to receive gateway response" + "504": + description: "Payment operation timeout" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/payments/{paymentId}/customFields: get: tags: - "Payment" summary: "Retrieve payment custom fields" - description: "" operationId: "getPaymentCustomFields" - produces: - - "application/json" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -8388,23 +8146,20 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Payment" - summary: "Add custom fields to payment" - description: "" - operationId: "createPaymentCustomFields" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Payment" + summary: "Modify custom fields to payment" + operationId: "modifyPaymentCustomFields" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -8418,42 +8173,37 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Custom field created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + "204": + description: "Successful operation" "400": description: "Invalid payment id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Payment" - summary: "Modify custom fields to payment" - description: "" - operationId: "modifyPaymentCustomFields" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "Payment" + summary: "Add custom fields to payment" + operationId: "createPaymentCustomFields" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -8467,58 +8217,61 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Custom field created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" "400": description: "Invalid payment id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "Payment" summary: "Remove custom fields from payment payment" - description: "" operationId: "deletePaymentCustomFields" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "customField" in: "query" - required: false type: "array" items: type: "string" format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -8528,94 +8281,189 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/{paymentId}/chargebackReversals: - post: - tags: - - "Payment" - summary: "Record a chargeback reversal" - description: "" - operationId: "chargebackReversalPayment" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/{paymentId}/tags: + get: + tags: + - "Payment" + summary: "Retrieve payment payment tags" + operationId: "getPaymentTags" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" + - name: "audit" in: "query" required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid payment id supplied" + "404": + description: "Invoice not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + post: + tags: + - "Payment" + summary: "Add tags to payment payment" + operationId: "createPaymentTags" + parameters: + - name: "paymentId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + type: "string" + format: "uuid" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "201": + description: "Tag created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid payment id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Payment" + summary: "Remove tags from payment payment" + operationId: "deletePaymentTags" + parameters: + - name: "paymentId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" + in: "query" type: "array" items: type: "string" + format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" + type: "string" required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid payment id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/attempts/{paymentAttemptId}/auditLogsWithHistory: + get: + tags: + - "Payment" + summary: "Retrieve payment attempt audit logs with history by id" + operationId: "getPaymentAttemptAuditLogsWithHistory" + parameters: + - name: "paymentAttemptId" + in: "path" + required: true type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: - "201": - description: "Payment transaction created successfully" + "200": + description: "successful operation" schema: - $ref: "#/definitions/Payment" - "400": - description: "Invalid paymentId supplied" + type: "array" + items: + $ref: "#/definitions/AuditLog" "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/payments/{paymentId}/auditLogsWithHistory: get: tags: - "Payment" summary: "Retrieve payment audit logs with history by id" - description: "" operationId: "getPaymentAuditLogsWithHistory" - produces: - - "application/json" parameters: - name: "paymentId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -8629,18 +8477,83 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/chargebacks: - post: + produces: + - "application/json" + /1.0/kb/payments/pagination: + get: tags: - "Payment" - summary: "Record a chargeback" - description: "" - operationId: "chargebackPaymentByExternalKey" - consumes: - - "application/json" + summary: "Get payments" + operationId: "getPayments" + parameters: + - name: "offset" + in: "query" + type: "integer" + format: "int64" + default: 0 + required: false + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 + required: false + - name: "pluginName" + in: "query" + type: "string" + required: false + - name: "withPluginInfo" + in: "query" + type: "boolean" + default: false + required: false + - name: "withAttempts" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Payment" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/payments/{paymentId}/refunds: + post: + tags: + - "Payment" + summary: "Refund an existing payment" + operationId: "refundPayment" parameters: + - name: "paymentId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -8648,35 +8561,37 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" schema: $ref: "#/definitions/Payment" + "400": + description: "Invalid paymentId supplied" "404": description: "Account or payment not found" "402": @@ -8693,17 +8608,16 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/payments/refunds: post: tags: - "Payment" summary: "Refund an existing payment" - description: "" operationId: "refundPaymentByExternalKey" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -8712,30 +8626,30 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Payment transaction created successfully" @@ -8757,185 +8671,83 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/payments/cancelScheduledPaymentTransaction: - delete: - tags: - - "Payment" - summary: "Cancels a scheduled payment attempt retry" - description: "" - operationId: "cancelScheduledPaymentTransactionByExternalKey" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/payments/search/{searchKey}: + get: + tags: + - "Payment" + summary: "Search payments" + operationId: "searchPayments" parameters: - - name: "transactionExternalKey" - in: "query" - required: true - type: "string" - - name: "X-Killbill-CreatedBy" - in: "header" + - name: "searchKey" + in: "path" required: true type: "string" - - name: "X-Killbill-Reason" - in: "header" + pattern: ".*" + - name: "offset" + in: "query" + type: "integer" + format: "int64" + default: 0 required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "limit" + in: "query" + type: "integer" + format: "int64" + default: 100 required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid paymentTransactionExternalKey supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/payments/chargebackReversals: - post: - tags: - - "Payment" - summary: "Record a chargeback reversal" - description: "" - operationId: "chargebackReversalPaymentByExternalKey" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/PaymentTransaction" - - name: "controlPluginName" + - name: "withPluginInfo" in: "query" + type: "boolean" + default: false required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "pluginProperty" + - name: "withAttempts" + in: "query" + type: "boolean" + default: false + required: false + - name: "pluginName" in: "query" + type: "string" required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "201": - description: "Payment transaction created successfully" - schema: - $ref: "#/definitions/Payment" - "404": - description: "Account or payment not found" - "402": - description: "Transaction declined by gateway" - "422": - description: "Payment is aborted by a control plugin" - "502": - description: "Failed to submit payment transaction" - "503": - description: "Payment in unknown status, failed to receive gateway response" - "504": - description: "Payment operation timeout" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/payments/{paymentTransactionId}/cancelScheduledPaymentTransaction: - delete: - tags: - - "Payment" - summary: "Cancels a scheduled payment attempt retry" - description: "" - operationId: "cancelScheduledPaymentTransactionById" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "paymentTransactionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "audit" + in: "query" required: false type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid paymentTransactionId supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/payments/attempts/{paymentAttemptId}/auditLogsWithHistory: - get: - tags: - - "Payment" - summary: "Retrieve payment attempt audit logs with history by id" - description: "" - operationId: "getPaymentAttemptAuditLogsWithHistory" - produces: - - "application/json" - parameters: - - name: "paymentAttemptId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: "200": description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/AuditLog" - "404": - description: "Account not found" + $ref: "#/definitions/Payment" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/pluginsInfo: get: tags: - "PluginInfo" summary: "Retrieve the list of registered plugins" - description: "" operationId: "getPluginsInfo" - produces: - - "application/json" - parameters: [] responses: "200": description: "successful operation" @@ -8947,36 +8759,30 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/security/permissions: + produces: + - "application/json" + /1.0/kb/security/roles: get: tags: - "Security" - summary: "List user permissions" - description: "" - operationId: "getCurrentUserPermissions" - produces: - - "application/json" - parameters: [] + summary: "List all active role definitions" + operationId: "getAvailableRoles" responses: "200": description: "successful operation" schema: type: "array" items: - type: "string" + $ref: "#/definitions/RoleDefinition" security: - basicAuth: [] - /1.0/kb/security/roles: - post: - tags: - - "Security" - summary: "Add a new role definition)" - description: "" - operationId: "addRoleDefinition" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Security" + summary: "Update a new role definition)" + operationId: "updateRoleDefinition" parameters: - in: "body" name: "body" @@ -8989,29 +8795,26 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Role definition created successfully" - schema: - $ref: "#/definitions/RoleDefinition" + "204": + description: "Successful operation" security: - basicAuth: [] - put: - tags: - - "Security" - summary: "Update a new role definition)" - description: "" - operationId: "updateRoleDefinition" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "Security" + summary: "Add a new role definition)" + operationId: "addRoleDefinition" parameters: - in: "body" name: "body" @@ -9024,28 +8827,29 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Role definition created successfully" + schema: + $ref: "#/definitions/RoleDefinition" security: - basicAuth: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/security/users: post: tags: - "Security" summary: "Add a new user with roles (to make api requests)" - description: "" operationId: "addUserRoles" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -9058,12 +8862,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "User role created successfully" @@ -9071,15 +8875,69 @@ paths: $ref: "#/definitions/UserRoles" security: - basicAuth: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/security/permissions: + get: + tags: + - "Security" + summary: "List user permissions" + operationId: "getCurrentUserPermissions" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + type: "string" + security: + - basicAuth: [] + produces: + - "application/json" + /1.0/kb/security/subject: + get: + tags: + - "Security" + summary: "Get user information" + operationId: "getCurrentUserSubject" + responses: + "200": + description: "successful operation" + schema: + $ref: "#/definitions/Subject" + security: + - basicAuth: [] + produces: + - "application/json" + /1.0/kb/security/roles/{role}: + get: + tags: + - "Security" + summary: "Get role definition" + operationId: "getRoleDefinition" + parameters: + - name: "role" + in: "path" + required: true + type: "string" + pattern: ".*" + responses: + "200": + description: "successful operation" + schema: + $ref: "#/definitions/RoleDefinition" + security: + - basicAuth: [] + produces: + - "application/json" /1.0/kb/security/users/{username}/roles: get: tags: - "Security" summary: "Get roles associated to a user" - description: "" operationId: "getUserRoles" - produces: - - "application/json" parameters: - name: "username" in: "path" @@ -9095,16 +8953,13 @@ paths: description: "The user does not exist or has been inactivated" security: - basicAuth: [] + produces: + - "application/json" put: tags: - "Security" summary: "Update roles associated to a user" - description: "" operationId: "updateUserRoles" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "username" in: "path" @@ -9122,28 +8977,60 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + security: + - basicAuth: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/security/users/{username}: + delete: + tags: + - "Security" + summary: "Invalidate an existing user" + operationId: "invalidateUser" + parameters: + - name: "username" + in: "path" + required: true + type: "string" + pattern: ".*" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" + required: false responses: "204": description: "Successful operation" security: - basicAuth: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/security/users/{username}/password: put: tags: - "Security" summary: "Update a user password" - description: "" operationId: "updateUserPassword" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "username" in: "path" @@ -9161,111 +9048,93 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" security: - basicAuth: [] - /1.0/kb/security/roles/{role}: - get: - tags: - - "Security" - summary: "Get role definition" - description: "" - operationId: "getRoleDefinition" produces: - "application/json" - parameters: - - name: "role" - in: "path" - required: true - type: "string" - pattern: ".*" - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/RoleDefinition" - security: - - basicAuth: [] - /1.0/kb/security/users/{username}: - delete: - tags: - - "Security" - summary: "Invalidate an existing user" - description: "" - operationId: "invalidateUser" consumes: - "application/json" - produces: - - "application/json" + /1.0/kb/subscriptions/{subscriptionId}/block: + post: + tags: + - "Subscription" + summary: "Block a subscription" + operationId: "addSubscriptionBlockingState" parameters: - - name: "username" + - name: "subscriptionId" in: "path" required: true type: "string" - pattern: ".*" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/BlockingState" + - name: "requestedDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" - security: - - basicAuth: [] - /1.0/kb/security/subject: - get: - tags: - - "Security" - summary: "Get user information" - description: "" - operationId: "getCurrentUserSubject" - produces: - - "application/json" - parameters: [] - responses: - "200": - description: "successful operation" + "201": + description: "Blocking state created successfully" schema: - $ref: "#/definitions/Subject" + type: "array" + items: + $ref: "#/definitions/BlockingState" + "400": + description: "Invalid subscription id supplied" + "404": + description: "Subscription not found" security: - basicAuth: [] - /1.0/kb/subscriptions/{subscriptionId}/tags: + - Killbill Api Key: [] + - Killbill Api Secret: [] + consumes: + - "application/json" + /1.0/kb/subscriptions/{subscriptionId}: get: tags: - "Subscription" - summary: "Retrieve subscription tags" - description: "" - operationId: "getSubscriptionTags" - produces: - - "application/json" + summary: "Retrieve a subscription by id" + operationId: "getSubscription" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -9279,9 +9148,7 @@ paths: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/Subscription" "400": description: "Invalid subscription id supplied" "404": @@ -9290,163 +9157,171 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "Subscription" - operationId: "createSubscriptionTags" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "Subscription" + summary: "Change entitlement plan" + operationId: "changeSubscriptionPlan" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - type: "array" - items: - type: "string" - format: "uuid" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true + $ref: "#/definitions/Subscription" + - name: "requestedDate" + in: "query" type: "string" - - name: "X-Killbill-Reason" - in: "header" + format: "date" required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + - name: "callCompletion" + in: "query" + type: "boolean" + default: false required: false - type: "string" - responses: - "201": - description: "Tag created successfully" + - name: "callTimeoutSec" + in: "query" + type: "integer" + format: "int64" + default: 3 + required: false + - name: "billingPolicy" + in: "query" + type: "string" + enum: + - "START_OF_TERM" + - "END_OF_TERM" + - "IMMEDIATE" + - "ILLEGAL" + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" "400": description: "Invalid subscription id supplied" + "404": + description: "Entitlement not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "Subscription" - summary: "Remove tags from subscription" - description: "" - operationId: "deleteSubscriptionTags" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Cancel an entitlement plan" + operationId: "cancelSubscriptionPlan" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "requestedDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "callCompletion" + in: "query" + type: "boolean" + default: false + required: false + - name: "callTimeoutSec" + in: "query" + type: "integer" + format: "int64" + default: 5 + required: false + - name: "entitlementPolicy" + in: "query" + type: "string" + enum: + - "IMMEDIATE" + - "END_OF_TERM" + required: false + - name: "billingPolicy" + in: "query" + type: "string" + enum: + - "START_OF_TERM" + - "END_OF_TERM" + - "IMMEDIATE" + - "ILLEGAL" + required: false + - name: "useRequestedDateForBilling" in: "query" + type: "boolean" + default: false required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": description: "Invalid subscription id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/subscriptions/events/{eventId}/auditLogsWithHistory: - get: - tags: - - "Subscription" - summary: "Retrieve subscription event audit logs with history by id" - description: "" - operationId: "getSubscriptionEventAuditLogsWithHistory" - produces: - - "application/json" - parameters: - - name: "eventId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" "404": - description: "Subscription event not found" + description: "Entitlement not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/{subscriptionId}/auditLogsWithHistory: - get: - tags: - - "Subscription" - summary: "Retrieve subscription audit logs with history by id" - description: "" - operationId: "getSubscriptionAuditLogsWithHistory" produces: - "application/json" - parameters: - - name: "subscriptionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Subscription not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] /1.0/kb/subscriptions: get: tags: - "Subscription" summary: "Retrieve a subscription by external key" - description: "" operationId: "getSubscriptionByKey" - produces: - - "application/json" parameters: - name: "externalKey" in: "query" @@ -9472,16 +9347,13 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Subscription" - summary: "Create an subscription" - description: "" + summary: "Create a subscription" operationId: "createSubscription" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -9490,59 +9362,59 @@ paths: $ref: "#/definitions/Subscription" - name: "entitlementDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "billingDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "renameKeyIfExistsAndUnused" in: "query" - required: false type: "boolean" default: true + required: false - name: "migrated" in: "query" - required: false type: "boolean" default: false + required: false - name: "skipResponse" in: "query" - required: false type: "boolean" default: false + required: false - name: "callCompletion" in: "query" - required: false type: "boolean" default: false + required: false - name: "callTimeoutSec" in: "query" - required: false type: "integer" - default: 3 format: "int64" + default: 3 + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Subscription created successfully" @@ -9552,22 +9424,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/{subscriptionId}: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/subscriptions/{subscriptionId}/customFields: get: tags: - "Subscription" - summary: "Retrieve a subscription by id" - description: "" - operationId: "getSubscription" - produces: - - "application/json" + summary: "Retrieve subscription custom fields" + operationId: "getSubscriptionCustomFields" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -9581,275 +9454,168 @@ paths: "200": description: "successful operation" schema: - $ref: "#/definitions/Subscription" + type: "array" + items: + $ref: "#/definitions/CustomField" "400": description: "Invalid subscription id supplied" - "404": - description: "Subscription not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" put: tags: - "Subscription" - summary: "Change entitlement plan" - description: "" - operationId: "changeSubscriptionPlan" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Modify custom fields to subscription" + operationId: "modifySubscriptionCustomFields" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: - $ref: "#/definitions/Subscription" - - name: "requestedDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "callCompletion" - in: "query" - required: false - type: "boolean" - default: false - - name: "callTimeoutSec" - in: "query" - required: false - type: "integer" - default: 3 - format: "int64" - - name: "billingPolicy" - in: "query" - required: false - type: "string" - enum: - - "START_OF_TERM" - - "END_OF_TERM" - - "IMMEDIATE" - - "ILLEGAL" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" "400": description: "Invalid subscription id supplied" - "404": - description: "Entitlement not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Subscription" - summary: "Cancel an entitlement plan" - description: "" - operationId: "cancelSubscriptionPlan" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "Subscription" + summary: "Add custom fields to subscription" + operationId: "createSubscriptionCustomFields" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "requestedDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "callCompletion" - in: "query" - required: false - type: "boolean" - default: false - - name: "callTimeoutSec" - in: "query" - required: false - type: "integer" - default: 5 - format: "int64" - - name: "entitlementPolicy" - in: "query" - required: false - type: "string" - enum: - - "IMMEDIATE" - - "END_OF_TERM" - - name: "billingPolicy" - in: "query" - required: false - type: "string" - enum: - - "START_OF_TERM" - - "END_OF_TERM" - - "IMMEDIATE" - - "ILLEGAL" - - name: "useRequestedDateForBilling" - in: "query" - required: false - type: "boolean" - default: false - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Custom field created successfully" "400": description: "Invalid subscription id supplied" - "404": - description: "Entitlement not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/createSubscriptionsWithAddOns: - post: - tags: - - "Subscription" - summary: "Create multiple entitlements with addOn products" - description: "" - operationId: "createSubscriptionsWithAddOns" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Subscription" + summary: "Remove custom fields from subscription" + operationId: "deleteSubscriptionCustomFields" parameters: - - in: "body" - name: "body" + - name: "subscriptionId" + in: "path" required: true - schema: - type: "array" - items: - $ref: "#/definitions/BulkSubscriptionsBundle" - - name: "entitlementDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "billingDate" - in: "query" - required: false type: "string" - format: "date" - - name: "renameKeyIfExistsAndUnused" - in: "query" - required: false - type: "boolean" - default: true - - name: "migrated" - in: "query" - required: false - type: "boolean" - default: false - - name: "skipResponse" - in: "query" - required: false - type: "boolean" - default: false - - name: "callCompletion" - in: "query" - required: false - type: "boolean" - default: false - - name: "callTimeoutSec" - in: "query" - required: false - type: "integer" - default: 3 - format: "int64" - - name: "pluginProperty" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" in: "query" - required: false type: "array" items: type: "string" + format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Subscriptions created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/Bundle" + "204": + description: "Successful operation" + "400": + description: "Invalid subscription id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/{subscriptionId}/customFields: + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/subscriptions/{subscriptionId}/tags: get: tags: - "Subscription" - summary: "Retrieve subscription custom fields" - description: "" - operationId: "getSubscriptionCustomFields" - produces: - - "application/json" + summary: "Retrieve subscription tags" + operationId: "getSubscriptionTags" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false - name: "audit" in: "query" required: false @@ -9865,94 +9631,93 @@ paths: schema: type: "array" items: - $ref: "#/definitions/CustomField" + $ref: "#/definitions/Tag" "400": description: "Invalid subscription id supplied" + "404": + description: "Subscription not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Subscription" - summary: "Add custom fields to subscription" - description: "" - operationId: "createSubscriptionCustomFields" - consumes: - - "application/json" - produces: - - "application/json" + operationId: "createSubscriptionTags" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - $ref: "#/definitions/CustomField" + type: "string" + format: "uuid" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Custom field created successfully" + description: "Tag created successfully" "400": description: "Invalid subscription id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - put: - tags: - - "Subscription" - summary: "Modify custom fields to subscription" - description: "" - operationId: "modifySubscriptionCustomFields" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + delete: + tags: + - "Subscription" + summary: "Remove tags from subscription" + operationId: "deleteSubscriptionTags" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" + in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -9962,87 +9727,309 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "Subscription" - summary: "Remove custom fields from subscription" - description: "" - operationId: "deleteSubscriptionCustomFields" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + /1.0/kb/subscriptions/createSubscriptionWithAddOns: + post: + tags: + - "Subscription" + summary: "Create an entitlement with addOn products" + operationId: "createSubscriptionWithAddOns" parameters: - - name: "subscriptionId" - in: "path" + - in: "body" + name: "body" required: true + schema: + type: "array" + items: + $ref: "#/definitions/Subscription" + - name: "entitlementDate" + in: "query" type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "customField" + format: "date" + required: false + - name: "billingDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "migrated" + in: "query" + type: "boolean" + default: false + required: false + - name: "skipResponse" in: "query" + type: "boolean" + default: false + required: false + - name: "renameKeyIfExistsAndUnused" + in: "query" + type: "boolean" + default: true + required: false + - name: "callCompletion" + in: "query" + type: "boolean" + default: false + required: false + - name: "callTimeoutSec" + in: "query" + type: "integer" + format: "int64" + default: 3 required: false + - name: "pluginProperty" + in: "query" type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "201": + description: "Subscriptions created successfully" + schema: + $ref: "#/definitions/Bundle" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/subscriptions/createSubscriptionsWithAddOns: + post: + tags: + - "Subscription" + summary: "Create multiple entitlements with addOn products" + operationId: "createSubscriptionsWithAddOns" + parameters: + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/BulkSubscriptionsBundle" + - name: "entitlementDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "billingDate" + in: "query" + type: "string" + format: "date" + required: false + - name: "renameKeyIfExistsAndUnused" + in: "query" + type: "boolean" + default: true + required: false + - name: "migrated" + in: "query" + type: "boolean" + default: false + required: false + - name: "skipResponse" + in: "query" + type: "boolean" + default: false + required: false + - name: "callCompletion" + in: "query" + type: "boolean" + default: false + required: false + - name: "callTimeoutSec" + in: "query" + type: "integer" + format: "int64" + default: 3 + required: false + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false - name: "X-Killbill-Comment" in: "header" + type: "string" + required: false + responses: + "201": + description: "Subscriptions created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/Bundle" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/subscriptions/{subscriptionId}/auditLogsWithHistory: + get: + tags: + - "Subscription" + summary: "Retrieve subscription audit logs with history by id" + operationId: "getSubscriptionAuditLogsWithHistory" + parameters: + - name: "subscriptionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Subscription not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/subscriptions/events/{eventId}/auditLogsWithHistory: + get: + tags: + - "Subscription" + summary: "Retrieve subscription event audit logs with history by id" + operationId: "getSubscriptionEventAuditLogsWithHistory" + parameters: + - name: "eventId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/AuditLog" + "404": + description: "Subscription event not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/subscriptions/{subscriptionId}/uncancel: + put: + tags: + - "Subscription" + summary: "Un-cancel an entitlement" + operationId: "uncancelSubscriptionPlan" + parameters: + - name: "subscriptionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "pluginProperty" + in: "query" + type: "array" + items: + type: "string" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" + required: false responses: "204": description: "Successful operation" "400": description: "Invalid subscription id supplied" + "404": + description: "Entitlement not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/subscriptions/{subscriptionId}/undoChangePlan: put: tags: - "Subscription" summary: "Undo a pending change plan on an entitlement" - description: "" operationId: "undoChangeSubscriptionPlan" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10054,24 +10041,21 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/subscriptions/{subscriptionId}/bcd: put: tags: - "Subscription" summary: "Update the BCD associated to a subscription" - description: "" operationId: "updateSubscriptionBCD" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -10079,26 +10063,26 @@ paths: $ref: "#/definitions/Subscription" - name: "effectiveFromDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "forceNewBcdWithPastEffectiveDate" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10108,107 +10092,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/createSubscriptionWithAddOns: - post: - tags: - - "Subscription" - summary: "Create an entitlement with addOn products" - description: "" - operationId: "createSubscriptionWithAddOns" - consumes: - - "application/json" produces: - "application/json" - parameters: - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/Subscription" - - name: "entitlementDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "billingDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "migrated" - in: "query" - required: false - type: "boolean" - default: false - - name: "skipResponse" - in: "query" - required: false - type: "boolean" - default: false - - name: "renameKeyIfExistsAndUnused" - in: "query" - required: false - type: "boolean" - default: true - - name: "callCompletion" - in: "query" - required: false - type: "boolean" - default: false - - name: "callTimeoutSec" - in: "query" - required: false - type: "integer" - default: 3 - format: "int64" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "201": - description: "Subscriptions created successfully" - schema: - $ref: "#/definitions/Bundle" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] + consumes: + - "application/json" /1.0/kb/subscriptions/{subscriptionId}/quantity: put: tags: - "Subscription" summary: "Update the quantity associated to a subscription" - description: "" operationId: "updateSubscriptionQuantity" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -10216,26 +10116,26 @@ paths: $ref: "#/definitions/Subscription" - name: "effectiveFromDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "forceNewQuantityWithPastEffectiveDate" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10245,128 +10145,90 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/{subscriptionId}/block: - post: - tags: - - "Subscription" - summary: "Block a subscription" - description: "" - operationId: "addSubscriptionBlockingState" + produces: + - "application/json" consumes: - "application/json" + /1.0/kb/tagDefinitions: + get: + tags: + - "TagDefinition" + summary: "List tag definitions" + operationId: "getTagDefinitions" parameters: - - name: "subscriptionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/BlockingState" - - name: "requestedDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "pluginProperty" + - name: "audit" in: "query" required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" responses: - "201": - description: "Blocking state created successfully" + "200": + description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/BlockingState" - "400": - description: "Invalid subscription id supplied" - "404": - description: "Subscription not found" + $ref: "#/definitions/TagDefinition" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/subscriptions/{subscriptionId}/uncancel: - put: - tags: - - "Subscription" - summary: "Un-cancel an entitlement" - description: "" - operationId: "uncancelSubscriptionPlan" produces: - "application/json" + post: + tags: + - "TagDefinition" + summary: "Create a tag definition" + operationId: "createTagDefinition" parameters: - - name: "subscriptionId" - in: "path" + - in: "body" + name: "body" required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" + schema: + $ref: "#/definitions/TagDefinition" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "204": - description: "Successful operation" + "201": + description: "Tag definition created successfully" + schema: + $ref: "#/definitions/TagDefinition" "400": - description: "Invalid subscription id supplied" - "404": - description: "Entitlement not found" + description: "Invalid name or description supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/tagDefinitions/{tagDefinitionId}: get: tags: - "TagDefinition" summary: "Retrieve a tag definition" - description: "" operationId: "getTagDefinition" - produces: - - "application/json" parameters: - name: "tagDefinitionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -10387,33 +10249,32 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" delete: tags: - "TagDefinition" summary: "Delete a tag definition" - description: "" operationId: "deleteTagDefinition" - produces: - - "application/json" parameters: - name: "tagDefinitionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10423,91 +10284,49 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tagDefinitions: + produces: + - "application/json" + /1.0/kb/tagDefinitions/{tagDefinitionId}/auditLogsWithHistory: get: tags: - "TagDefinition" - summary: "List tag definitions" - description: "" - operationId: "getTagDefinitions" - produces: - - "application/json" + summary: "Retrieve tag definition audit logs with history by id" + operationId: "getTagDefinitionAuditLogsWithHistory" parameters: - - name: "audit" - in: "query" - required: false + - name: "tagDefinitionId" + in: "path" + required: true type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" schema: type: "array" items: - $ref: "#/definitions/TagDefinition" + $ref: "#/definitions/AuditLog" + "404": + description: "Account not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "TagDefinition" - summary: "Create a tag definition" - description: "" - operationId: "createTagDefinition" - consumes: - - "application/json" produces: - "application/json" + /1.0/kb/tags/{tagId}/auditLogsWithHistory: + get: + tags: + - "Tag" + summary: "Retrieve tag audit logs with history by id" + operationId: "getTagAuditLogsWithHistory" parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/TagDefinition" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "201": - description: "Tag definition created successfully" - schema: - $ref: "#/definitions/TagDefinition" - "400": - description: "Invalid name or description supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/tagDefinitions/{tagDefinitionId}/auditLogsWithHistory: - get: - tags: - - "TagDefinition" - summary: "Retrieve tag definition audit logs with history by id" - description: "" - operationId: "getTagDefinitionAuditLogsWithHistory" - produces: - - "application/json" - parameters: - - name: "tagDefinitionId" + - name: "tagId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -10521,28 +10340,27 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/tags/pagination: get: tags: - "Tag" summary: "List tags" - description: "" operationId: "getTags" - produces: - - "application/json" parameters: - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -10563,15 +10381,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/tags/search/{searchKey}: get: tags: - "Tag" summary: "Search tags" - description: "" operationId: "searchTags" - produces: - - "application/json" parameters: - name: "searchKey" in: "path" @@ -10580,16 +10397,16 @@ paths: pattern: ".*" - name: "offset" in: "query" - required: false type: "integer" - default: 0 format: "int64" + default: 0 + required: false - name: "limit" in: "query" - required: false type: "integer" - default: 100 format: "int64" + default: 100 + required: false - name: "audit" in: "query" required: false @@ -10610,49 +10427,19 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tags/{tagId}/auditLogsWithHistory: - get: - tags: - - "Tag" - summary: "Retrieve tag audit logs with history by id" - description: "" - operationId: "getTagAuditLogsWithHistory" produces: - "application/json" - parameters: - - name: "tagId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/AuditLog" - "404": - description: "Account not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] /1.0/kb/tenants: get: tags: - "Tenant" summary: "Retrieve a tenant by its API key" - description: "" operationId: "getTenantByApiKey" - produces: - - "application/json" parameters: - name: "apiKey" in: "query" - required: false type: "string" + required: false responses: "200": description: "successful operation" @@ -10662,16 +10449,13 @@ paths: description: "Tenant not found" security: - basicAuth: [] + produces: + - "application/json" post: tags: - "Tenant" summary: "Create a tenant" - description: "" operationId: "createTenant" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -10680,21 +10464,21 @@ paths: $ref: "#/definitions/Tenant" - name: "useGlobalDefault" in: "query" - required: false type: "boolean" default: false + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Tenant created successfully" @@ -10704,50 +10488,16 @@ paths: description: "Tenant already exists" security: - basicAuth: [] - /1.0/kb/tenants/{tenantId}: - get: - tags: - - "Tenant" - summary: "Retrieve a tenant by id" - description: "" - operationId: "getTenant" produces: - "application/json" - parameters: - - name: "tenantId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/Tenant" - "400": - description: "Invalid tenantId supplied" - "404": - description: "Tenant not found" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - /1.0/kb/tenants/userKeyValue/{keyName}: + consumes: + - "application/json" + /1.0/kb/tenants/uploadPerTenantConfig: get: tags: - "Tenant" - summary: "Retrieve a per tenant user key/value" - description: "" - operationId: "getUserKeyValue" - produces: - - "application/json" - parameters: - - name: "keyName" - in: "path" - required: true - type: "string" - pattern: ".*" + summary: "Retrieve a per tenant configuration (system properties)" + operationId: "getPerTenantConfiguration" responses: "200": description: "successful operation" @@ -10759,22 +10509,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Tenant" - summary: "Add a per tenant user key/value" - description: "" - operationId: "insertUserKeyValue" - consumes: - - "text/plain" - produces: - - "application/json" + summary: "Add a per tenant configuration (system properties)" + operationId: "uploadPerTenantConfiguration" parameters: - - name: "keyName" - in: "path" - required: true - type: "string" - pattern: ".*" - in: "body" name: "body" required: true @@ -10786,15 +10528,15 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Per tenant config uploaded successfully" + description: "Per tenant configuration uploaded successfully" schema: $ref: "#/definitions/TenantKeyValue" "400": @@ -10803,30 +10545,28 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "text/plain" delete: tags: - "Tenant" - summary: "Delete a per tenant user key/value" - description: "" - operationId: "deleteUserKeyValue" + summary: "Delete a per tenant configuration (system properties)" + operationId: "deletePerTenantConfiguration" parameters: - - name: "keyName" - in: "path" - required: true - type: "string" - pattern: ".*" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10841,10 +10581,7 @@ paths: tags: - "Tenant" summary: "Retrieve a per tenant configuration for a plugin" - description: "" operationId: "getPluginConfiguration" - produces: - - "application/json" parameters: - name: "pluginName" in: "path" @@ -10862,16 +10599,13 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Tenant" summary: "Add a per tenant configuration for a plugin" - description: "" operationId: "uploadPluginConfiguration" - consumes: - - "text/plain" - produces: - - "application/json" parameters: - name: "pluginName" in: "path" @@ -10889,12 +10623,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Plugin configuration uploaded successfully" @@ -10906,11 +10640,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "text/plain" delete: tags: - "Tenant" summary: "Delete a per tenant configuration for a plugin" - description: "" operationId: "deletePluginConfiguration" parameters: - name: "pluginName" @@ -10924,12 +10661,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -10939,16 +10676,18 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tenants/registerNotificationCallback: + /1.0/kb/tenants/uploadPluginPaymentStateMachineConfig/{pluginName}: get: tags: - "Tenant" - summary: "Retrieve a push notification" - description: "" - operationId: "getPushNotificationCallbacks" - produces: - - "application/json" - parameters: [] + summary: "Retrieve a per tenant payment state machine for a plugin" + operationId: "getPluginPaymentStateMachineConfig" + parameters: + - name: "pluginName" + in: "path" + required: true + type: "string" + pattern: ".*" responses: "200": description: "successful operation" @@ -10960,36 +10699,39 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Tenant" - summary: "Create a push notification" - description: "" - operationId: "registerPushNotificationCallback" - consumes: - - "application/json" - produces: - - "application/json" + summary: "Add a per tenant payment state machine for a plugin" + operationId: "uploadPluginPaymentStateMachineConfig" parameters: - - name: "cb" - in: "query" - required: false + - name: "pluginName" + in: "path" + required: true type: "string" + pattern: ".*" + - in: "body" + name: "body" + required: true + schema: + type: "string" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Push notification registered successfully" + description: "Per tenant state machine uploaded successfully" schema: $ref: "#/definitions/TenantKeyValue" "400": @@ -10998,25 +10740,33 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "text/plain" delete: tags: - "Tenant" - summary: "Delete a push notification" - description: "" - operationId: "deletePushNotificationCallbacks" + summary: "Delete a per tenant payment state machine for a plugin" + operationId: "deletePluginPaymentStateMachineConfig" parameters: - - name: "X-Killbill-CreatedBy" + - name: "pluginName" + in: "path" + required: true + type: "string" + pattern: ".*" + - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -11026,86 +10776,50 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tenants/uploadPerTenantConfig/{keyPrefix}/search: + /1.0/kb/tenants/registerNotificationCallback: get: tags: - "Tenant" - summary: "Retrieve a per tenant key value based on key prefix" - description: "" - operationId: "getAllPluginConfiguration" - produces: - - "application/json" - parameters: - - name: "keyPrefix" - in: "path" - required: true - type: "string" - pattern: ".*" + summary: "Retrieve a push notification" + operationId: "getPushNotificationCallbacks" responses: "200": description: "successful operation" schema: - type: "array" - items: - $ref: "#/definitions/TenantKeyValue" + $ref: "#/definitions/TenantKeyValue" "400": description: "Invalid tenantId supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tenants/uploadPerTenantConfig: - get: - tags: - - "Tenant" - summary: "Retrieve a per tenant configuration (system properties)" - description: "" - operationId: "getPerTenantConfiguration" produces: - "application/json" - parameters: [] - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/TenantKeyValue" - "400": - description: "Invalid tenantId supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] post: tags: - "Tenant" - summary: "Add a per tenant configuration (system properties)" - description: "" - operationId: "uploadPerTenantConfiguration" - consumes: - - "text/plain" - produces: - - "application/json" + summary: "Create a push notification" + operationId: "registerPushNotificationCallback" parameters: - - in: "body" - name: "body" - required: true - schema: - type: "string" + - name: "cb" + in: "query" + type: "string" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Per tenant configuration uploaded successfully" + description: "Push notification registered successfully" schema: $ref: "#/definitions/TenantKeyValue" "400": @@ -11114,12 +10828,15 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" delete: tags: - "Tenant" - summary: "Delete a per tenant configuration (system properties)" - description: "" - operationId: "deletePerTenantConfiguration" + summary: "Delete a push notification" + operationId: "deletePushNotificationCallbacks" parameters: - name: "X-Killbill-CreatedBy" in: "header" @@ -11127,12 +10844,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -11142,17 +10859,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/tenants/uploadPluginPaymentStateMachineConfig/{pluginName}: + /1.0/kb/tenants/userKeyValue/{keyName}: get: tags: - "Tenant" - summary: "Retrieve a per tenant payment state machine for a plugin" - description: "" - operationId: "getPluginPaymentStateMachineConfig" - produces: - - "application/json" + summary: "Retrieve a per tenant user key/value" + operationId: "getUserKeyValue" parameters: - - name: "pluginName" + - name: "keyName" in: "path" required: true type: "string" @@ -11168,18 +10882,15 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "Tenant" - summary: "Add a per tenant payment state machine for a plugin" - description: "" - operationId: "uploadPluginPaymentStateMachineConfig" - consumes: - - "text/plain" - produces: - - "application/json" + summary: "Add a per tenant user key/value" + operationId: "insertUserKeyValue" parameters: - - name: "pluginName" + - name: "keyName" in: "path" required: true type: "string" @@ -11195,15 +10906,15 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": - description: "Per tenant state machine uploaded successfully" + description: "Per tenant config uploaded successfully" schema: $ref: "#/definitions/TenantKeyValue" "400": @@ -11212,14 +10923,17 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "text/plain" delete: tags: - "Tenant" - summary: "Delete a per tenant payment state machine for a plugin" - description: "" - operationId: "deletePluginPaymentStateMachineConfig" + summary: "Delete a per tenant user key/value" + operationId: "deleteUserKeyValue" parameters: - - name: "pluginName" + - name: "keyName" in: "path" required: true type: "string" @@ -11230,12 +10944,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "204": description: "Successful operation" @@ -11245,27 +10959,74 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentTransactions/{transactionId}/tags: + /1.0/kb/tenants/uploadPerTenantConfig/{keyPrefix}/search: get: tags: - - "PaymentTransaction" - summary: "Retrieve payment transaction tags" - description: "" - operationId: "getTransactionTags" + - "Tenant" + summary: "Retrieve a per tenant key value based on key prefix" + operationId: "getAllPluginConfiguration" + parameters: + - name: "keyPrefix" + in: "path" + required: true + type: "string" + pattern: ".*" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/TenantKeyValue" + "400": + description: "Invalid tenantId supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] produces: - "application/json" + /1.0/kb/tenants/{tenantId}: + get: + tags: + - "Tenant" + summary: "Retrieve a tenant by id" + operationId: "getTenant" parameters: - - name: "transactionId" + - name: "tenantId" in: "path" required: true type: "string" + format: "uuid" pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + responses: + "200": + description: "successful operation" + schema: + $ref: "#/definitions/Tenant" + "400": + description: "Invalid tenantId supplied" + "404": + description: "Tenant not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + /1.0/kb/paymentTransactions/{transactionId}/customFields: + get: + tags: + - "PaymentTransaction" + summary: "Retrieve payment transaction custom fields" + operationId: "getTransactionCustomFields" + parameters: + - name: "transactionId" + in: "path" + required: true + type: "string" format: "uuid" - - name: "includedDeleted" - in: "query" - required: false - type: "boolean" - default: false + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "audit" in: "query" required: false @@ -11281,102 +11042,277 @@ paths: schema: type: "array" items: - $ref: "#/definitions/Tag" + $ref: "#/definitions/CustomField" "400": description: "Invalid transaction id supplied" - "404": - description: "Invoice not found" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - post: - tags: - - "PaymentTransaction" - summary: "Add tags to payment transaction" - description: "" - operationId: "createTransactionTags" - consumes: - - "application/json" produces: - "application/json" + put: + tags: + - "PaymentTransaction" + summary: "Modify custom fields to payment transaction" + operationId: "modifyTransactionCustomFields" parameters: - name: "transactionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true schema: type: "array" items: - type: "string" - format: "uuid" + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: - "201": - description: "Tag created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/Tag" + "204": + description: "Successful operation" "400": description: "Invalid transaction id supplied" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - delete: - tags: - - "PaymentTransaction" - summary: "Remove tags from payment transaction" - description: "" - operationId: "deleteTransactionTags" - consumes: - - "application/json" produces: - "application/json" + consumes: + - "application/json" + post: + tags: + - "PaymentTransaction" + summary: "Add custom fields to payment transaction" + operationId: "createTransactionCustomFields" parameters: - name: "transactionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "tagDef" - in: "query" - required: false - type: "array" - items: - type: "string" - format: "uuid" - collectionFormat: "multi" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" + type: "string" + required: false + responses: + "201": + description: "Custom field created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/CustomField" + "400": + description: "Invalid transaction id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + delete: + tags: + - "PaymentTransaction" + summary: "Remove custom fields from payment transaction" + operationId: "deleteTransactionCustomFields" + parameters: + - name: "transactionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "customField" + in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" + required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "204": + description: "Successful operation" + "400": + description: "Invalid transaction id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + /1.0/kb/paymentTransactions/{transactionId}/tags: + get: + tags: + - "PaymentTransaction" + summary: "Retrieve payment transaction tags" + operationId: "getTransactionTags" + parameters: + - name: "transactionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "includedDeleted" + in: "query" + type: "boolean" + default: false + required: false + - name: "audit" + in: "query" + required: false + type: "string" + default: "NONE" + enum: + - "FULL" + - "MINIMAL" + - "NONE" + responses: + "200": + description: "successful operation" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid transaction id supplied" + "404": + description: "Invoice not found" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + post: + tags: + - "PaymentTransaction" + summary: "Add tags to payment transaction" + operationId: "createTransactionTags" + parameters: + - name: "transactionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - in: "body" + name: "body" + required: true + schema: + type: "array" + items: + type: "string" + format: "uuid" + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" + type: "string" + required: false + responses: + "201": + description: "Tag created successfully" + schema: + type: "array" + items: + $ref: "#/definitions/Tag" + "400": + description: "Invalid transaction id supplied" + security: + - basicAuth: [] + - Killbill Api Key: [] + - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" + delete: + tags: + - "PaymentTransaction" + summary: "Remove tags from payment transaction" + operationId: "deleteTransactionTags" + parameters: + - name: "transactionId" + in: "path" + required: true + type: "string" + format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "tagDef" + in: "query" + type: "array" + items: + type: "string" + format: "uuid" + collectionFormat: "multi" required: false + - name: "X-Killbill-CreatedBy" + in: "header" + required: true + type: "string" + - name: "X-Killbill-Reason" + in: "header" + type: "string" + required: false + - name: "X-Killbill-Comment" + in: "header" type: "string" + required: false responses: "204": description: "Successful operation" @@ -11386,15 +11322,16 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/paymentTransactions: get: tags: - "PaymentTransaction" summary: "Retrieve a payment by transaction external key" - description: "" operationId: "getPaymentByTransactionExternalKey" - produces: - - "application/json" parameters: - name: "transactionExternalKey" in: "query" @@ -11402,21 +11339,21 @@ paths: type: "string" - name: "withPluginInfo" in: "query" - required: false type: "boolean" default: false + required: false - name: "withAttempts" in: "query" - required: false type: "boolean" default: false + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -11437,39 +11374,38 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/paymentTransactions/{transactionId}: get: tags: - "PaymentTransaction" summary: "Retrieve a payment by transaction id" - description: "" operationId: "getPaymentByTransactionId" - produces: - - "application/json" parameters: - name: "transactionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "withPluginInfo" in: "query" - required: false type: "boolean" default: false + required: false - name: "withAttempts" in: "query" - required: false type: "boolean" default: false + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "audit" in: "query" required: false @@ -11490,23 +11426,20 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" post: tags: - "PaymentTransaction" summary: "Mark a pending payment transaction as succeeded or failed" - description: "" operationId: "notifyStateChanged" - consumes: - - "application/json" - produces: - - "application/json" parameters: - name: "transactionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - in: "body" name: "body" required: true @@ -11514,23 +11447,23 @@ paths: $ref: "#/definitions/PaymentTransaction" - name: "controlPluginName" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false - name: "X-Killbill-CreatedBy" in: "header" required: true type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "201": description: "Successfully notifiy state change" @@ -11544,22 +11477,23 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" + consumes: + - "application/json" /1.0/kb/paymentTransactions/{transactionId}/auditLogsWithHistory: get: tags: - "PaymentTransaction" summary: "Retrieve payment transaction audit logs with history by id" - description: "" operationId: "getTransactionAuditLogsWithHistory" - produces: - - "application/json" parameters: - name: "transactionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" responses: "200": description: "successful operation" @@ -11573,221 +11507,85 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/paymentTransactions/{transactionId}/customFields: - get: - tags: - - "PaymentTransaction" - summary: "Retrieve payment transaction custom fields" - description: "" - operationId: "getTransactionCustomFields" produces: - "application/json" + /1.0/kb/usages/{subscriptionId}: + get: + tags: + - "Usage" + summary: "Retrieve usage for a subscription" + operationId: "getAllUsage" parameters: - - name: "transactionId" + - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" - - name: "audit" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" + - name: "startDate" in: "query" + type: "string" + format: "date" required: false + - name: "endDate" + in: "query" type: "string" - default: "NONE" - enum: - - "FULL" - - "MINIMAL" - - "NONE" - responses: - "200": - description: "successful operation" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - "400": - description: "Invalid transaction id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - post: - tags: - - "PaymentTransaction" - summary: "Add custom fields to payment transaction" - description: "" - operationId: "createTransactionCustomFields" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "transactionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" - required: false - type: "string" - responses: - "201": - description: "Custom field created successfully" - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - "400": - description: "Invalid transaction id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - put: - tags: - - "PaymentTransaction" - summary: "Modify custom fields to payment transaction" - description: "" - operationId: "modifyTransactionCustomFields" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "transactionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - in: "body" - name: "body" - required: true - schema: - type: "array" - items: - $ref: "#/definitions/CustomField" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" + format: "date" required: false - type: "string" - responses: - "204": - description: "Successful operation" - "400": - description: "Invalid transaction id supplied" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] - delete: - tags: - - "PaymentTransaction" - summary: "Remove custom fields from payment transaction" - description: "" - operationId: "deleteTransactionCustomFields" - consumes: - - "application/json" - produces: - - "application/json" - parameters: - - name: "transactionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "customField" + - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" - format: "uuid" collectionFormat: "multi" - - name: "X-Killbill-CreatedBy" - in: "header" - required: true - type: "string" - - name: "X-Killbill-Reason" - in: "header" - required: false - type: "string" - - name: "X-Killbill-Comment" - in: "header" required: false - type: "string" responses: - "204": - description: "Successful operation" + "200": + description: "successful operation" + schema: + $ref: "#/definitions/RolledUpUsage" "400": - description: "Invalid transaction id supplied" + description: "Missing start date or end date" security: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/usages/{subscriptionId}/{unitType}: get: tags: - "Usage" summary: "Retrieve usage for a subscription and unit type" - description: "" operationId: "getUsage" - produces: - - "application/json" parameters: - name: "subscriptionId" in: "path" required: true type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" format: "uuid" + pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - name: "unitType" in: "path" required: true type: "string" - name: "startDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "endDate" in: "query" - required: false type: "string" format: "date" + required: false - name: "pluginProperty" in: "query" - required: false type: "array" items: type: "string" collectionFormat: "multi" + required: false responses: "200": description: "successful operation" @@ -11799,17 +11597,14 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] + produces: + - "application/json" /1.0/kb/usages: post: tags: - "Usage" summary: "Record usage for a subscription" - description: "" operationId: "recordUsage" - consumes: - - "application/json" - produces: - - "application/json" parameters: - in: "body" name: "body" @@ -11822,12 +11617,12 @@ paths: type: "string" - name: "X-Killbill-Reason" in: "header" - required: false type: "string" + required: false - name: "X-Killbill-Comment" in: "header" - required: false type: "string" + required: false responses: "200": description: "Successfully recorded usage data change" @@ -11837,61 +11632,10 @@ paths: - basicAuth: [] - Killbill Api Key: [] - Killbill Api Secret: [] - /1.0/kb/usages/{subscriptionId}: - get: - tags: - - "Usage" - summary: "Retrieve usage for a subscription" - description: "" - operationId: "getAllUsage" produces: - "application/json" - parameters: - - name: "subscriptionId" - in: "path" - required: true - type: "string" - pattern: "\\w+-\\w+-\\w+-\\w+-\\w+" - format: "uuid" - - name: "startDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "endDate" - in: "query" - required: false - type: "string" - format: "date" - - name: "pluginProperty" - in: "query" - required: false - type: "array" - items: - type: "string" - collectionFormat: "multi" - responses: - "200": - description: "successful operation" - schema: - $ref: "#/definitions/RolledUpUsage" - "400": - description: "Missing start date or end date" - security: - - basicAuth: [] - - Killbill Api Key: [] - - Killbill Api Secret: [] -securityDefinitions: - basicAuth: - type: "basic" - Killbill Api Key: - type: "apiKey" - name: "X-Killbill-ApiKey" - in: "header" - Killbill Api Secret: - type: "apiKey" - name: "X-Killbill-ApiSecret" - in: "header" + consumes: + - "application/json" definitions: AuditLog: type: "object" @@ -11936,53 +11680,56 @@ definitions: type: "string" history: $ref: "#/definitions/Entity" - Entity: + BlockingState: type: "object" properties: - id: + blockedId: type: "string" format: "uuid" - updatedDate: + stateName: type: "string" - format: "date-time" - createdDate: + service: + type: "string" + isBlockChange: + type: "boolean" + isBlockEntitlement: + type: "boolean" + isBlockBilling: + type: "boolean" + effectiveDate: type: "string" format: "date-time" - Tag: + type: + type: "string" + enum: + - "SUBSCRIPTION" + - "SUBSCRIPTION_BUNDLE" + - "ACCOUNT" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + Entity: type: "object" properties: - tagId: + id: type: "string" format: "uuid" - objectType: + createdDate: type: "string" - enum: - - "ACCOUNT" - - "ACCOUNT_EMAIL" - - "BLOCKING_STATES" - - "BUNDLE" - - "CUSTOM_FIELD" - - "INVOICE" - - "PAYMENT" - - "TRANSACTION" - - "INVOICE_ITEM" - - "INVOICE_PAYMENT" - - "SUBSCRIPTION" - - "SUBSCRIPTION_EVENT" - - "SERVICE_BROADCAST" - - "PAYMENT_ATTEMPT" - - "PAYMENT_METHOD" - - "TAG" - - "TAG_DEFINITION" - - "TENANT" - - "TENANT_KVS" - objectId: + format: "date-time" + updatedDate: type: "string" - format: "uuid" - tagDefinitionId: + format: "date-time" + AccountEmail: + required: + - "email" + type: "object" + properties: + accountId: type: "string" format: "uuid" - tagDefinitionName: + email: type: "string" auditLogs: type: "array" @@ -12217,252 +11964,434 @@ definitions: type: "array" items: $ref: "#/definitions/AuditLog" - InvoicePayment: + CustomField: + required: + - "name" + - "value" type: "object" properties: - targetInvoiceId: + customFieldId: type: "string" format: "uuid" - accountId: + objectId: type: "string" format: "uuid" - paymentId: + objectType: + type: "string" + enum: + - "ACCOUNT" + - "ACCOUNT_EMAIL" + - "BLOCKING_STATES" + - "BUNDLE" + - "CUSTOM_FIELD" + - "INVOICE" + - "PAYMENT" + - "TRANSACTION" + - "INVOICE_ITEM" + - "INVOICE_PAYMENT" + - "SUBSCRIPTION" + - "SUBSCRIPTION_EVENT" + - "SERVICE_BROADCAST" + - "PAYMENT_ATTEMPT" + - "PAYMENT_METHOD" + - "TAG" + - "TAG_DEFINITION" + - "TENANT" + - "TENANT_KVS" + name: + type: "string" + value: + type: "string" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + Tag: + type: "object" + properties: + tagId: type: "string" format: "uuid" - paymentNumber: + objectType: type: "string" - paymentExternalKey: + enum: + - "ACCOUNT" + - "ACCOUNT_EMAIL" + - "BLOCKING_STATES" + - "BUNDLE" + - "CUSTOM_FIELD" + - "INVOICE" + - "PAYMENT" + - "TRANSACTION" + - "INVOICE_ITEM" + - "INVOICE_PAYMENT" + - "SUBSCRIPTION" + - "SUBSCRIPTION_EVENT" + - "SERVICE_BROADCAST" + - "PAYMENT_ATTEMPT" + - "PAYMENT_METHOD" + - "TAG" + - "TAG_DEFINITION" + - "TENANT" + - "TENANT_KVS" + objectId: type: "string" - authAmount: - type: "number" - capturedAmount: - type: "number" - purchasedAmount: + format: "uuid" + tagDefinitionId: + type: "string" + format: "uuid" + tagDefinitionName: + type: "string" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + PaymentMethod: + type: "object" + properties: + paymentMethodId: + type: "string" + format: "uuid" + externalKey: + type: "string" + accountId: + type: "string" + format: "uuid" + isDefault: + type: "boolean" + pluginName: + type: "string" + pluginInfo: + $ref: "#/definitions/PaymentMethodPluginDetail" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + PaymentMethodPluginDetail: + type: "object" + properties: + externalPaymentMethodId: + type: "string" + isDefaultPaymentMethod: + type: "boolean" + properties: + type: "array" + items: + $ref: "#/definitions/PluginProperty" + PluginProperty: + type: "object" + properties: + key: + type: "string" + value: + type: "string" + isUpdatable: + type: "boolean" + BlockPrice: + type: "object" + properties: + unitName: + type: "string" + size: type: "number" - refundedAmount: + price: type: "number" - creditedAmount: + max: type: "number" - currency: + Bundle: + required: + - "accountId" + type: "object" + properties: + accountId: + type: "string" + format: "uuid" + bundleId: + type: "string" + format: "uuid" + externalKey: + type: "string" + subscriptions: + type: "array" + items: + $ref: "#/definitions/Subscription" + timeline: + $ref: "#/definitions/BundleTimeline" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + BundleTimeline: + type: "object" + properties: + accountId: + type: "string" + format: "uuid" + bundleId: + type: "string" + format: "uuid" + externalKey: + type: "string" + events: + type: "array" + items: + $ref: "#/definitions/EventSubscription" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + EventSubscription: + type: "object" + properties: + eventId: + type: "string" + format: "uuid" + billingPeriod: type: "string" enum: - - "AED" - - "AFN" - - "ALL" - - "AMD" - - "ANG" - - "AOA" - - "ARS" - - "AUD" - - "AWG" - - "AZN" - - "BAM" - - "BBD" - - "BDT" - - "BGN" - - "BHD" - - "BIF" - - "BMD" - - "BND" - - "BOB" - - "BRL" - - "BSD" - - "BTN" - - "BWP" - - "BYR" - - "BZD" - - "CAD" - - "CDF" - - "CHF" - - "CLP" - - "CNY" - - "COP" - - "CRC" - - "CUC" - - "CUP" - - "CVE" - - "CZK" - - "DJF" - - "DKK" - - "DOP" - - "DZD" - - "EGP" - - "ERN" - - "ETB" - - "EUR" - - "FJD" - - "FKP" - - "GBP" - - "GEL" - - "GGP" - - "GHS" - - "GIP" - - "GMD" - - "GNF" - - "GTQ" - - "GYD" - - "HKD" - - "HNL" - - "HRK" - - "HTG" - - "HUF" - - "IDR" - - "ILS" - - "IMP" - - "INR" - - "IQD" - - "IRR" - - "ISK" - - "JEP" - - "JMD" - - "JOD" - - "JPY" - - "KES" - - "KGS" - - "KHR" - - "KMF" - - "KPW" - - "KRW" - - "KWD" - - "KYD" - - "KZT" - - "LAK" - - "LBP" - - "LKR" - - "LRD" - - "LSL" - - "LTL" - - "LVL" - - "LYD" - - "MAD" - - "MDL" - - "MGA" - - "MKD" - - "MMK" - - "MNT" - - "MOP" - - "MRO" - - "MUR" - - "MVR" - - "MWK" - - "MXN" - - "MYR" - - "MZN" - - "NAD" - - "NGN" - - "NIO" - - "NOK" - - "NPR" - - "NZD" - - "OMR" - - "PAB" - - "PEN" - - "PGK" - - "PHP" - - "PKR" - - "PLN" - - "PYG" - - "QAR" - - "RON" - - "RSD" - - "RUB" - - "RWF" - - "SAR" - - "SBD" - - "SCR" - - "SDG" - - "SEK" - - "SGD" - - "SHP" - - "SLL" - - "SOS" - - "SPL" - - "SRD" - - "STD" - - "SVC" - - "SYP" - - "SZL" - - "THB" - - "TJS" - - "TMT" - - "TND" - - "TOP" - - "TRY" - - "TTD" - - "TVD" - - "TWD" - - "TZS" - - "UAH" - - "UGX" - - "USD" - - "UYU" - - "UZS" - - "VEF" - - "VND" - - "VUV" - - "WST" - - "XAF" - - "XCD" - - "XDR" - - "XOF" - - "XPF" - - "YER" - - "ZAR" - - "ZMW" - - "ZWD" - - "BTC" - paymentMethodId: + - "DAILY" + - "WEEKLY" + - "BIWEEKLY" + - "THIRTY_DAYS" + - "THIRTY_ONE_DAYS" + - "SIXTY_DAYS" + - "NINETY_DAYS" + - "MONTHLY" + - "BIMESTRIAL" + - "QUARTERLY" + - "TRIANNUAL" + - "BIANNUAL" + - "ANNUAL" + - "SESQUIENNIAL" + - "BIENNIAL" + - "TRIENNIAL" + - "NO_BILLING_PERIOD" + effectiveDate: + type: "string" + format: "date-time" + catalogEffectiveDate: + type: "string" + format: "date-time" + plan: + type: "string" + product: + type: "string" + priceList: + type: "string" + eventType: + type: "string" + enum: + - "START_ENTITLEMENT" + - "START_BILLING" + - "PAUSE_ENTITLEMENT" + - "PAUSE_BILLING" + - "RESUME_ENTITLEMENT" + - "RESUME_BILLING" + - "PHASE" + - "CHANGE" + - "EXPIRED" + - "BCD_UPDATE" + - "QUANTITY_UPDATE" + - "STOP_ENTITLEMENT" + - "STOP_BILLING" + - "SERVICE_STATE_CHANGE" + isBlockedBilling: + type: "boolean" + isBlockedEntitlement: + type: "boolean" + serviceName: + type: "string" + serviceStateName: + type: "string" + phase: type: "string" - format: "uuid" - transactions: - type: "array" - items: - $ref: "#/definitions/PaymentTransaction" - paymentAttempts: - type: "array" - items: - $ref: "#/definitions/PaymentAttempt" auditLogs: type: "array" items: $ref: "#/definitions/AuditLog" - PaymentAttempt: + PhasePrice: + type: "object" + properties: + planName: + type: "string" + phaseName: + type: "string" + phaseType: + type: "string" + fixedPrice: + type: "number" + recurringPrice: + type: "number" + usagePrices: + type: "array" + items: + $ref: "#/definitions/UsagePrice" + Subscription: + required: + - "billingPeriod" + - "planName" + - "priceList" + - "productName" type: "object" properties: accountId: type: "string" format: "uuid" - paymentMethodId: + bundleId: type: "string" format: "uuid" - paymentExternalKey: + bundleExternalKey: type: "string" - transactionId: + subscriptionId: type: "string" format: "uuid" - transactionExternalKey: + externalKey: type: "string" - transactionType: + startDate: + type: "string" + format: "date-time" + productName: + type: "string" + productCategory: type: "string" enum: - - "AUTHORIZE" - - "CAPTURE" - - "CHARGEBACK" - - "CREDIT" - - "PURCHASE" - - "REFUND" - - "VOID" - effectiveDate: + - "BASE" + - "ADD_ON" + - "STANDALONE" + billingPeriod: + type: "string" + enum: + - "DAILY" + - "WEEKLY" + - "BIWEEKLY" + - "THIRTY_DAYS" + - "THIRTY_ONE_DAYS" + - "SIXTY_DAYS" + - "NINETY_DAYS" + - "MONTHLY" + - "BIMESTRIAL" + - "QUARTERLY" + - "TRIANNUAL" + - "BIANNUAL" + - "ANNUAL" + - "SESQUIENNIAL" + - "BIENNIAL" + - "TRIENNIAL" + - "NO_BILLING_PERIOD" + phaseType: + type: "string" + enum: + - "TRIAL" + - "DISCOUNT" + - "FIXEDTERM" + - "EVERGREEN" + priceList: + type: "string" + planName: + type: "string" + state: + type: "string" + enum: + - "PENDING" + - "ACTIVE" + - "BLOCKED" + - "CANCELLED" + - "EXPIRED" + sourceType: + type: "string" + enum: + - "NATIVE" + - "MIGRATED" + - "TRANSFERRED" + cancelledDate: type: "string" format: "date-time" - stateName: + chargedThroughDate: + type: "string" + format: "date" + billingStartDate: + type: "string" + format: "date-time" + billingEndDate: + type: "string" + format: "date-time" + billCycleDayLocal: + type: "integer" + format: "int32" + quantity: + type: "integer" + format: "int32" + events: + type: "array" + items: + $ref: "#/definitions/EventSubscription" + priceOverrides: + type: "array" + items: + $ref: "#/definitions/PhasePrice" + prices: + type: "array" + items: + $ref: "#/definitions/PhasePrice" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + TierPrice: + type: "object" + properties: + blockPrices: + type: "array" + items: + $ref: "#/definitions/BlockPrice" + UsagePrice: + type: "object" + properties: + usageName: + type: "string" + usageType: type: "string" + enum: + - "CAPACITY" + - "CONSUMABLE" + billingMode: + type: "string" + enum: + - "IN_ADVANCE" + - "IN_ARREAR" + tierBlockPolicy: + type: "string" + enum: + - "ALL_TIERS" + - "TOP_TIER" + tierPrices: + type: "array" + items: + $ref: "#/definitions/TierPrice" + AccountTimeline: + type: "object" + properties: + account: + $ref: "#/definitions/Account" + bundles: + type: "array" + items: + $ref: "#/definitions/Bundle" + invoices: + type: "array" + items: + $ref: "#/definitions/Invoice" + payments: + type: "array" + items: + $ref: "#/definitions/InvoicePayment" + Invoice: + type: "object" + properties: amount: type: "number" - description: "Transaction amount, required except for void operations" currency: type: "string" - description: "Amount currency (account currency unless specified)" enum: - "AED" - "AFN" @@ -12629,46 +12558,128 @@ definitions: - "ZMW" - "ZWD" - "BTC" - pluginName: + status: type: "string" - pluginProperties: + enum: + - "DRAFT" + - "COMMITTED" + - "VOID" + creditAdj: + type: "number" + refundAdj: + type: "number" + invoiceId: + type: "string" + format: "uuid" + invoiceDate: + type: "string" + format: "date" + targetDate: + type: "string" + format: "date" + invoiceNumber: + type: "string" + balance: + type: "number" + accountId: + type: "string" + format: "uuid" + bundleKeys: + type: "string" + credits: type: "array" items: - $ref: "#/definitions/PluginProperty" + $ref: "#/definitions/InvoiceItem" + items: + type: "array" + items: + $ref: "#/definitions/InvoiceItem" + trackingIds: + type: "array" + items: + type: "string" + isParentInvoice: + type: "boolean" + parentInvoiceId: + type: "string" + format: "uuid" + parentAccountId: + type: "string" + format: "uuid" auditLogs: type: "array" items: $ref: "#/definitions/AuditLog" - PaymentTransaction: + InvoiceItem: + required: + - "accountId" + - "invoiceItemId" type: "object" properties: - transactionId: + invoiceItemId: + type: "string" + format: "uuid" + invoiceId: type: "string" format: "uuid" - transactionExternalKey: + linkedInvoiceItemId: type: "string" - paymentId: + format: "uuid" + accountId: type: "string" format: "uuid" - description: "Associated payment id, required when notifying state transitions" - paymentExternalKey: + childAccountId: type: "string" - transactionType: + format: "uuid" + bundleId: + type: "string" + format: "uuid" + subscriptionId: + type: "string" + format: "uuid" + productName: + type: "string" + planName: + type: "string" + phaseName: + type: "string" + usageName: + type: "string" + prettyProductName: + type: "string" + prettyPlanName: + type: "string" + prettyPhaseName: + type: "string" + prettyUsageName: + type: "string" + itemType: type: "string" enum: - - "AUTHORIZE" - - "CAPTURE" - - "CHARGEBACK" - - "CREDIT" - - "PURCHASE" - - "REFUND" - - "VOID" + - "EXTERNAL_CHARGE" + - "FIXED" + - "RECURRING" + - "REPAIR_ADJ" + - "CBA_ADJ" + - "CREDIT_ADJ" + - "ITEM_ADJ" + - "USAGE" + - "TAX" + - "PARENT_SUMMARY" + description: + type: "string" + startDate: + type: "string" + format: "date" + endDate: + type: "string" + format: "date" amount: type: "number" - description: "Transaction amount, required except for void operations" + rate: + type: "number" currency: type: "string" - description: "Amount currency (account currency unless specified)" enum: - "AED" - "AFN" @@ -12835,12 +12846,48 @@ definitions: - "ZMW" - "ZWD" - "BTC" - effectiveDate: + quantity: + type: "number" + itemDetails: + type: "string" + catalogEffectiveDate: type: "string" format: "date-time" - processedAmount: + childItems: + type: "array" + items: + $ref: "#/definitions/InvoiceItem" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + InvoicePayment: + type: "object" + properties: + targetInvoiceId: + type: "string" + format: "uuid" + accountId: + type: "string" + format: "uuid" + paymentId: + type: "string" + format: "uuid" + paymentNumber: + type: "string" + paymentExternalKey: + type: "string" + authAmount: type: "number" - processedCurrency: + capturedAmount: + type: "number" + purchasedAmount: + type: "number" + refundedAmount: + type: "number" + creditedAmount: + type: "number" + currency: type: "string" enum: - "AED" @@ -13008,359 +13055,264 @@ definitions: - "ZMW" - "ZWD" - "BTC" - status: - type: "string" - description: "Transaction status, required for state change notifications" - enum: - - "SUCCESS" - - "UNKNOWN" - - "PENDING" - - "PAYMENT_FAILURE" - - "PLUGIN_FAILURE" - - "PAYMENT_SYSTEM_OFF" - gatewayErrorCode: - type: "string" - gatewayErrorMsg: - type: "string" - firstPaymentReferenceId: - type: "string" - secondPaymentReferenceId: - type: "string" - properties: - type: "array" - items: - $ref: "#/definitions/PluginProperty" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - PluginProperty: - type: "object" - properties: - key: - type: "string" - value: - type: "string" - isUpdatable: - type: "boolean" - BlockPrice: - type: "object" - properties: - unitName: - type: "string" - size: - type: "number" - price: - type: "number" - max: - type: "number" - Bundle: - type: "object" - required: - - "accountId" - properties: - accountId: - type: "string" - format: "uuid" - bundleId: - type: "string" - format: "uuid" - externalKey: - type: "string" - subscriptions: - type: "array" - items: - $ref: "#/definitions/Subscription" - timeline: - $ref: "#/definitions/BundleTimeline" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - BundleTimeline: - type: "object" - properties: - accountId: - type: "string" - format: "uuid" - bundleId: - type: "string" - format: "uuid" - externalKey: - type: "string" - events: - type: "array" - items: - $ref: "#/definitions/EventSubscription" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - EventSubscription: - type: "object" - properties: - eventId: + paymentMethodId: type: "string" format: "uuid" - billingPeriod: - type: "string" - enum: - - "DAILY" - - "WEEKLY" - - "BIWEEKLY" - - "THIRTY_DAYS" - - "THIRTY_ONE_DAYS" - - "SIXTY_DAYS" - - "NINETY_DAYS" - - "MONTHLY" - - "BIMESTRIAL" - - "QUARTERLY" - - "TRIANNUAL" - - "BIANNUAL" - - "ANNUAL" - - "SESQUIENNIAL" - - "BIENNIAL" - - "TRIENNIAL" - - "NO_BILLING_PERIOD" - effectiveDate: - type: "string" - format: "date-time" - catalogEffectiveDate: - type: "string" - format: "date-time" - plan: - type: "string" - product: - type: "string" - priceList: - type: "string" - eventType: - type: "string" - enum: - - "START_ENTITLEMENT" - - "START_BILLING" - - "PAUSE_ENTITLEMENT" - - "PAUSE_BILLING" - - "RESUME_ENTITLEMENT" - - "RESUME_BILLING" - - "PHASE" - - "CHANGE" - - "STOP_ENTITLEMENT" - - "STOP_BILLING" - - "SERVICE_STATE_CHANGE" - isBlockedBilling: - type: "boolean" - isBlockedEntitlement: - type: "boolean" - serviceName: - type: "string" - serviceStateName: - type: "string" - phase: - type: "string" - auditLogs: + transactions: type: "array" items: - $ref: "#/definitions/AuditLog" - PhasePrice: - type: "object" - properties: - planName: - type: "string" - phaseName: - type: "string" - phaseType: - type: "string" - fixedPrice: - type: "number" - recurringPrice: - type: "number" - usagePrices: + $ref: "#/definitions/PaymentTransaction" + paymentAttempts: type: "array" items: - $ref: "#/definitions/UsagePrice" - Subscription: + $ref: "#/definitions/PaymentAttempt" + auditLogs: + type: "array" + items: + $ref: "#/definitions/AuditLog" + PaymentAttempt: type: "object" - required: - - "billingPeriod" - - "planName" - - "priceList" - - "productName" properties: accountId: type: "string" format: "uuid" - bundleId: + paymentMethodId: type: "string" format: "uuid" - bundleExternalKey: + paymentExternalKey: type: "string" - subscriptionId: + transactionId: type: "string" format: "uuid" - externalKey: - type: "string" - startDate: - type: "string" - format: "date-time" - productName: - type: "string" - productCategory: - type: "string" - enum: - - "BASE" - - "ADD_ON" - - "STANDALONE" - billingPeriod: - type: "string" - enum: - - "DAILY" - - "WEEKLY" - - "BIWEEKLY" - - "THIRTY_DAYS" - - "THIRTY_ONE_DAYS" - - "SIXTY_DAYS" - - "NINETY_DAYS" - - "MONTHLY" - - "BIMESTRIAL" - - "QUARTERLY" - - "TRIANNUAL" - - "BIANNUAL" - - "ANNUAL" - - "SESQUIENNIAL" - - "BIENNIAL" - - "TRIENNIAL" - - "NO_BILLING_PERIOD" - phaseType: - type: "string" - enum: - - "TRIAL" - - "DISCOUNT" - - "FIXEDTERM" - - "EVERGREEN" - priceList: - type: "string" - planName: - type: "string" - state: + transactionExternalKey: type: "string" - enum: - - "PENDING" - - "ACTIVE" - - "BLOCKED" - - "CANCELLED" - - "EXPIRED" - sourceType: + transactionType: type: "string" enum: - - "NATIVE" - - "MIGRATED" - - "TRANSFERRED" - cancelledDate: + - "AUTHORIZE" + - "CAPTURE" + - "CHARGEBACK" + - "CREDIT" + - "PURCHASE" + - "REFUND" + - "VOID" + effectiveDate: type: "string" format: "date-time" - chargedThroughDate: + stateName: type: "string" - format: "date" - billingStartDate: + amount: + type: "number" + description: "Transaction amount, required except for void operations" + currency: type: "string" - format: "date-time" - billingEndDate: + description: "Amount currency (account currency unless specified)" + enum: + - "AED" + - "AFN" + - "ALL" + - "AMD" + - "ANG" + - "AOA" + - "ARS" + - "AUD" + - "AWG" + - "AZN" + - "BAM" + - "BBD" + - "BDT" + - "BGN" + - "BHD" + - "BIF" + - "BMD" + - "BND" + - "BOB" + - "BRL" + - "BSD" + - "BTN" + - "BWP" + - "BYR" + - "BZD" + - "CAD" + - "CDF" + - "CHF" + - "CLP" + - "CNY" + - "COP" + - "CRC" + - "CUC" + - "CUP" + - "CVE" + - "CZK" + - "DJF" + - "DKK" + - "DOP" + - "DZD" + - "EGP" + - "ERN" + - "ETB" + - "EUR" + - "FJD" + - "FKP" + - "GBP" + - "GEL" + - "GGP" + - "GHS" + - "GIP" + - "GMD" + - "GNF" + - "GTQ" + - "GYD" + - "HKD" + - "HNL" + - "HRK" + - "HTG" + - "HUF" + - "IDR" + - "ILS" + - "IMP" + - "INR" + - "IQD" + - "IRR" + - "ISK" + - "JEP" + - "JMD" + - "JOD" + - "JPY" + - "KES" + - "KGS" + - "KHR" + - "KMF" + - "KPW" + - "KRW" + - "KWD" + - "KYD" + - "KZT" + - "LAK" + - "LBP" + - "LKR" + - "LRD" + - "LSL" + - "LTL" + - "LVL" + - "LYD" + - "MAD" + - "MDL" + - "MGA" + - "MKD" + - "MMK" + - "MNT" + - "MOP" + - "MRO" + - "MUR" + - "MVR" + - "MWK" + - "MXN" + - "MYR" + - "MZN" + - "NAD" + - "NGN" + - "NIO" + - "NOK" + - "NPR" + - "NZD" + - "OMR" + - "PAB" + - "PEN" + - "PGK" + - "PHP" + - "PKR" + - "PLN" + - "PYG" + - "QAR" + - "RON" + - "RSD" + - "RUB" + - "RWF" + - "SAR" + - "SBD" + - "SCR" + - "SDG" + - "SEK" + - "SGD" + - "SHP" + - "SLL" + - "SOS" + - "SPL" + - "SRD" + - "STD" + - "SVC" + - "SYP" + - "SZL" + - "THB" + - "TJS" + - "TMT" + - "TND" + - "TOP" + - "TRY" + - "TTD" + - "TVD" + - "TWD" + - "TZS" + - "UAH" + - "UGX" + - "USD" + - "UYU" + - "UZS" + - "VEF" + - "VND" + - "VUV" + - "WST" + - "XAF" + - "XCD" + - "XDR" + - "XOF" + - "XPF" + - "YER" + - "ZAR" + - "ZMW" + - "ZWD" + - "BTC" + pluginName: type: "string" - format: "date-time" - billCycleDayLocal: - type: "integer" - format: "int32" - quantity: - type: "integer" - format: "int32" - events: - type: "array" - items: - $ref: "#/definitions/EventSubscription" - priceOverrides: - type: "array" - items: - $ref: "#/definitions/PhasePrice" - prices: + pluginProperties: type: "array" items: - $ref: "#/definitions/PhasePrice" + $ref: "#/definitions/PluginProperty" auditLogs: type: "array" items: $ref: "#/definitions/AuditLog" - TierPrice: - type: "object" - properties: - blockPrices: - type: "array" - items: - $ref: "#/definitions/BlockPrice" - UsagePrice: + PaymentTransaction: type: "object" properties: - usageName: - type: "string" - usageType: + transactionId: type: "string" - enum: - - "CAPACITY" - - "CONSUMABLE" - billingMode: + format: "uuid" + transactionExternalKey: type: "string" - enum: - - "IN_ADVANCE" - - "IN_ARREAR" - tierBlockPolicy: + paymentId: type: "string" - enum: - - "ALL_TIERS" - - "TOP_TIER" - tierPrices: - type: "array" - items: - $ref: "#/definitions/TierPrice" - OverdueState: - type: "object" - properties: - name: + description: "Associated payment id, required when notifying state transitions" + format: "uuid" + paymentExternalKey: type: "string" - externalMessage: + transactionType: type: "string" - isDisableEntitlementAndChangesBlocked: - type: "boolean" - isBlockChanges: - type: "boolean" - isClearState: - type: "boolean" - reevaluationIntervalDays: - type: "integer" - format: "int32" - AccountTimeline: - type: "object" - properties: - account: - $ref: "#/definitions/Account" - bundles: - type: "array" - items: - $ref: "#/definitions/Bundle" - invoices: - type: "array" - items: - $ref: "#/definitions/Invoice" - payments: - type: "array" - items: - $ref: "#/definitions/InvoicePayment" - Invoice: - type: "object" - properties: + enum: + - "AUTHORIZE" + - "CAPTURE" + - "CHARGEBACK" + - "CREDIT" + - "PURCHASE" + - "REFUND" + - "VOID" amount: type: "number" + description: "Transaction amount, required except for void operations" currency: type: "string" + description: "Amount currency (account currency unless specified)" enum: - "AED" - "AFN" @@ -13507,147 +13459,32 @@ definitions: - "TTD" - "TVD" - "TWD" - - "TZS" - - "UAH" - - "UGX" - - "USD" - - "UYU" - - "UZS" - - "VEF" - - "VND" - - "VUV" - - "WST" - - "XAF" - - "XCD" - - "XDR" - - "XOF" - - "XPF" - - "YER" - - "ZAR" - - "ZMW" - - "ZWD" - - "BTC" - status: - type: "string" - enum: - - "DRAFT" - - "COMMITTED" - - "VOID" - creditAdj: - type: "number" - refundAdj: - type: "number" - invoiceId: - type: "string" - format: "uuid" - invoiceDate: - type: "string" - format: "date" - targetDate: - type: "string" - format: "date" - invoiceNumber: - type: "string" - balance: - type: "number" - accountId: - type: "string" - format: "uuid" - bundleKeys: - type: "string" - credits: - type: "array" - items: - $ref: "#/definitions/InvoiceItem" - items: - type: "array" - items: - $ref: "#/definitions/InvoiceItem" - trackingIds: - type: "array" - items: - type: "string" - isParentInvoice: - type: "boolean" - parentInvoiceId: - type: "string" - format: "uuid" - parentAccountId: - type: "string" - format: "uuid" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - InvoiceItem: - type: "object" - required: - - "accountId" - - "invoiceItemId" - properties: - invoiceItemId: - type: "string" - format: "uuid" - invoiceId: - type: "string" - format: "uuid" - linkedInvoiceItemId: - type: "string" - format: "uuid" - accountId: - type: "string" - format: "uuid" - childAccountId: - type: "string" - format: "uuid" - bundleId: - type: "string" - format: "uuid" - subscriptionId: - type: "string" - format: "uuid" - productName: - type: "string" - planName: - type: "string" - phaseName: - type: "string" - usageName: - type: "string" - prettyProductName: - type: "string" - prettyPlanName: - type: "string" - prettyPhaseName: - type: "string" - prettyUsageName: - type: "string" - itemType: - type: "string" - enum: - - "EXTERNAL_CHARGE" - - "FIXED" - - "RECURRING" - - "REPAIR_ADJ" - - "CBA_ADJ" - - "CREDIT_ADJ" - - "ITEM_ADJ" - - "USAGE" - - "TAX" - - "PARENT_SUMMARY" - description: - type: "string" - startDate: - type: "string" - format: "date" - endDate: + - "TZS" + - "UAH" + - "UGX" + - "USD" + - "UYU" + - "UZS" + - "VEF" + - "VND" + - "VUV" + - "WST" + - "XAF" + - "XCD" + - "XDR" + - "XOF" + - "XPF" + - "YER" + - "ZAR" + - "ZMW" + - "ZWD" + - "BTC" + effectiveDate: type: "string" - format: "date" - amount: - type: "number" - rate: + format: "date-time" + processedAmount: type: "number" - currency: + processedCurrency: type: "string" enum: - "AED" @@ -13815,21 +13652,48 @@ definitions: - "ZMW" - "ZWD" - "BTC" - quantity: - type: "number" - itemDetails: + status: type: "string" - catalogEffectiveDate: + description: "Transaction status, required for state change notifications" + enum: + - "SUCCESS" + - "UNKNOWN" + - "PENDING" + - "PAYMENT_FAILURE" + - "PLUGIN_FAILURE" + - "PAYMENT_SYSTEM_OFF" + gatewayErrorCode: type: "string" - format: "date-time" - childItems: + gatewayErrorMsg: + type: "string" + firstPaymentReferenceId: + type: "string" + secondPaymentReferenceId: + type: "string" + properties: type: "array" items: - $ref: "#/definitions/InvoiceItem" + $ref: "#/definitions/PluginProperty" auditLogs: type: "array" items: $ref: "#/definitions/AuditLog" + OverdueState: + type: "object" + properties: + name: + type: "string" + externalMessage: + type: "string" + isDisableEntitlementAndChangesBlocked: + type: "boolean" + isBlockChanges: + type: "boolean" + isClearState: + type: "boolean" + reevaluationIntervalDays: + type: "integer" + format: "int32" Payment: type: "object" properties: @@ -14036,123 +13900,6 @@ definitions: type: "array" items: $ref: "#/definitions/AuditLog" - CustomField: - type: "object" - required: - - "name" - - "value" - properties: - customFieldId: - type: "string" - format: "uuid" - objectId: - type: "string" - format: "uuid" - objectType: - type: "string" - enum: - - "ACCOUNT" - - "ACCOUNT_EMAIL" - - "BLOCKING_STATES" - - "BUNDLE" - - "CUSTOM_FIELD" - - "INVOICE" - - "PAYMENT" - - "TRANSACTION" - - "INVOICE_ITEM" - - "INVOICE_PAYMENT" - - "SUBSCRIPTION" - - "SUBSCRIPTION_EVENT" - - "SERVICE_BROADCAST" - - "PAYMENT_ATTEMPT" - - "PAYMENT_METHOD" - - "TAG" - - "TAG_DEFINITION" - - "TENANT" - - "TENANT_KVS" - name: - type: "string" - value: - type: "string" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - AccountEmail: - type: "object" - required: - - "email" - properties: - accountId: - type: "string" - format: "uuid" - email: - type: "string" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - BlockingState: - type: "object" - properties: - blockedId: - type: "string" - format: "uuid" - stateName: - type: "string" - service: - type: "string" - isBlockChange: - type: "boolean" - isBlockEntitlement: - type: "boolean" - isBlockBilling: - type: "boolean" - effectiveDate: - type: "string" - format: "date-time" - type: - type: "string" - enum: - - "SUBSCRIPTION" - - "SUBSCRIPTION_BUNDLE" - - "ACCOUNT" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - PaymentMethod: - type: "object" - properties: - paymentMethodId: - type: "string" - format: "uuid" - externalKey: - type: "string" - accountId: - type: "string" - format: "uuid" - isDefault: - type: "boolean" - pluginName: - type: "string" - pluginInfo: - $ref: "#/definitions/PaymentMethodPluginDetail" - auditLogs: - type: "array" - items: - $ref: "#/definitions/AuditLog" - PaymentMethodPluginDetail: - type: "object" - properties: - externalPaymentMethodId: - type: "string" - isDefaultPaymentMethod: - type: "boolean" - properties: - type: "array" - items: - $ref: "#/definitions/PluginProperty" AdminPayment: type: "object" properties: @@ -14954,8 +14701,8 @@ definitions: type: "string" paymentId: type: "string" - format: "uuid" description: "Associated payment id, required when notifying state transitions" + format: "uuid" paymentExternalKey: type: "string" transactionType: @@ -15365,6 +15112,9 @@ definitions: - "RESUME_BILLING" - "PHASE" - "CHANGE" + - "EXPIRED" + - "BCD_UPDATE" + - "QUANTITY_UPDATE" - "STOP_ENTITLEMENT" - "STOP_BILLING" - "SERVICE_STATE_CHANGE" @@ -15427,24 +15177,6 @@ definitions: $ref: "#/definitions/PhasePrice" planName: type: "string" - NodeCommand: - type: "object" - properties: - isSystemCommandType: - type: "boolean" - nodeCommandType: - type: "string" - nodeCommandProperties: - type: "array" - items: - $ref: "#/definitions/NodeCommandProperty" - NodeCommandProperty: - type: "object" - properties: - key: - type: "string" - value: - type: "object" NodeInfo: type: "object" properties: @@ -15486,8 +15218,8 @@ definitions: isSelectedForStart: type: "boolean" services: - type: "array" uniqueItems: true + type: "array" items: $ref: "#/definitions/PluginServiceInfo" PluginServiceInfo: @@ -15497,6 +15229,24 @@ definitions: type: "string" registrationName: type: "string" + NodeCommand: + type: "object" + properties: + isSystemCommandType: + type: "boolean" + nodeCommandType: + type: "string" + nodeCommandProperties: + type: "array" + items: + $ref: "#/definitions/NodeCommandProperty" + NodeCommandProperty: + type: "object" + properties: + key: + type: "string" + value: + type: "object" Overdue: type: "object" properties: @@ -15602,13 +15352,6 @@ definitions: type: "array" items: $ref: "#/definitions/AuditLog" - HostedPaymentPageFields: - type: "object" - properties: - formFields: - type: "array" - items: - $ref: "#/definitions/PluginProperty" ComboHostedPaymentPage: type: "object" properties: @@ -15626,6 +15369,13 @@ definitions: type: "array" items: $ref: "#/definitions/AuditLog" + HostedPaymentPageFields: + type: "object" + properties: + formFields: + type: "array" + items: + $ref: "#/definitions/PluginProperty" ComboPaymentTransaction: type: "object" properties: @@ -15648,10 +15398,10 @@ definitions: items: $ref: "#/definitions/AuditLog" RoleDefinition: - type: "object" required: - "permissions" - "role" + type: "object" properties: role: type: "string" @@ -15660,11 +15410,11 @@ definitions: items: type: "string" UserRoles: - type: "object" required: - "password" - "roles" - "username" + type: "object" properties: username: type: "string" @@ -15702,19 +15452,19 @@ definitions: session: $ref: "#/definitions/Session" BulkSubscriptionsBundle: - type: "object" required: - "baseEntitlementAndAddOns" + type: "object" properties: baseEntitlementAndAddOns: type: "array" items: $ref: "#/definitions/Subscription" TagDefinition: - type: "object" required: - "description" - "name" + type: "object" properties: id: type: "string" @@ -15726,8 +15476,8 @@ definitions: description: type: "string" applicableObjectTypes: - type: "array" uniqueItems: true + type: "array" items: type: "string" enum: @@ -15755,10 +15505,10 @@ definitions: items: $ref: "#/definitions/AuditLog" Tenant: - type: "object" required: - "apiKey" - "apiSecret" + type: "object" properties: tenantId: type: "string" @@ -15810,10 +15560,10 @@ definitions: items: $ref: "#/definitions/RolledUpUnit" SubscriptionUsageRecord: - type: "object" required: - "subscriptionId" - "unitUsageRecords" + type: "object" properties: subscriptionId: type: "string" diff --git a/README.md b/README.md index 7aa7fbf..2dc4b17 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ Kill Bill is an open-source billing and payments platform This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 0.24.0 -- Package version: 0.0.1-SNAPSHOT +- API version: 0.25.6-SNAPSHOT +- Package version: 0.0.1.dev0 - Build package: org.killbill.billing.codegen.languages.KillbillPythonGenerator ## Requirements. -Python 2.7 and 3.4+ +Python 3.6+ (verified on 3.6, 3.7 and 3.14; other versions are untested) ## Installation & Usage ### pip install @@ -40,6 +40,17 @@ Then import the package: import killbill ``` +## Asynchronous requests + +Pass `async_req=True` to any API method (or to `ApiClient.call_api()`) to get back an `ApplyResult`; call `.get()` on it to obtain the result: + +```python +thread = api_instance.get_account(account_id, async_req=True) +account = thread.get() +``` + +`async_req` replaces `async`, which is a reserved keyword since Python 3.7 and made the generated package fail to import. On Python 3.6 and older, `async=True` is still accepted as a deprecated alias, but it cannot be written in source code on Python 3.7+. + ## Getting Started Please follow the [installation procedure](#installation--usage) and then run the following: @@ -51,17 +62,15 @@ import killbill from killbill.rest import ApiException from pprint import pprint -# Configure API key authorization: Killbill Api Key -killbill.configuration.api_key['X-Killbill-ApiKey'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# killbill.configuration.api_key_prefix['X-Killbill-ApiKey'] = 'Bearer' -# Configure API key authorization: Killbill Api Secret -killbill.configuration.api_key['X-Killbill-ApiSecret'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# killbill.configuration.api_key_prefix['X-Killbill-ApiSecret'] = 'Bearer' -# Configure HTTP basic authorization: basicAuth -killbill.configuration.username = 'YOUR_USERNAME' -killbill.configuration.password = 'YOUR_PASSWORD' +# Configure the client (host, credentials and Kill Bill tenant API key/secret) +configuration = killbill.Configuration() +configuration.host = 'http://127.0.0.1:8080' +configuration.username = 'admin' +configuration.password = 'password' +configuration.api_key['X-Killbill-ApiKey'] = 'bob' +configuration.api_key['X-Killbill-ApiSecret'] = 'lazar' +killbill.Configuration.set_default(configuration) + # create an instance of the API class api_instance = killbill.AccountApi() account_id = 'account_id_example' # Str | diff --git a/docker/docker-compose.ci.mysql.yml b/docker/docker-compose.ci.mysql.yml index 50db2c8..e907abc 100644 --- a/docker/docker-compose.ci.mysql.yml +++ b/docker/docker-compose.ci.mysql.yml @@ -3,7 +3,7 @@ version: '3.8' services: killbill: network_mode: host - image: killbill/killbill:0.24.0 + image: xsalefter/killbill:0.25.4 environment: - KILLBILL_CATALOG_URI=SpyCarAdvanced.xml - KILLBILL_DAO_URL=jdbc:mysql://127.0.0.1:3306/killbill diff --git a/killbill/api/account_api.py b/killbill/api/account_api.py index d938105..c38dd04 100644 --- a/killbill/api/account_api.py +++ b/killbill/api/account_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def add_account_blocking_state(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block an account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_account_blocking_state(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_account_blocking_state(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -74,7 +73,7 @@ def add_account_blocking_state(self, account_id=None, body=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_account_blocking_state_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_account_blocking_state_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -83,13 +82,12 @@ def add_account_blocking_state(self, account_id=None, body=None, created_by=None def add_account_blocking_state_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block an account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_account_blocking_state_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_account_blocking_state_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -103,7 +101,8 @@ def add_account_blocking_state_with_http_info(self, account_id=None, body=None, """ all_params = ['account_id', 'body', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -176,7 +175,7 @@ def add_account_blocking_state_with_http_info(self, account_id=None, body=None, files=local_var_files, response_type='List[BlockingState]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -185,13 +184,12 @@ def add_account_blocking_state_with_http_info(self, account_id=None, body=None, def add_email(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add account email # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_email(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_email(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param AccountEmail body: (required) :param Str created_by: (required) @@ -202,7 +200,7 @@ def add_email(self, account_id=None, body=None, created_by=None, **kwargs): # n returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_email_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_email_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -211,13 +209,12 @@ def add_email(self, account_id=None, body=None, created_by=None, **kwargs): # n def add_email_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add account email # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_email_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_email_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param AccountEmail body: (required) :param Str created_by: (required) @@ -229,7 +226,8 @@ def add_email_with_http_info(self, account_id=None, body=None, created_by=None, """ all_params = ['account_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -301,7 +299,7 @@ def add_email_with_http_info(self, account_id=None, body=None, created_by=None, files=local_var_files, response_type='List[AccountEmail]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -310,13 +308,12 @@ def add_email_with_http_info(self, account_id=None, body=None, created_by=None, def close_account(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Close account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.close_account(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.close_account(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Bool cancel_all_subscriptions: @@ -330,7 +327,7 @@ def close_account(self, account_id=None, created_by=None, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.close_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.close_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -339,13 +336,12 @@ def close_account(self, account_id=None, created_by=None, **kwargs): # noqa: E5 def close_account_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Close account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.close_account_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.close_account_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Bool cancel_all_subscriptions: @@ -360,7 +356,8 @@ def close_account_with_http_info(self, account_id=None, created_by=None, **kwarg """ all_params = ['account_id', 'created_by', 'cancel_all_subscriptions', 'write_off_unpaid_invoices', 'item_adjust_unpaid_invoices', 'remove_future_notifications', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -430,7 +427,7 @@ def close_account_with_http_info(self, account_id=None, created_by=None, **kwarg files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -439,13 +436,12 @@ def close_account_with_http_info(self, account_id=None, created_by=None, **kwarg def create_account(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Account body: (required) :param Str created_by: (required) :param Str reason: @@ -455,7 +451,7 @@ def create_account(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_account_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_account_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -464,13 +460,12 @@ def create_account(self, body=None, created_by=None, **kwargs): # noqa: E501 def create_account_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Account body: (required) :param Str created_by: (required) :param Str reason: @@ -481,7 +476,8 @@ def create_account_with_http_info(self, body=None, created_by=None, **kwargs): """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -545,7 +541,7 @@ def create_account_with_http_info(self, body=None, created_by=None, **kwargs): files=local_var_files, response_type='Account', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -554,13 +550,12 @@ def create_account_with_http_info(self, body=None, created_by=None, **kwargs): def create_account_custom_fields(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account_custom_fields(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account_custom_fields(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -571,7 +566,7 @@ def create_account_custom_fields(self, account_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_account_custom_fields_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_account_custom_fields_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -580,13 +575,12 @@ def create_account_custom_fields(self, account_id=None, body=None, created_by=No def create_account_custom_fields_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account_custom_fields_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account_custom_fields_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -598,7 +592,8 @@ def create_account_custom_fields_with_http_info(self, account_id=None, body=None """ all_params = ['account_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -670,7 +665,7 @@ def create_account_custom_fields_with_http_info(self, account_id=None, body=None files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -679,13 +674,12 @@ def create_account_custom_fields_with_http_info(self, account_id=None, body=None def create_account_tags(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account_tags(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account_tags(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -696,7 +690,7 @@ def create_account_tags(self, account_id=None, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_account_tags_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_account_tags_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -705,13 +699,12 @@ def create_account_tags(self, account_id=None, body=None, created_by=None, **kwa def create_account_tags_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_account_tags_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_account_tags_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -723,7 +716,8 @@ def create_account_tags_with_http_info(self, account_id=None, body=None, created """ all_params = ['account_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -795,7 +789,7 @@ def create_account_tags_with_http_info(self, account_id=None, body=None, created files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -804,13 +798,12 @@ def create_account_tags_with_http_info(self, account_id=None, body=None, created def create_payment_method(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_method(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_method(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param PaymentMethod body: (required) :param Str created_by: (required) @@ -825,7 +818,7 @@ def create_payment_method(self, account_id=None, body=None, created_by=None, **k returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_payment_method_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_payment_method_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -834,13 +827,12 @@ def create_payment_method(self, account_id=None, body=None, created_by=None, **k def create_payment_method_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_method_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_method_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param PaymentMethod body: (required) :param Str created_by: (required) @@ -856,7 +848,8 @@ def create_payment_method_with_http_info(self, account_id=None, body=None, creat """ all_params = ['account_id', 'body', 'created_by', 'is_default', 'pay_all_unpaid_invoices', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -938,7 +931,7 @@ def create_payment_method_with_http_info(self, account_id=None, body=None, creat files=local_var_files, response_type='PaymentMethod', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -947,13 +940,12 @@ def create_payment_method_with_http_info(self, account_id=None, body=None, creat def delete_account_custom_fields(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_account_custom_fields(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_account_custom_fields(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -964,7 +956,7 @@ def delete_account_custom_fields(self, account_id=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_account_custom_fields_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_account_custom_fields_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -973,13 +965,12 @@ def delete_account_custom_fields(self, account_id=None, created_by=None, **kwarg def delete_account_custom_fields_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_account_custom_fields_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_account_custom_fields_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -991,7 +982,8 @@ def delete_account_custom_fields_with_http_info(self, account_id=None, created_b """ all_params = ['account_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1060,7 +1052,7 @@ def delete_account_custom_fields_with_http_info(self, account_id=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1069,13 +1061,12 @@ def delete_account_custom_fields_with_http_info(self, account_id=None, created_b def delete_account_tags(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_account_tags(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_account_tags(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1086,7 +1077,7 @@ def delete_account_tags(self, account_id=None, created_by=None, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_account_tags_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_account_tags_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -1095,13 +1086,12 @@ def delete_account_tags(self, account_id=None, created_by=None, **kwargs): # no def delete_account_tags_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_account_tags_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_account_tags_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1113,7 +1103,8 @@ def delete_account_tags_with_http_info(self, account_id=None, created_by=None, * """ all_params = ['account_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1182,7 +1173,7 @@ def delete_account_tags_with_http_info(self, account_id=None, created_by=None, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1191,13 +1182,12 @@ def delete_account_tags_with_http_info(self, account_id=None, created_by=None, * def get_account(self, account_id=None, **kwargs): # noqa: E501 """Retrieve an account by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -1207,7 +1197,7 @@ def get_account(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1216,13 +1206,12 @@ def get_account(self, account_id=None, **kwargs): # noqa: E501 def get_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve an account by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -1233,7 +1222,8 @@ def get_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """ all_params = ['account_id', 'account_with_balance', 'account_with_balance_and_cba', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1291,7 +1281,7 @@ def get_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='Account', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1300,20 +1290,19 @@ def get_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 def get_account_audit_logs(self, account_id=None, **kwargs): # noqa: E501 """Retrieve audit logs by account id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_audit_logs(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_audit_logs(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_audit_logs_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_audit_logs_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1322,13 +1311,12 @@ def get_account_audit_logs(self, account_id=None, **kwargs): # noqa: E501 def get_account_audit_logs_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve audit logs by account id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_audit_logs_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_audit_logs_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -1336,7 +1324,8 @@ def get_account_audit_logs_with_http_info(self, account_id=None, **kwargs): # n """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1388,7 +1377,7 @@ def get_account_audit_logs_with_http_info(self, account_id=None, **kwargs): # n files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1397,20 +1386,19 @@ def get_account_audit_logs_with_http_info(self, account_id=None, **kwargs): # n def get_account_audit_logs_with_history(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account audit logs with history by account id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_audit_logs_with_history(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_audit_logs_with_history(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_audit_logs_with_history_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_audit_logs_with_history_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1419,13 +1407,12 @@ def get_account_audit_logs_with_history(self, account_id=None, **kwargs): # noq def get_account_audit_logs_with_history_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account audit logs with history by account id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_audit_logs_with_history_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_audit_logs_with_history_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -1433,7 +1420,8 @@ def get_account_audit_logs_with_history_with_http_info(self, account_id=None, ** """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1485,7 +1473,7 @@ def get_account_audit_logs_with_history_with_http_info(self, account_id=None, ** files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1494,13 +1482,12 @@ def get_account_audit_logs_with_history_with_http_info(self, account_id=None, ** def get_account_bundles(self, account_id=None, **kwargs): # noqa: E501 """Retrieve bundles for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_bundles(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_bundles(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str external_key: :param Str bundles_filter: @@ -1510,7 +1497,7 @@ def get_account_bundles(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_bundles_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_bundles_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1519,13 +1506,12 @@ def get_account_bundles(self, account_id=None, **kwargs): # noqa: E501 def get_account_bundles_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve bundles for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_bundles_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_bundles_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str external_key: :param Str bundles_filter: @@ -1536,7 +1522,8 @@ def get_account_bundles_with_http_info(self, account_id=None, **kwargs): # noqa """ all_params = ['account_id', 'external_key', 'bundles_filter', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1594,7 +1581,7 @@ def get_account_bundles_with_http_info(self, account_id=None, **kwargs): # noqa files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1603,13 +1590,12 @@ def get_account_bundles_with_http_info(self, account_id=None, **kwargs): # noqa def get_account_bundles_paginated(self, account_id=None, **kwargs): # noqa: E501 """Retrieve paginated bundles for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_bundles_paginated(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_bundles_paginated(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Int offset: :param Int limit: @@ -1619,7 +1605,7 @@ def get_account_bundles_paginated(self, account_id=None, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_bundles_paginated_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_bundles_paginated_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1628,13 +1614,12 @@ def get_account_bundles_paginated(self, account_id=None, **kwargs): # noqa: E50 def get_account_bundles_paginated_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve paginated bundles for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_bundles_paginated_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_bundles_paginated_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Int offset: :param Int limit: @@ -1645,7 +1630,8 @@ def get_account_bundles_paginated_with_http_info(self, account_id=None, **kwargs """ all_params = ['account_id', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1703,7 +1689,7 @@ def get_account_bundles_paginated_with_http_info(self, account_id=None, **kwargs files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1712,13 +1698,12 @@ def get_account_bundles_paginated_with_http_info(self, account_id=None, **kwargs def get_account_by_key(self, external_key=None, **kwargs): # noqa: E501 """Retrieve an account by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_by_key(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_by_key(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -1728,7 +1713,7 @@ def get_account_by_key(self, external_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_by_key_with_http_info(external_key, **kwargs) # noqa: E501 else: (data) = self.get_account_by_key_with_http_info(external_key, **kwargs) # noqa: E501 @@ -1737,13 +1722,12 @@ def get_account_by_key(self, external_key=None, **kwargs): # noqa: E501 def get_account_by_key_with_http_info(self, external_key=None, **kwargs): # noqa: E501 """Retrieve an account by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_by_key_with_http_info(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_by_key_with_http_info(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -1754,7 +1738,8 @@ def get_account_by_key_with_http_info(self, external_key=None, **kwargs): # noq """ all_params = ['external_key', 'account_with_balance', 'account_with_balance_and_cba', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1810,7 +1795,7 @@ def get_account_by_key_with_http_info(self, external_key=None, **kwargs): # noq files=local_var_files, response_type='Account', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1819,13 +1804,12 @@ def get_account_by_key_with_http_info(self, external_key=None, **kwargs): # noq def get_account_custom_fields(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_custom_fields(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_custom_fields(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str audit: :return: List[CustomField] @@ -1833,7 +1817,7 @@ def get_account_custom_fields(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_custom_fields_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_custom_fields_with_http_info(account_id, **kwargs) # noqa: E501 @@ -1842,13 +1826,12 @@ def get_account_custom_fields(self, account_id=None, **kwargs): # noqa: E501 def get_account_custom_fields_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_custom_fields_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_custom_fields_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str audit: :return: List[CustomField] @@ -1857,7 +1840,8 @@ def get_account_custom_fields_with_http_info(self, account_id=None, **kwargs): """ all_params = ['account_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1911,7 +1895,7 @@ def get_account_custom_fields_with_http_info(self, account_id=None, **kwargs): files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1920,13 +1904,12 @@ def get_account_custom_fields_with_http_info(self, account_id=None, **kwargs): def get_account_email_audit_logs_with_history(self, account_id=None, account_email_id=None, **kwargs): # noqa: E501 """Retrieve account email audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_email_audit_logs_with_history(account_id, account_email_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_email_audit_logs_with_history(account_id, account_email_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str account_email_id: (required) :return: List[AuditLog] @@ -1934,7 +1917,7 @@ def get_account_email_audit_logs_with_history(self, account_id=None, account_ema returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, **kwargs) # noqa: E501 else: (data) = self.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, **kwargs) # noqa: E501 @@ -1943,13 +1926,12 @@ def get_account_email_audit_logs_with_history(self, account_id=None, account_ema def get_account_email_audit_logs_with_history_with_http_info(self, account_id=None, account_email_id=None, **kwargs): # noqa: E501 """Retrieve account email audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str account_email_id: (required) :return: List[AuditLog] @@ -1958,7 +1940,8 @@ def get_account_email_audit_logs_with_history_with_http_info(self, account_id=No """ all_params = ['account_id', 'account_email_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2018,7 +2001,7 @@ def get_account_email_audit_logs_with_history_with_http_info(self, account_id=No files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2027,13 +2010,12 @@ def get_account_email_audit_logs_with_history_with_http_info(self, account_id=No def get_account_tags(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_tags(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_tags(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool included_deleted: :param Str audit: @@ -2042,7 +2024,7 @@ def get_account_tags(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_tags_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_tags_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2051,13 +2033,12 @@ def get_account_tags(self, account_id=None, **kwargs): # noqa: E501 def get_account_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_tags_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_tags_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool included_deleted: :param Str audit: @@ -2067,7 +2048,8 @@ def get_account_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E """ all_params = ['account_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2123,7 +2105,7 @@ def get_account_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2132,13 +2114,12 @@ def get_account_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E def get_account_timeline(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account timeline # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_timeline(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_timeline(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool parallel: :param Str audit: @@ -2147,7 +2128,7 @@ def get_account_timeline(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_account_timeline_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_account_timeline_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2156,13 +2137,12 @@ def get_account_timeline(self, account_id=None, **kwargs): # noqa: E501 def get_account_timeline_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account timeline # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_account_timeline_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_account_timeline_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool parallel: :param Str audit: @@ -2172,7 +2152,8 @@ def get_account_timeline_with_http_info(self, account_id=None, **kwargs): # noq """ all_params = ['account_id', 'parallel', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2228,7 +2209,7 @@ def get_account_timeline_with_http_info(self, account_id=None, **kwargs): # noq files=local_var_files, response_type='AccountTimeline', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2237,13 +2218,12 @@ def get_account_timeline_with_http_info(self, account_id=None, **kwargs): # noq def get_accounts(self, **kwargs): # noqa: E501 """List accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_accounts(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_accounts(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Bool account_with_balance: @@ -2254,7 +2234,7 @@ def get_accounts(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_accounts_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_accounts_with_http_info(**kwargs) # noqa: E501 @@ -2263,13 +2243,12 @@ def get_accounts(self, **kwargs): # noqa: E501 def get_accounts_with_http_info(self, **kwargs): # noqa: E501 """List accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_accounts_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_accounts_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Bool account_with_balance: @@ -2281,7 +2260,8 @@ def get_accounts_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'account_with_balance', 'account_with_balance_and_cba', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2335,7 +2315,7 @@ def get_accounts_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Account]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2344,13 +2324,12 @@ def get_accounts_with_http_info(self, **kwargs): # noqa: E501 def get_all_custom_fields(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account customFields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_custom_fields(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_custom_fields(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str object_type: :param Str audit: @@ -2359,7 +2338,7 @@ def get_all_custom_fields(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_all_custom_fields_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_all_custom_fields_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2368,13 +2347,12 @@ def get_all_custom_fields(self, account_id=None, **kwargs): # noqa: E501 def get_all_custom_fields_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account customFields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_custom_fields_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_custom_fields_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str object_type: :param Str audit: @@ -2384,7 +2362,8 @@ def get_all_custom_fields_with_http_info(self, account_id=None, **kwargs): # no """ all_params = ['account_id', 'object_type', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2440,7 +2419,7 @@ def get_all_custom_fields_with_http_info(self, account_id=None, **kwargs): # no files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2449,13 +2428,12 @@ def get_all_custom_fields_with_http_info(self, account_id=None, **kwargs): # no def get_all_tags(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_tags(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_tags(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str object_type: :param Bool included_deleted: @@ -2465,7 +2443,7 @@ def get_all_tags(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_all_tags_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_all_tags_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2474,13 +2452,12 @@ def get_all_tags(self, account_id=None, **kwargs): # noqa: E501 def get_all_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_tags_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_tags_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str object_type: :param Bool included_deleted: @@ -2491,7 +2468,8 @@ def get_all_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """ all_params = ['account_id', 'object_type', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2549,7 +2527,7 @@ def get_all_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2558,20 +2536,19 @@ def get_all_tags_with_http_info(self, account_id=None, **kwargs): # noqa: E501 def get_blocking_state_audit_logs_with_history(self, blocking_id=None, **kwargs): # noqa: E501 """Retrieve blocking state audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_blocking_state_audit_logs_with_history(blocking_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_blocking_state_audit_logs_with_history(blocking_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str blocking_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_blocking_state_audit_logs_with_history_with_http_info(blocking_id, **kwargs) # noqa: E501 else: (data) = self.get_blocking_state_audit_logs_with_history_with_http_info(blocking_id, **kwargs) # noqa: E501 @@ -2580,13 +2557,12 @@ def get_blocking_state_audit_logs_with_history(self, blocking_id=None, **kwargs) def get_blocking_state_audit_logs_with_history_with_http_info(self, blocking_id=None, **kwargs): # noqa: E501 """Retrieve blocking state audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_blocking_state_audit_logs_with_history_with_http_info(blocking_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_blocking_state_audit_logs_with_history_with_http_info(blocking_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str blocking_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -2594,7 +2570,8 @@ def get_blocking_state_audit_logs_with_history_with_http_info(self, blocking_id= """ all_params = ['blocking_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2646,7 +2623,7 @@ def get_blocking_state_audit_logs_with_history_with_http_info(self, blocking_id= files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2655,13 +2632,12 @@ def get_blocking_state_audit_logs_with_history_with_http_info(self, blocking_id= def get_blocking_states(self, account_id=None, **kwargs): # noqa: E501 """Retrieve blocking states for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_blocking_states(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_blocking_states(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[Str] blocking_state_types: :param List[Str] blocking_state_svcs: @@ -2671,7 +2647,7 @@ def get_blocking_states(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_blocking_states_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_blocking_states_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2680,13 +2656,12 @@ def get_blocking_states(self, account_id=None, **kwargs): # noqa: E501 def get_blocking_states_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve blocking states for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_blocking_states_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_blocking_states_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[Str] blocking_state_types: :param List[Str] blocking_state_svcs: @@ -2697,7 +2672,8 @@ def get_blocking_states_with_http_info(self, account_id=None, **kwargs): # noqa """ all_params = ['account_id', 'blocking_state_types', 'blocking_state_svcs', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2757,7 +2733,7 @@ def get_blocking_states_with_http_info(self, account_id=None, **kwargs): # noqa files=local_var_files, response_type='List[BlockingState]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2766,13 +2742,12 @@ def get_blocking_states_with_http_info(self, account_id=None, **kwargs): # noqa def get_children_accounts(self, account_id=None, **kwargs): # noqa: E501 """List children accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_children_accounts(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_accounts(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -2782,7 +2757,7 @@ def get_children_accounts(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_children_accounts_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_children_accounts_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2791,13 +2766,12 @@ def get_children_accounts(self, account_id=None, **kwargs): # noqa: E501 def get_children_accounts_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """List children accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_children_accounts_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_children_accounts_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool account_with_balance: :param Bool account_with_balance_and_cba: @@ -2808,7 +2782,8 @@ def get_children_accounts_with_http_info(self, account_id=None, **kwargs): # no """ all_params = ['account_id', 'account_with_balance', 'account_with_balance_and_cba', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2866,7 +2841,7 @@ def get_children_accounts_with_http_info(self, account_id=None, **kwargs): # no files=local_var_files, response_type='List[Account]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2875,20 +2850,19 @@ def get_children_accounts_with_http_info(self, account_id=None, **kwargs): # no def get_emails(self, account_id=None, **kwargs): # noqa: E501 """Retrieve an account emails # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_emails(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_emails(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AccountEmail] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_emails_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_emails_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2897,13 +2871,12 @@ def get_emails(self, account_id=None, **kwargs): # noqa: E501 def get_emails_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve an account emails # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_emails_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_emails_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: List[AccountEmail] If the method is called asynchronously, @@ -2911,7 +2884,8 @@ def get_emails_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2963,7 +2937,7 @@ def get_emails_with_http_info(self, account_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='List[AccountEmail]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2972,13 +2946,12 @@ def get_emails_with_http_info(self, account_id=None, **kwargs): # noqa: E501 def get_invoice_payments(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account invoice payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payments(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payments(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -2989,7 +2962,7 @@ def get_invoice_payments(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_payments_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_payments_with_http_info(account_id, **kwargs) # noqa: E501 @@ -2998,13 +2971,12 @@ def get_invoice_payments(self, account_id=None, **kwargs): # noqa: E501 def get_invoice_payments_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account invoice payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payments_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payments_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -3016,7 +2988,8 @@ def get_invoice_payments_with_http_info(self, account_id=None, **kwargs): # noq """ all_params = ['account_id', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3077,7 +3050,7 @@ def get_invoice_payments_with_http_info(self, account_id=None, **kwargs): # noq files=local_var_files, response_type='List[InvoicePayment]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3086,13 +3059,12 @@ def get_invoice_payments_with_http_info(self, account_id=None, **kwargs): # noq def get_invoices_for_account(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_for_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_for_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Date start_date: :param Date end_date: @@ -3107,7 +3079,7 @@ def get_invoices_for_account(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoices_for_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_invoices_for_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -3116,13 +3088,12 @@ def get_invoices_for_account(self, account_id=None, **kwargs): # noqa: E501 def get_invoices_for_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_for_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_for_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Date start_date: :param Date end_date: @@ -3138,7 +3109,8 @@ def get_invoices_for_account_with_http_info(self, account_id=None, **kwargs): # """ all_params = ['account_id', 'start_date', 'end_date', 'with_migration_invoices', 'unpaid_invoices_only', 'include_voided_invoices', 'include_invoice_components', 'invoices_filter', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3206,7 +3178,7 @@ def get_invoices_for_account_with_http_info(self, account_id=None, **kwargs): # files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3215,13 +3187,12 @@ def get_invoices_for_account_with_http_info(self, account_id=None, **kwargs): # def get_invoices_for_account_paginated(self, account_id=None, **kwargs): # noqa: E501 """Retrieve paginated invoices for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_for_account_paginated(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_for_account_paginated(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Int offset: :param Int limit: @@ -3231,7 +3202,7 @@ def get_invoices_for_account_paginated(self, account_id=None, **kwargs): # noqa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoices_for_account_paginated_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_invoices_for_account_paginated_with_http_info(account_id, **kwargs) # noqa: E501 @@ -3240,13 +3211,12 @@ def get_invoices_for_account_paginated(self, account_id=None, **kwargs): # noqa def get_invoices_for_account_paginated_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve paginated invoices for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_for_account_paginated_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_for_account_paginated_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Int offset: :param Int limit: @@ -3257,7 +3227,8 @@ def get_invoices_for_account_paginated_with_http_info(self, account_id=None, **k """ all_params = ['account_id', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3315,7 +3286,7 @@ def get_invoices_for_account_paginated_with_http_info(self, account_id=None, **k files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3324,20 +3295,19 @@ def get_invoices_for_account_paginated_with_http_info(self, account_id=None, **k def get_overdue_account(self, account_id=None, **kwargs): # noqa: E501 """Retrieve overdue state for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: OverdueState If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_overdue_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_overdue_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -3346,13 +3316,12 @@ def get_overdue_account(self, account_id=None, **kwargs): # noqa: E501 def get_overdue_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve overdue state for account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: OverdueState If the method is called asynchronously, @@ -3360,7 +3329,8 @@ def get_overdue_account_with_http_info(self, account_id=None, **kwargs): # noqa """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3412,7 +3382,7 @@ def get_overdue_account_with_http_info(self, account_id=None, **kwargs): # noqa files=local_var_files, response_type='OverdueState', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3421,13 +3391,12 @@ def get_overdue_account_with_http_info(self, account_id=None, **kwargs): # noqa def get_payment_methods_for_account(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_methods_for_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_methods_for_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_plugin_info: :param Bool included_deleted: @@ -3438,7 +3407,7 @@ def get_payment_methods_for_account(self, account_id=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_methods_for_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_methods_for_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -3447,13 +3416,12 @@ def get_payment_methods_for_account(self, account_id=None, **kwargs): # noqa: E def get_payment_methods_for_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_methods_for_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_methods_for_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_plugin_info: :param Bool included_deleted: @@ -3465,7 +3433,8 @@ def get_payment_methods_for_account_with_http_info(self, account_id=None, **kwar """ all_params = ['account_id', 'with_plugin_info', 'included_deleted', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3526,7 +3495,7 @@ def get_payment_methods_for_account_with_http_info(self, account_id=None, **kwar files=local_var_files, response_type='List[PaymentMethod]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3535,13 +3504,12 @@ def get_payment_methods_for_account_with_http_info(self, account_id=None, **kwar def get_payments_for_account(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments_for_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments_for_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_attempts: :param Bool with_plugin_info: @@ -3552,7 +3520,7 @@ def get_payments_for_account(self, account_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payments_for_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.get_payments_for_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -3561,13 +3529,12 @@ def get_payments_for_account(self, account_id=None, **kwargs): # noqa: E501 def get_payments_for_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Retrieve account payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments_for_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments_for_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Bool with_attempts: :param Bool with_plugin_info: @@ -3579,7 +3546,8 @@ def get_payments_for_account_with_http_info(self, account_id=None, **kwargs): # """ all_params = ['account_id', 'with_attempts', 'with_plugin_info', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3640,7 +3608,7 @@ def get_payments_for_account_with_http_info(self, account_id=None, **kwargs): # files=local_var_files, response_type='List[Payment]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3649,13 +3617,12 @@ def get_payments_for_account_with_http_info(self, account_id=None, **kwargs): # def modify_account_custom_fields(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_account_custom_fields(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_account_custom_fields(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -3666,7 +3633,7 @@ def modify_account_custom_fields(self, account_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_account_custom_fields_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_account_custom_fields_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -3675,13 +3642,12 @@ def modify_account_custom_fields(self, account_id=None, body=None, created_by=No def modify_account_custom_fields_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_account_custom_fields_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_account_custom_fields_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -3693,7 +3659,8 @@ def modify_account_custom_fields_with_http_info(self, account_id=None, body=None """ all_params = ['account_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3765,7 +3732,7 @@ def modify_account_custom_fields_with_http_info(self, account_id=None, body=None files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3774,13 +3741,12 @@ def modify_account_custom_fields_with_http_info(self, account_id=None, body=None def pay_all_invoices(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment for all unpaid invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.pay_all_invoices(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pay_all_invoices(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str payment_method_id: @@ -3795,7 +3761,7 @@ def pay_all_invoices(self, account_id=None, created_by=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.pay_all_invoices_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.pay_all_invoices_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -3804,13 +3770,12 @@ def pay_all_invoices(self, account_id=None, created_by=None, **kwargs): # noqa: def pay_all_invoices_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment for all unpaid invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.pay_all_invoices_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pay_all_invoices_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str payment_method_id: @@ -3826,7 +3791,8 @@ def pay_all_invoices_with_http_info(self, account_id=None, created_by=None, **kw """ all_params = ['account_id', 'created_by', 'payment_method_id', 'external_payment', 'payment_amount', 'target_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3903,7 +3869,7 @@ def pay_all_invoices_with_http_info(self, account_id=None, created_by=None, **kw files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3912,13 +3878,12 @@ def pay_all_invoices_with_http_info(self, account_id=None, created_by=None, **kw def process_payment(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment (authorization, purchase or credit) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_payment(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_payment(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -3932,7 +3897,7 @@ def process_payment(self, account_id=None, body=None, created_by=None, **kwargs) returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.process_payment_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.process_payment_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -3941,13 +3906,12 @@ def process_payment(self, account_id=None, body=None, created_by=None, **kwargs) def process_payment_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment (authorization, purchase or credit) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_payment_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_payment_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -3962,7 +3926,8 @@ def process_payment_with_http_info(self, account_id=None, body=None, created_by= """ all_params = ['account_id', 'body', 'created_by', 'payment_method_id', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4042,7 +4007,7 @@ def process_payment_with_http_info(self, account_id=None, body=None, created_by= files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4051,13 +4016,12 @@ def process_payment_with_http_info(self, account_id=None, body=None, created_by= def process_payment_by_external_key(self, body=None, external_key=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment using the account external key (authorization, purchase or credit) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_payment_by_external_key(body, external_key, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_payment_by_external_key(body, external_key, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str external_key: (required) :param Str created_by: (required) @@ -4071,7 +4035,7 @@ def process_payment_by_external_key(self, body=None, external_key=None, created_ returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.process_payment_by_external_key_with_http_info(body, external_key, created_by, **kwargs) # noqa: E501 else: (data) = self.process_payment_by_external_key_with_http_info(body, external_key, created_by, **kwargs) # noqa: E501 @@ -4080,13 +4044,12 @@ def process_payment_by_external_key(self, body=None, external_key=None, created_ def process_payment_by_external_key_with_http_info(self, body=None, external_key=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment using the account external key (authorization, purchase or credit) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_payment_by_external_key_with_http_info(body, external_key, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_payment_by_external_key_with_http_info(body, external_key, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str external_key: (required) :param Str created_by: (required) @@ -4101,7 +4064,8 @@ def process_payment_by_external_key_with_http_info(self, body=None, external_key """ all_params = ['body', 'external_key', 'created_by', 'payment_method_id', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4179,7 +4143,7 @@ def process_payment_by_external_key_with_http_info(self, body=None, external_key files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4188,13 +4152,12 @@ def process_payment_by_external_key_with_http_info(self, body=None, external_key def rebalance_existing_cba_on_account(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Rebalance account CBA # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.rebalance_existing_cba_on_account(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rebalance_existing_cba_on_account(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str reason: @@ -4204,7 +4167,7 @@ def rebalance_existing_cba_on_account(self, account_id=None, created_by=None, ** returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.rebalance_existing_cba_on_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.rebalance_existing_cba_on_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -4213,13 +4176,12 @@ def rebalance_existing_cba_on_account(self, account_id=None, created_by=None, ** def rebalance_existing_cba_on_account_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Rebalance account CBA # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.rebalance_existing_cba_on_account_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rebalance_existing_cba_on_account_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str reason: @@ -4230,7 +4192,8 @@ def rebalance_existing_cba_on_account_with_http_info(self, account_id=None, crea """ all_params = ['account_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4296,7 +4259,7 @@ def rebalance_existing_cba_on_account_with_http_info(self, account_id=None, crea files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4305,13 +4268,12 @@ def rebalance_existing_cba_on_account_with_http_info(self, account_id=None, crea def refresh_payment_methods(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Refresh account payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refresh_payment_methods(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refresh_payment_methods(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str plugin_name: @@ -4323,7 +4285,7 @@ def refresh_payment_methods(self, account_id=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.refresh_payment_methods_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.refresh_payment_methods_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -4332,13 +4294,12 @@ def refresh_payment_methods(self, account_id=None, created_by=None, **kwargs): def refresh_payment_methods_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Refresh account payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refresh_payment_methods_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refresh_payment_methods_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str plugin_name: @@ -4351,7 +4312,8 @@ def refresh_payment_methods_with_http_info(self, account_id=None, created_by=Non """ all_params = ['account_id', 'created_by', 'plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4418,7 +4380,7 @@ def refresh_payment_methods_with_http_info(self, account_id=None, created_by=Non files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4427,13 +4389,12 @@ def refresh_payment_methods_with_http_info(self, account_id=None, created_by=Non def remove_email(self, account_id=None, email=None, created_by=None, **kwargs): # noqa: E501 """Delete email from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_email(account_id, email, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_email(account_id, email, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str email: (required) :param Str created_by: (required) @@ -4444,7 +4405,7 @@ def remove_email(self, account_id=None, email=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.remove_email_with_http_info(account_id, email, created_by, **kwargs) # noqa: E501 else: (data) = self.remove_email_with_http_info(account_id, email, created_by, **kwargs) # noqa: E501 @@ -4453,13 +4414,12 @@ def remove_email(self, account_id=None, email=None, created_by=None, **kwargs): def remove_email_with_http_info(self, account_id=None, email=None, created_by=None, **kwargs): # noqa: E501 """Delete email from account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.remove_email_with_http_info(account_id, email, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_email_with_http_info(account_id, email, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str email: (required) :param Str created_by: (required) @@ -4471,7 +4431,8 @@ def remove_email_with_http_info(self, account_id=None, email=None, created_by=No """ all_params = ['account_id', 'email', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4539,7 +4500,7 @@ def remove_email_with_http_info(self, account_id=None, email=None, created_by=No files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4548,13 +4509,12 @@ def remove_email_with_http_info(self, account_id=None, email=None, created_by=No def search_accounts(self, search_key=None, **kwargs): # noqa: E501 """Search accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_accounts(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_accounts(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -4566,7 +4526,7 @@ def search_accounts(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_accounts_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_accounts_with_http_info(search_key, **kwargs) # noqa: E501 @@ -4575,13 +4535,12 @@ def search_accounts(self, search_key=None, **kwargs): # noqa: E501 def search_accounts_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_accounts_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_accounts_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -4594,7 +4553,8 @@ def search_accounts_with_http_info(self, search_key=None, **kwargs): # noqa: E5 """ all_params = ['search_key', 'offset', 'limit', 'account_with_balance', 'account_with_balance_and_cba', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4656,7 +4616,7 @@ def search_accounts_with_http_info(self, search_key=None, **kwargs): # noqa: E5 files=local_var_files, response_type='List[Account]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4665,13 +4625,12 @@ def search_accounts_with_http_info(self, search_key=None, **kwargs): # noqa: E5 def set_default_payment_method(self, account_id=None, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Set the default payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.set_default_payment_method(account_id, payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_default_payment_method(account_id, payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str payment_method_id: (required) :param Str created_by: (required) @@ -4684,7 +4643,7 @@ def set_default_payment_method(self, account_id=None, payment_method_id=None, cr returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.set_default_payment_method_with_http_info(account_id, payment_method_id, created_by, **kwargs) # noqa: E501 else: (data) = self.set_default_payment_method_with_http_info(account_id, payment_method_id, created_by, **kwargs) # noqa: E501 @@ -4693,13 +4652,12 @@ def set_default_payment_method(self, account_id=None, payment_method_id=None, cr def set_default_payment_method_with_http_info(self, account_id=None, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Set the default payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.set_default_payment_method_with_http_info(account_id, payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.set_default_payment_method_with_http_info(account_id, payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str payment_method_id: (required) :param Str created_by: (required) @@ -4713,7 +4671,8 @@ def set_default_payment_method_with_http_info(self, account_id=None, payment_met """ all_params = ['account_id', 'payment_method_id', 'created_by', 'pay_all_unpaid_invoices', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4792,7 +4751,7 @@ def set_default_payment_method_with_http_info(self, account_id=None, payment_met files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4801,13 +4760,12 @@ def set_default_payment_method_with_http_info(self, account_id=None, payment_met def transfer_child_credit_to_parent(self, child_account_id=None, created_by=None, **kwargs): # noqa: E501 """Move a given child credit to the parent level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.transfer_child_credit_to_parent(child_account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transfer_child_credit_to_parent(child_account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str child_account_id: (required) :param Str created_by: (required) :param Str reason: @@ -4817,7 +4775,7 @@ def transfer_child_credit_to_parent(self, child_account_id=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.transfer_child_credit_to_parent_with_http_info(child_account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.transfer_child_credit_to_parent_with_http_info(child_account_id, created_by, **kwargs) # noqa: E501 @@ -4826,13 +4784,12 @@ def transfer_child_credit_to_parent(self, child_account_id=None, created_by=None def transfer_child_credit_to_parent_with_http_info(self, child_account_id=None, created_by=None, **kwargs): # noqa: E501 """Move a given child credit to the parent level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.transfer_child_credit_to_parent_with_http_info(child_account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transfer_child_credit_to_parent_with_http_info(child_account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str child_account_id: (required) :param Str created_by: (required) :param Str reason: @@ -4843,7 +4800,8 @@ def transfer_child_credit_to_parent_with_http_info(self, child_account_id=None, """ all_params = ['child_account_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4909,7 +4867,7 @@ def transfer_child_credit_to_parent_with_http_info(self, child_account_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4918,13 +4876,12 @@ def transfer_child_credit_to_parent_with_http_info(self, child_account_id=None, def update_account(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_account(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_account(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Account body: (required) :param Str created_by: (required) @@ -4936,7 +4893,7 @@ def update_account(self, account_id=None, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_account_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_account_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -4945,13 +4902,12 @@ def update_account(self, account_id=None, body=None, created_by=None, **kwargs): def update_account_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_account_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_account_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Account body: (required) :param Str created_by: (required) @@ -4964,7 +4920,8 @@ def update_account_with_http_info(self, account_id=None, body=None, created_by=N """ all_params = ['account_id', 'body', 'created_by', 'treat_null_as_reset', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -5038,7 +4995,7 @@ def update_account_with_http_info(self, account_id=None, body=None, created_by=N files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/admin_api.py b/killbill/api/admin_api.py index 7faa439..8ef8485 100644 --- a/killbill/api/admin_api.py +++ b/killbill/api/admin_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def get_queue_entries(self, **kwargs): # noqa: E501 """Get queues entries # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_queue_entries(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_queue_entries(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :param Str queue_name: :param Str service_name: @@ -76,7 +75,7 @@ def get_queue_entries(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_queue_entries_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_queue_entries_with_http_info(**kwargs) # noqa: E501 @@ -85,13 +84,12 @@ def get_queue_entries(self, **kwargs): # noqa: E501 def get_queue_entries_with_http_info(self, **kwargs): # noqa: E501 """Get queues entries # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_queue_entries_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_queue_entries_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :param Str queue_name: :param Str service_name: @@ -107,7 +105,8 @@ def get_queue_entries_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['account_id', 'queue_name', 'service_name', 'with_history', 'min_date', 'max_date', 'with_in_processing', 'with_bus_events', 'with_notifications'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -169,7 +168,7 @@ def get_queue_entries_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -178,20 +177,19 @@ def get_queue_entries_with_http_info(self, **kwargs): # noqa: E501 def invalidates_cache(self, **kwargs): # noqa: E501 """Invalidates the given Cache if specified, otherwise invalidates all caches # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str cache_name: :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.invalidates_cache_with_http_info(**kwargs) # noqa: E501 else: (data) = self.invalidates_cache_with_http_info(**kwargs) # noqa: E501 @@ -200,13 +198,12 @@ def invalidates_cache(self, **kwargs): # noqa: E501 def invalidates_cache_with_http_info(self, **kwargs): # noqa: E501 """Invalidates the given Cache if specified, otherwise invalidates all caches # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str cache_name: :return: None If the method is called asynchronously, @@ -214,7 +211,8 @@ def invalidates_cache_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['cache_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -260,7 +258,7 @@ def invalidates_cache_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -269,20 +267,19 @@ def invalidates_cache_with_http_info(self, **kwargs): # noqa: E501 def invalidates_cache_by_account(self, account_id=None, **kwargs): # noqa: E501 """Invalidates Caches per account level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache_by_account(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache_by_account(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.invalidates_cache_by_account_with_http_info(account_id, **kwargs) # noqa: E501 else: (data) = self.invalidates_cache_by_account_with_http_info(account_id, **kwargs) # noqa: E501 @@ -291,13 +288,12 @@ def invalidates_cache_by_account(self, account_id=None, **kwargs): # noqa: E501 def invalidates_cache_by_account_with_http_info(self, account_id=None, **kwargs): # noqa: E501 """Invalidates Caches per account level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache_by_account_with_http_info(account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache_by_account_with_http_info(account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :return: None If the method is called asynchronously, @@ -305,7 +301,8 @@ def invalidates_cache_by_account_with_http_info(self, account_id=None, **kwargs) """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -357,7 +354,7 @@ def invalidates_cache_by_account_with_http_info(self, account_id=None, **kwargs) files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -366,19 +363,18 @@ def invalidates_cache_by_account_with_http_info(self, account_id=None, **kwargs) def invalidates_cache_by_tenant(self, **kwargs): # noqa: E501 """Invalidates Caches per tenant level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache_by_tenant(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache_by_tenant(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.invalidates_cache_by_tenant_with_http_info(**kwargs) # noqa: E501 else: (data) = self.invalidates_cache_by_tenant_with_http_info(**kwargs) # noqa: E501 @@ -387,20 +383,20 @@ def invalidates_cache_by_tenant(self, **kwargs): # noqa: E501 def invalidates_cache_by_tenant_with_http_info(self, **kwargs): # noqa: E501 """Invalidates Caches per tenant level # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidates_cache_by_tenant_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidates_cache_by_tenant_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -444,7 +440,7 @@ def invalidates_cache_by_tenant_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -453,19 +449,18 @@ def invalidates_cache_by_tenant_with_http_info(self, **kwargs): # noqa: E501 def put_in_rotation(self, **kwargs): # noqa: E501 """Put the host back into rotation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.put_in_rotation(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_in_rotation(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.put_in_rotation_with_http_info(**kwargs) # noqa: E501 else: (data) = self.put_in_rotation_with_http_info(**kwargs) # noqa: E501 @@ -474,20 +469,20 @@ def put_in_rotation(self, **kwargs): # noqa: E501 def put_in_rotation_with_http_info(self, **kwargs): # noqa: E501 """Put the host back into rotation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.put_in_rotation_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_in_rotation_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -531,7 +526,7 @@ def put_in_rotation_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -540,19 +535,18 @@ def put_in_rotation_with_http_info(self, **kwargs): # noqa: E501 def put_out_of_rotation(self, **kwargs): # noqa: E501 """Put the host out of rotation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.put_out_of_rotation(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_out_of_rotation(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.put_out_of_rotation_with_http_info(**kwargs) # noqa: E501 else: (data) = self.put_out_of_rotation_with_http_info(**kwargs) # noqa: E501 @@ -561,20 +555,20 @@ def put_out_of_rotation(self, **kwargs): # noqa: E501 def put_out_of_rotation_with_http_info(self, **kwargs): # noqa: E501 """Put the host out of rotation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.put_out_of_rotation_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.put_out_of_rotation_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: None If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -618,7 +612,7 @@ def put_out_of_rotation_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -627,13 +621,12 @@ def put_out_of_rotation_with_http_info(self, **kwargs): # noqa: E501 def trigger_invoice_generation_for_parked_accounts(self, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation for all parked accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.trigger_invoice_generation_for_parked_accounts(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.trigger_invoice_generation_for_parked_accounts(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Int offset: :param Int limit: @@ -645,7 +638,7 @@ def trigger_invoice_generation_for_parked_accounts(self, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.trigger_invoice_generation_for_parked_accounts_with_http_info(created_by, **kwargs) # noqa: E501 else: (data) = self.trigger_invoice_generation_for_parked_accounts_with_http_info(created_by, **kwargs) # noqa: E501 @@ -654,13 +647,12 @@ def trigger_invoice_generation_for_parked_accounts(self, created_by=None, **kwar def trigger_invoice_generation_for_parked_accounts_with_http_info(self, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation for all parked accounts # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.trigger_invoice_generation_for_parked_accounts_with_http_info(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.trigger_invoice_generation_for_parked_accounts_with_http_info(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Int offset: :param Int limit: @@ -673,7 +665,8 @@ def trigger_invoice_generation_for_parked_accounts_with_http_info(self, created_ """ all_params = ['created_by', 'offset', 'limit', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -738,7 +731,7 @@ def trigger_invoice_generation_for_parked_accounts_with_http_info(self, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -747,13 +740,12 @@ def trigger_invoice_generation_for_parked_accounts_with_http_info(self, created_ def update_payment_transaction_state(self, payment_id=None, payment_transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update existing paymentTransaction and associated payment state # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_payment_transaction_state(payment_id, payment_transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_payment_transaction_state(payment_id, payment_transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str payment_transaction_id: (required) :param AdminPayment body: (required) @@ -765,7 +757,7 @@ def update_payment_transaction_state(self, payment_id=None, payment_transaction_ returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_payment_transaction_state_with_http_info(payment_id, payment_transaction_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_payment_transaction_state_with_http_info(payment_id, payment_transaction_id, body, created_by, **kwargs) # noqa: E501 @@ -774,13 +766,12 @@ def update_payment_transaction_state(self, payment_id=None, payment_transaction_ def update_payment_transaction_state_with_http_info(self, payment_id=None, payment_transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update existing paymentTransaction and associated payment state # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_payment_transaction_state_with_http_info(payment_id, payment_transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_payment_transaction_state_with_http_info(payment_id, payment_transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str payment_transaction_id: (required) :param AdminPayment body: (required) @@ -793,7 +784,8 @@ def update_payment_transaction_state_with_http_info(self, payment_id=None, payme """ all_params = ['payment_id', 'payment_transaction_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -873,7 +865,7 @@ def update_payment_transaction_state_with_http_info(self, payment_id=None, payme files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/bundle_api.py b/killbill/api/bundle_api.py index b3f1ec6..405bc9b 100644 --- a/killbill/api/bundle_api.py +++ b/killbill/api/bundle_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def add_bundle_blocking_state(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_bundle_blocking_state(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_bundle_blocking_state(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -74,7 +73,7 @@ def add_bundle_blocking_state(self, bundle_id=None, body=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_bundle_blocking_state_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_bundle_blocking_state_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -83,13 +82,12 @@ def add_bundle_blocking_state(self, bundle_id=None, body=None, created_by=None, def add_bundle_blocking_state_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_bundle_blocking_state_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_bundle_blocking_state_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -103,7 +101,8 @@ def add_bundle_blocking_state_with_http_info(self, bundle_id=None, body=None, cr """ all_params = ['bundle_id', 'body', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -176,7 +175,7 @@ def add_bundle_blocking_state_with_http_info(self, bundle_id=None, body=None, cr files=local_var_files, response_type='List[BlockingState]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -185,13 +184,12 @@ def add_bundle_blocking_state_with_http_info(self, bundle_id=None, body=None, cr def create_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_bundle_custom_fields(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_bundle_custom_fields(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -202,7 +200,7 @@ def create_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_bundle_custom_fields_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_bundle_custom_fields_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -211,13 +209,12 @@ def create_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None def create_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_bundle_custom_fields_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_bundle_custom_fields_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -229,7 +226,8 @@ def create_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, """ all_params = ['bundle_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -301,7 +299,7 @@ def create_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -310,13 +308,12 @@ def create_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, def create_bundle_tags(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_bundle_tags(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_bundle_tags(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -327,7 +324,7 @@ def create_bundle_tags(self, bundle_id=None, body=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_bundle_tags_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_bundle_tags_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -336,13 +333,12 @@ def create_bundle_tags(self, bundle_id=None, body=None, created_by=None, **kwarg def create_bundle_tags_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_bundle_tags_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_bundle_tags_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -354,7 +350,8 @@ def create_bundle_tags_with_http_info(self, bundle_id=None, body=None, created_b """ all_params = ['bundle_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -426,7 +423,7 @@ def create_bundle_tags_with_http_info(self, bundle_id=None, body=None, created_b files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -435,13 +432,12 @@ def create_bundle_tags_with_http_info(self, bundle_id=None, body=None, created_b def delete_bundle_custom_fields(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_bundle_custom_fields(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_bundle_custom_fields(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -452,7 +448,7 @@ def delete_bundle_custom_fields(self, bundle_id=None, created_by=None, **kwargs) returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_bundle_custom_fields_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_bundle_custom_fields_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 @@ -461,13 +457,12 @@ def delete_bundle_custom_fields(self, bundle_id=None, created_by=None, **kwargs) def delete_bundle_custom_fields_with_http_info(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_bundle_custom_fields_with_http_info(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_bundle_custom_fields_with_http_info(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -479,7 +474,8 @@ def delete_bundle_custom_fields_with_http_info(self, bundle_id=None, created_by= """ all_params = ['bundle_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -548,7 +544,7 @@ def delete_bundle_custom_fields_with_http_info(self, bundle_id=None, created_by= files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -557,13 +553,12 @@ def delete_bundle_custom_fields_with_http_info(self, bundle_id=None, created_by= def delete_bundle_tags(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_bundle_tags(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_bundle_tags(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -574,7 +569,7 @@ def delete_bundle_tags(self, bundle_id=None, created_by=None, **kwargs): # noqa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_bundle_tags_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_bundle_tags_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 @@ -583,13 +578,12 @@ def delete_bundle_tags(self, bundle_id=None, created_by=None, **kwargs): # noqa def delete_bundle_tags_with_http_info(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_bundle_tags_with_http_info(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_bundle_tags_with_http_info(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -601,7 +595,8 @@ def delete_bundle_tags_with_http_info(self, bundle_id=None, created_by=None, **k """ all_params = ['bundle_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -670,7 +665,7 @@ def delete_bundle_tags_with_http_info(self, bundle_id=None, created_by=None, **k files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -679,13 +674,12 @@ def delete_bundle_tags_with_http_info(self, bundle_id=None, created_by=None, **k def get_bundle(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve a bundle by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str audit: :return: Bundle @@ -693,7 +687,7 @@ def get_bundle(self, bundle_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundle_with_http_info(bundle_id, **kwargs) # noqa: E501 else: (data) = self.get_bundle_with_http_info(bundle_id, **kwargs) # noqa: E501 @@ -702,13 +696,12 @@ def get_bundle(self, bundle_id=None, **kwargs): # noqa: E501 def get_bundle_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve a bundle by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_with_http_info(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_with_http_info(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str audit: :return: Bundle @@ -717,7 +710,8 @@ def get_bundle_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 """ all_params = ['bundle_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -771,7 +765,7 @@ def get_bundle_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='Bundle', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -780,20 +774,19 @@ def get_bundle_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 def get_bundle_audit_logs_with_history(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_audit_logs_with_history(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_audit_logs_with_history(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundle_audit_logs_with_history_with_http_info(bundle_id, **kwargs) # noqa: E501 else: (data) = self.get_bundle_audit_logs_with_history_with_http_info(bundle_id, **kwargs) # noqa: E501 @@ -802,13 +795,12 @@ def get_bundle_audit_logs_with_history(self, bundle_id=None, **kwargs): # noqa: def get_bundle_audit_logs_with_history_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_audit_logs_with_history_with_http_info(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_audit_logs_with_history_with_http_info(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -816,7 +808,8 @@ def get_bundle_audit_logs_with_history_with_http_info(self, bundle_id=None, **kw """ all_params = ['bundle_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -868,7 +861,7 @@ def get_bundle_audit_logs_with_history_with_http_info(self, bundle_id=None, **kw files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -877,13 +870,12 @@ def get_bundle_audit_logs_with_history_with_http_info(self, bundle_id=None, **kw def get_bundle_by_key(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a bundle by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_by_key(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_by_key(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool included_deleted: :param Str audit: @@ -892,7 +884,7 @@ def get_bundle_by_key(self, external_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundle_by_key_with_http_info(external_key, **kwargs) # noqa: E501 else: (data) = self.get_bundle_by_key_with_http_info(external_key, **kwargs) # noqa: E501 @@ -901,13 +893,12 @@ def get_bundle_by_key(self, external_key=None, **kwargs): # noqa: E501 def get_bundle_by_key_with_http_info(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a bundle by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_by_key_with_http_info(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_by_key_with_http_info(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool included_deleted: :param Str audit: @@ -917,7 +908,8 @@ def get_bundle_by_key_with_http_info(self, external_key=None, **kwargs): # noqa """ all_params = ['external_key', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -971,7 +963,7 @@ def get_bundle_by_key_with_http_info(self, external_key=None, **kwargs): # noqa files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -980,13 +972,12 @@ def get_bundle_by_key_with_http_info(self, external_key=None, **kwargs): # noqa def get_bundle_custom_fields(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_custom_fields(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_custom_fields(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str audit: :return: List[CustomField] @@ -994,7 +985,7 @@ def get_bundle_custom_fields(self, bundle_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundle_custom_fields_with_http_info(bundle_id, **kwargs) # noqa: E501 else: (data) = self.get_bundle_custom_fields_with_http_info(bundle_id, **kwargs) # noqa: E501 @@ -1003,13 +994,12 @@ def get_bundle_custom_fields(self, bundle_id=None, **kwargs): # noqa: E501 def get_bundle_custom_fields_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_custom_fields_with_http_info(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_custom_fields_with_http_info(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str audit: :return: List[CustomField] @@ -1018,7 +1008,8 @@ def get_bundle_custom_fields_with_http_info(self, bundle_id=None, **kwargs): # """ all_params = ['bundle_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1072,7 +1063,7 @@ def get_bundle_custom_fields_with_http_info(self, bundle_id=None, **kwargs): # files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1081,13 +1072,12 @@ def get_bundle_custom_fields_with_http_info(self, bundle_id=None, **kwargs): # def get_bundle_tags(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_tags(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_tags(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bool included_deleted: :param Str audit: @@ -1096,7 +1086,7 @@ def get_bundle_tags(self, bundle_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundle_tags_with_http_info(bundle_id, **kwargs) # noqa: E501 else: (data) = self.get_bundle_tags_with_http_info(bundle_id, **kwargs) # noqa: E501 @@ -1105,13 +1095,12 @@ def get_bundle_tags(self, bundle_id=None, **kwargs): # noqa: E501 def get_bundle_tags_with_http_info(self, bundle_id=None, **kwargs): # noqa: E501 """Retrieve bundle tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundle_tags_with_http_info(bundle_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundle_tags_with_http_info(bundle_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bool included_deleted: :param Str audit: @@ -1121,7 +1110,8 @@ def get_bundle_tags_with_http_info(self, bundle_id=None, **kwargs): # noqa: E50 """ all_params = ['bundle_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1177,7 +1167,7 @@ def get_bundle_tags_with_http_info(self, bundle_id=None, **kwargs): # noqa: E50 files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1186,13 +1176,12 @@ def get_bundle_tags_with_http_info(self, bundle_id=None, **kwargs): # noqa: E50 def get_bundles(self, **kwargs): # noqa: E501 """List bundles # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundles(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundles(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -1201,7 +1190,7 @@ def get_bundles(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_bundles_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_bundles_with_http_info(**kwargs) # noqa: E501 @@ -1210,13 +1199,12 @@ def get_bundles(self, **kwargs): # noqa: E501 def get_bundles_with_http_info(self, **kwargs): # noqa: E501 """List bundles # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_bundles_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_bundles_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -1226,7 +1214,8 @@ def get_bundles_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1276,7 +1265,7 @@ def get_bundles_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1285,13 +1274,12 @@ def get_bundles_with_http_info(self, **kwargs): # noqa: E501 def modify_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_bundle_custom_fields(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_bundle_custom_fields(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1302,7 +1290,7 @@ def modify_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_bundle_custom_fields_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_bundle_custom_fields_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -1311,13 +1299,12 @@ def modify_bundle_custom_fields(self, bundle_id=None, body=None, created_by=None def modify_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_bundle_custom_fields_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_bundle_custom_fields_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1329,7 +1316,8 @@ def modify_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, """ all_params = ['bundle_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1401,7 +1389,7 @@ def modify_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1410,13 +1398,12 @@ def modify_bundle_custom_fields_with_http_info(self, bundle_id=None, body=None, def pause_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Pause a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.pause_bundle(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pause_bundle(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -1428,7 +1415,7 @@ def pause_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.pause_bundle_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 else: (data) = self.pause_bundle_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 @@ -1437,13 +1424,12 @@ def pause_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 def pause_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Pause a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.pause_bundle_with_http_info(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pause_bundle_with_http_info(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -1456,7 +1442,8 @@ def pause_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs) """ all_params = ['bundle_id', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1527,7 +1514,7 @@ def pause_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs) files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1536,13 +1523,12 @@ def pause_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs) def rename_external_key(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update a bundle externalKey # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.rename_external_key(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rename_external_key(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bundle body: (required) :param Str created_by: (required) @@ -1553,7 +1539,7 @@ def rename_external_key(self, bundle_id=None, body=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.rename_external_key_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.rename_external_key_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -1562,13 +1548,12 @@ def rename_external_key(self, bundle_id=None, body=None, created_by=None, **kwar def rename_external_key_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update a bundle externalKey # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.rename_external_key_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rename_external_key_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bundle body: (required) :param Str created_by: (required) @@ -1580,7 +1565,8 @@ def rename_external_key_with_http_info(self, bundle_id=None, body=None, created_ """ all_params = ['bundle_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1648,7 +1634,7 @@ def rename_external_key_with_http_info(self, bundle_id=None, body=None, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1657,13 +1643,12 @@ def rename_external_key_with_http_info(self, bundle_id=None, body=None, created_ def resume_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Resume a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.resume_bundle(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resume_bundle(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -1675,7 +1660,7 @@ def resume_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.resume_bundle_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 else: (data) = self.resume_bundle_with_http_info(bundle_id, created_by, **kwargs) # noqa: E501 @@ -1684,13 +1669,12 @@ def resume_bundle(self, bundle_id=None, created_by=None, **kwargs): # noqa: E50 def resume_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs): # noqa: E501 """Resume a bundle # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.resume_bundle_with_http_info(bundle_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resume_bundle_with_http_info(bundle_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -1703,7 +1687,8 @@ def resume_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs """ all_params = ['bundle_id', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1774,7 +1759,7 @@ def resume_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1783,13 +1768,12 @@ def resume_bundle_with_http_info(self, bundle_id=None, created_by=None, **kwargs def search_bundles(self, search_key=None, **kwargs): # noqa: E501 """Search bundles # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_bundles(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_bundles(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -1799,7 +1783,7 @@ def search_bundles(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_bundles_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_bundles_with_http_info(search_key, **kwargs) # noqa: E501 @@ -1808,13 +1792,12 @@ def search_bundles(self, search_key=None, **kwargs): # noqa: E501 def search_bundles_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search bundles # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_bundles_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_bundles_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -1825,7 +1808,8 @@ def search_bundles_with_http_info(self, search_key=None, **kwargs): # noqa: E50 """ all_params = ['search_key', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1883,7 +1867,7 @@ def search_bundles_with_http_info(self, search_key=None, **kwargs): # noqa: E50 files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1892,13 +1876,12 @@ def search_bundles_with_http_info(self, search_key=None, **kwargs): # noqa: E50 def transfer_bundle(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Transfer a bundle to another account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.transfer_bundle(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transfer_bundle(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bundle body: (required) :param Str created_by: (required) @@ -1913,7 +1896,7 @@ def transfer_bundle(self, bundle_id=None, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.transfer_bundle_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.transfer_bundle_with_http_info(bundle_id, body, created_by, **kwargs) # noqa: E501 @@ -1922,13 +1905,12 @@ def transfer_bundle(self, bundle_id=None, body=None, created_by=None, **kwargs): def transfer_bundle_with_http_info(self, bundle_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Transfer a bundle to another account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.transfer_bundle_with_http_info(bundle_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transfer_bundle_with_http_info(bundle_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str bundle_id: (required) :param Bundle body: (required) :param Str created_by: (required) @@ -1944,7 +1926,8 @@ def transfer_bundle_with_http_info(self, bundle_id=None, body=None, created_by=N """ all_params = ['bundle_id', 'body', 'created_by', 'requested_date', 'billing_policy', 'bcd_transfer', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2025,7 +2008,7 @@ def transfer_bundle_with_http_info(self, bundle_id=None, body=None, created_by=N files=local_var_files, response_type='Bundle', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/catalog_api.py b/killbill/api/catalog_api.py index 71f08aa..a54fe62 100644 --- a/killbill/api/catalog_api.py +++ b/killbill/api/catalog_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def add_simple_plan(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a simple plan entry in the current version of the catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_simple_plan(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_simple_plan(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SimplePlan body: (required) :param Str created_by: (required) :param Str reason: @@ -71,7 +70,7 @@ def add_simple_plan(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_simple_plan_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_simple_plan_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def add_simple_plan(self, body=None, created_by=None, **kwargs): # noqa: E501 def add_simple_plan_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a simple plan entry in the current version of the catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_simple_plan_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_simple_plan_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SimplePlan body: (required) :param Str created_by: (required) :param Str reason: @@ -97,7 +95,8 @@ def add_simple_plan_with_http_info(self, body=None, created_by=None, **kwargs): """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -161,7 +160,7 @@ def add_simple_plan_with_http_info(self, body=None, created_by=None, **kwargs): files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -170,13 +169,12 @@ def add_simple_plan_with_http_info(self, body=None, created_by=None, **kwargs): def delete_catalog(self, created_by=None, **kwargs): # noqa: E501 """Delete all versions for a per tenant catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_catalog(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_catalog(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -185,7 +183,7 @@ def delete_catalog(self, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_catalog_with_http_info(created_by, **kwargs) # noqa: E501 else: (data) = self.delete_catalog_with_http_info(created_by, **kwargs) # noqa: E501 @@ -194,13 +192,12 @@ def delete_catalog(self, created_by=None, **kwargs): # noqa: E501 def delete_catalog_with_http_info(self, created_by=None, **kwargs): # noqa: E501 """Delete all versions for a per tenant catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_catalog_with_http_info(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_catalog_with_http_info(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -210,7 +207,8 @@ def delete_catalog_with_http_info(self, created_by=None, **kwargs): # noqa: E50 """ all_params = ['created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -260,7 +258,7 @@ def delete_catalog_with_http_info(self, created_by=None, **kwargs): # noqa: E50 files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -269,13 +267,12 @@ def delete_catalog_with_http_info(self, created_by=None, **kwargs): # noqa: E50 def get_available_addons(self, **kwargs): # noqa: E501 """Retrieve available add-ons for a given product # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_available_addons(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_addons(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str base_product_name: :param Str price_list_name: :param Str account_id: @@ -284,7 +281,7 @@ def get_available_addons(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_available_addons_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_available_addons_with_http_info(**kwargs) # noqa: E501 @@ -293,13 +290,12 @@ def get_available_addons(self, **kwargs): # noqa: E501 def get_available_addons_with_http_info(self, **kwargs): # noqa: E501 """Retrieve available add-ons for a given product # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_available_addons_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_addons_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str base_product_name: :param Str price_list_name: :param Str account_id: @@ -309,7 +305,8 @@ def get_available_addons_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['base_product_name', 'price_list_name', 'account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -359,7 +356,7 @@ def get_available_addons_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[PlanDetail]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -368,20 +365,19 @@ def get_available_addons_with_http_info(self, **kwargs): # noqa: E501 def get_available_base_plans(self, **kwargs): # noqa: E501 """Retrieve available base plans # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_available_base_plans(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_base_plans(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :return: List[PlanDetail] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_available_base_plans_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_available_base_plans_with_http_info(**kwargs) # noqa: E501 @@ -390,13 +386,12 @@ def get_available_base_plans(self, **kwargs): # noqa: E501 def get_available_base_plans_with_http_info(self, **kwargs): # noqa: E501 """Retrieve available base plans # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_available_base_plans_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_base_plans_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :return: List[PlanDetail] If the method is called asynchronously, @@ -404,7 +399,8 @@ def get_available_base_plans_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -450,7 +446,7 @@ def get_available_base_plans_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[PlanDetail]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -459,13 +455,12 @@ def get_available_base_plans_with_http_info(self, **kwargs): # noqa: E501 def get_catalog_json(self, **kwargs): # noqa: E501 """Retrieve the catalog as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_json(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_json(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Datetime requested_date: :param Str account_id: :return: List[Catalog] @@ -473,7 +468,7 @@ def get_catalog_json(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_catalog_json_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_catalog_json_with_http_info(**kwargs) # noqa: E501 @@ -482,13 +477,12 @@ def get_catalog_json(self, **kwargs): # noqa: E501 def get_catalog_json_with_http_info(self, **kwargs): # noqa: E501 """Retrieve the catalog as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_json_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_json_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Datetime requested_date: :param Str account_id: :return: List[Catalog] @@ -497,7 +491,8 @@ def get_catalog_json_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['requested_date', 'account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -545,7 +540,7 @@ def get_catalog_json_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Catalog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -554,20 +549,19 @@ def get_catalog_json_with_http_info(self, **kwargs): # noqa: E501 def get_catalog_versions(self, **kwargs): # noqa: E501 """Retrieve a list of catalog versions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_versions(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_versions(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :return: List[Datetime] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_catalog_versions_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_catalog_versions_with_http_info(**kwargs) # noqa: E501 @@ -576,13 +570,12 @@ def get_catalog_versions(self, **kwargs): # noqa: E501 def get_catalog_versions_with_http_info(self, **kwargs): # noqa: E501 """Retrieve a list of catalog versions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_versions_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_versions_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: :return: List[Datetime] If the method is called asynchronously, @@ -590,7 +583,8 @@ def get_catalog_versions_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -636,7 +630,7 @@ def get_catalog_versions_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Datetime]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -645,13 +639,12 @@ def get_catalog_versions_with_http_info(self, **kwargs): # noqa: E501 def get_catalog_xml(self, **kwargs): # noqa: E501 """Retrieve the full catalog as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_xml(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_xml(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Datetime requested_date: :param Str account_id: :return: Str @@ -659,7 +652,7 @@ def get_catalog_xml(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_catalog_xml_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_catalog_xml_with_http_info(**kwargs) # noqa: E501 @@ -668,13 +661,12 @@ def get_catalog_xml(self, **kwargs): # noqa: E501 def get_catalog_xml_with_http_info(self, **kwargs): # noqa: E501 """Retrieve the full catalog as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_xml_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_xml_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Datetime requested_date: :param Str account_id: :return: Str @@ -683,7 +675,8 @@ def get_catalog_xml_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['requested_date', 'account_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -731,7 +724,7 @@ def get_catalog_xml_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -740,13 +733,12 @@ def get_catalog_xml_with_http_info(self, **kwargs): # noqa: E501 def get_phase_for_subscription_and_date(self, **kwargs): # noqa: E501 """Retrieve phase for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_phase_for_subscription_and_date(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_phase_for_subscription_and_date(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Phase @@ -754,7 +746,7 @@ def get_phase_for_subscription_and_date(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_phase_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_phase_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 @@ -763,13 +755,12 @@ def get_phase_for_subscription_and_date(self, **kwargs): # noqa: E501 def get_phase_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: E501 """Retrieve phase for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_phase_for_subscription_and_date_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_phase_for_subscription_and_date_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Phase @@ -778,7 +769,8 @@ def get_phase_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: """ all_params = ['subscription_id', 'requested_date'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -826,7 +818,7 @@ def get_phase_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: files=local_var_files, response_type='Phase', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -835,13 +827,12 @@ def get_phase_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: def get_plan_for_subscription_and_date(self, **kwargs): # noqa: E501 """Retrieve plan for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plan_for_subscription_and_date(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plan_for_subscription_and_date(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Plan @@ -849,7 +840,7 @@ def get_plan_for_subscription_and_date(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_plan_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_plan_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 @@ -858,13 +849,12 @@ def get_plan_for_subscription_and_date(self, **kwargs): # noqa: E501 def get_plan_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: E501 """Retrieve plan for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plan_for_subscription_and_date_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plan_for_subscription_and_date_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Plan @@ -873,7 +863,8 @@ def get_plan_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: """ all_params = ['subscription_id', 'requested_date'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -921,7 +912,7 @@ def get_plan_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: files=local_var_files, response_type='Plan', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -930,13 +921,12 @@ def get_plan_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: def get_price_list_for_subscription_and_date(self, **kwargs): # noqa: E501 """Retrieve priceList for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_price_list_for_subscription_and_date(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_price_list_for_subscription_and_date(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: PriceList @@ -944,7 +934,7 @@ def get_price_list_for_subscription_and_date(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_price_list_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_price_list_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 @@ -953,13 +943,12 @@ def get_price_list_for_subscription_and_date(self, **kwargs): # noqa: E501 def get_price_list_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: E501 """Retrieve priceList for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_price_list_for_subscription_and_date_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_price_list_for_subscription_and_date_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: PriceList @@ -968,7 +957,8 @@ def get_price_list_for_subscription_and_date_with_http_info(self, **kwargs): # """ all_params = ['subscription_id', 'requested_date'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1016,7 +1006,7 @@ def get_price_list_for_subscription_and_date_with_http_info(self, **kwargs): # files=local_var_files, response_type='PriceList', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1025,13 +1015,12 @@ def get_price_list_for_subscription_and_date_with_http_info(self, **kwargs): # def get_product_for_subscription_and_date(self, **kwargs): # noqa: E501 """Retrieve product for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_product_for_subscription_and_date(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_product_for_subscription_and_date(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Product @@ -1039,7 +1028,7 @@ def get_product_for_subscription_and_date(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_product_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_product_for_subscription_and_date_with_http_info(**kwargs) # noqa: E501 @@ -1048,13 +1037,12 @@ def get_product_for_subscription_and_date(self, **kwargs): # noqa: E501 def get_product_for_subscription_and_date_with_http_info(self, **kwargs): # noqa: E501 """Retrieve product for a given subscription and date # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_product_for_subscription_and_date_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_product_for_subscription_and_date_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: :param Date requested_date: :return: Product @@ -1063,7 +1051,8 @@ def get_product_for_subscription_and_date_with_http_info(self, **kwargs): # noq """ all_params = ['subscription_id', 'requested_date'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1111,7 +1100,7 @@ def get_product_for_subscription_and_date_with_http_info(self, **kwargs): # noq files=local_var_files, response_type='Product', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1120,13 +1109,12 @@ def get_product_for_subscription_and_date_with_http_info(self, **kwargs): # noq def upload_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full catalog as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_catalog_xml(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_catalog_xml(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1136,7 +1124,7 @@ def upload_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_catalog_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_catalog_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1145,13 +1133,12 @@ def upload_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E50 def upload_catalog_xml_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full catalog as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_catalog_xml_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_catalog_xml_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1162,7 +1149,8 @@ def upload_catalog_xml_with_http_info(self, body=None, created_by=None, **kwargs """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1222,7 +1210,7 @@ def upload_catalog_xml_with_http_info(self, body=None, created_by=None, **kwargs files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1231,13 +1219,12 @@ def upload_catalog_xml_with_http_info(self, body=None, created_by=None, **kwargs def validate_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E501 """Validate a XML catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.validate_catalog_xml(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.validate_catalog_xml(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1247,7 +1234,7 @@ def validate_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.validate_catalog_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.validate_catalog_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1256,13 +1243,12 @@ def validate_catalog_xml(self, body=None, created_by=None, **kwargs): # noqa: E def validate_catalog_xml_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Validate a XML catalog # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.validate_catalog_xml_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.validate_catalog_xml_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1273,7 +1259,8 @@ def validate_catalog_xml_with_http_info(self, body=None, created_by=None, **kwar """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1337,7 +1324,7 @@ def validate_catalog_xml_with_http_info(self, body=None, created_by=None, **kwar files=local_var_files, response_type='CatalogValidation', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/credit_api.py b/killbill/api/credit_api.py index 6d3bd23..a3d8b99 100644 --- a/killbill/api/credit_api.py +++ b/killbill/api/credit_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,15 +55,15 @@ def __init__(self, api_client=None): def create_credits(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a credit # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_credits(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_credits(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[InvoiceItem] body: (required) :param Str created_by: (required) + :param Date requested_date: :param Bool auto_commit: :param List[Str] plugin_property: :param Str reason: @@ -73,7 +73,7 @@ def create_credits(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_credits_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_credits_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -82,15 +82,15 @@ def create_credits(self, body=None, created_by=None, **kwargs): # noqa: E501 def create_credits_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a credit # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_credits_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_credits_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[InvoiceItem] body: (required) :param Str created_by: (required) + :param Date requested_date: :param Bool auto_commit: :param List[Str] plugin_property: :param Str reason: @@ -100,8 +100,9 @@ def create_credits_with_http_info(self, body=None, created_by=None, **kwargs): returns the request thread. """ - all_params = ['body', 'created_by', 'auto_commit', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params = ['body', 'created_by', 'requested_date', 'auto_commit', 'plugin_property', 'reason', 'comment'] # noqa: E501 + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -129,6 +130,8 @@ def create_credits_with_http_info(self, body=None, created_by=None, **kwargs): path_params = {} query_params = [] + if 'requested_date' in params: + query_params.append(('requestedDate', params['requested_date'])) # noqa: E501 if 'auto_commit' in params: query_params.append(('autoCommit', params['auto_commit'])) # noqa: E501 if 'plugin_property' in params: @@ -170,7 +173,7 @@ def create_credits_with_http_info(self, body=None, created_by=None, **kwargs): files=local_var_files, response_type='List[InvoiceItem]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -179,20 +182,19 @@ def create_credits_with_http_info(self, body=None, created_by=None, **kwargs): def get_credit(self, credit_id=None, **kwargs): # noqa: E501 """Retrieve a credit by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_credit(credit_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_credit(credit_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str credit_id: (required) :return: InvoiceItem If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_credit_with_http_info(credit_id, **kwargs) # noqa: E501 else: (data) = self.get_credit_with_http_info(credit_id, **kwargs) # noqa: E501 @@ -201,13 +203,12 @@ def get_credit(self, credit_id=None, **kwargs): # noqa: E501 def get_credit_with_http_info(self, credit_id=None, **kwargs): # noqa: E501 """Retrieve a credit by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_credit_with_http_info(credit_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_credit_with_http_info(credit_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str credit_id: (required) :return: InvoiceItem If the method is called asynchronously, @@ -215,7 +216,8 @@ def get_credit_with_http_info(self, credit_id=None, **kwargs): # noqa: E501 """ all_params = ['credit_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -267,7 +269,7 @@ def get_credit_with_http_info(self, credit_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='InvoiceItem', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/custom_field_api.py b/killbill/api/custom_field_api.py index 7a145a1..89b5094 100644 --- a/killbill/api/custom_field_api.py +++ b/killbill/api/custom_field_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,20 +55,19 @@ def __init__(self, api_client=None): def get_custom_field_audit_logs_with_history(self, custom_field_id=None, **kwargs): # noqa: E501 """Retrieve custom field audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_custom_field_audit_logs_with_history(custom_field_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_custom_field_audit_logs_with_history(custom_field_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str custom_field_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_custom_field_audit_logs_with_history_with_http_info(custom_field_id, **kwargs) # noqa: E501 else: (data) = self.get_custom_field_audit_logs_with_history_with_http_info(custom_field_id, **kwargs) # noqa: E501 @@ -77,13 +76,12 @@ def get_custom_field_audit_logs_with_history(self, custom_field_id=None, **kwarg def get_custom_field_audit_logs_with_history_with_http_info(self, custom_field_id=None, **kwargs): # noqa: E501 """Retrieve custom field audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_custom_field_audit_logs_with_history_with_http_info(custom_field_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_custom_field_audit_logs_with_history_with_http_info(custom_field_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str custom_field_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -91,7 +89,8 @@ def get_custom_field_audit_logs_with_history_with_http_info(self, custom_field_i """ all_params = ['custom_field_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -143,7 +142,7 @@ def get_custom_field_audit_logs_with_history_with_http_info(self, custom_field_i files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -152,13 +151,12 @@ def get_custom_field_audit_logs_with_history_with_http_info(self, custom_field_i def get_custom_fields(self, **kwargs): # noqa: E501 """List custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_custom_fields(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_custom_fields(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -167,7 +165,7 @@ def get_custom_fields(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_custom_fields_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_custom_fields_with_http_info(**kwargs) # noqa: E501 @@ -176,13 +174,12 @@ def get_custom_fields(self, **kwargs): # noqa: E501 def get_custom_fields_with_http_info(self, **kwargs): # noqa: E501 """List custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_custom_fields_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_custom_fields_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -192,7 +189,8 @@ def get_custom_fields_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -242,7 +240,7 @@ def get_custom_fields_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -251,13 +249,12 @@ def get_custom_fields_with_http_info(self, **kwargs): # noqa: E501 def search_custom_fields(self, search_key=None, **kwargs): # noqa: E501 """Search custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_custom_fields(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_custom_fields(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -267,7 +264,7 @@ def search_custom_fields(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_custom_fields_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_custom_fields_with_http_info(search_key, **kwargs) # noqa: E501 @@ -276,13 +273,12 @@ def search_custom_fields(self, search_key=None, **kwargs): # noqa: E501 def search_custom_fields_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_custom_fields_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_custom_fields_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -293,7 +289,8 @@ def search_custom_fields_with_http_info(self, search_key=None, **kwargs): # noq """ all_params = ['search_key', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -351,7 +348,7 @@ def search_custom_fields_with_http_info(self, search_key=None, **kwargs): # noq files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -360,13 +357,12 @@ def search_custom_fields_with_http_info(self, search_key=None, **kwargs): # noq def search_custom_fields_by_type_name(self, **kwargs): # noqa: E501 """Search custom fields by type, name and optional value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_custom_fields_by_type_name(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_custom_fields_by_type_name(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str object_type: :param Str field_name: :param Str field_value: @@ -378,7 +374,7 @@ def search_custom_fields_by_type_name(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_custom_fields_by_type_name_with_http_info(**kwargs) # noqa: E501 else: (data) = self.search_custom_fields_by_type_name_with_http_info(**kwargs) # noqa: E501 @@ -387,13 +383,12 @@ def search_custom_fields_by_type_name(self, **kwargs): # noqa: E501 def search_custom_fields_by_type_name_with_http_info(self, **kwargs): # noqa: E501 """Search custom fields by type, name and optional value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_custom_fields_by_type_name_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_custom_fields_by_type_name_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str object_type: :param Str field_name: :param Str field_value: @@ -406,7 +401,8 @@ def search_custom_fields_by_type_name_with_http_info(self, **kwargs): # noqa: E """ all_params = ['object_type', 'field_name', 'field_value', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -462,7 +458,7 @@ def search_custom_fields_by_type_name_with_http_info(self, **kwargs): # noqa: E files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/export_api.py b/killbill/api/export_api.py index a1d2004..b443201 100644 --- a/killbill/api/export_api.py +++ b/killbill/api/export_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def export_data_for_account(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Export account data # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.export_data_for_account(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.export_data_for_account(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str reason: @@ -71,7 +70,7 @@ def export_data_for_account(self, account_id=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.export_data_for_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.export_data_for_account_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def export_data_for_account(self, account_id=None, created_by=None, **kwargs): def export_data_for_account_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Export account data # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.export_data_for_account_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.export_data_for_account_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Str reason: @@ -97,7 +95,8 @@ def export_data_for_account_with_http_info(self, account_id=None, created_by=Non """ all_params = ['account_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -159,7 +158,7 @@ def export_data_for_account_with_http_info(self, account_id=None, created_by=Non files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/invoice_api.py b/killbill/api/invoice_api.py index b940b6a..f8a825d 100644 --- a/killbill/api/invoice_api.py +++ b/killbill/api/invoice_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def adjust_invoice_item(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Adjust an invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.adjust_invoice_item(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.adjust_invoice_item(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param InvoiceItem body: (required) :param Str created_by: (required) @@ -74,7 +73,7 @@ def adjust_invoice_item(self, invoice_id=None, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.adjust_invoice_item_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.adjust_invoice_item_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 @@ -83,13 +82,12 @@ def adjust_invoice_item(self, invoice_id=None, body=None, created_by=None, **kwa def adjust_invoice_item_with_http_info(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Adjust an invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.adjust_invoice_item_with_http_info(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.adjust_invoice_item_with_http_info(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param InvoiceItem body: (required) :param Str created_by: (required) @@ -103,7 +101,8 @@ def adjust_invoice_item_with_http_info(self, invoice_id=None, body=None, created """ all_params = ['invoice_id', 'body', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -180,7 +179,7 @@ def adjust_invoice_item_with_http_info(self, invoice_id=None, body=None, created files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -189,13 +188,12 @@ def adjust_invoice_item_with_http_info(self, invoice_id=None, body=None, created def commit_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Perform the invoice status transition from DRAFT to COMMITTED # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.commit_invoice(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.commit_invoice(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param Str reason: @@ -205,7 +203,7 @@ def commit_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.commit_invoice_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 else: (data) = self.commit_invoice_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 @@ -214,13 +212,12 @@ def commit_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E def commit_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Perform the invoice status transition from DRAFT to COMMITTED # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.commit_invoice_with_http_info(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.commit_invoice_with_http_info(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param Str reason: @@ -231,7 +228,8 @@ def commit_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwar """ all_params = ['invoice_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -297,7 +295,7 @@ def commit_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -306,13 +304,12 @@ def commit_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwar def create_external_charges(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create external charge(s) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_external_charges(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_external_charges(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -326,7 +323,7 @@ def create_external_charges(self, account_id=None, body=None, created_by=None, * returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_external_charges_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_external_charges_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -335,13 +332,12 @@ def create_external_charges(self, account_id=None, body=None, created_by=None, * def create_external_charges_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create external charge(s) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_external_charges_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_external_charges_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -356,7 +352,8 @@ def create_external_charges_with_http_info(self, account_id=None, body=None, cre """ all_params = ['account_id', 'body', 'created_by', 'requested_date', 'auto_commit', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -435,7 +432,7 @@ def create_external_charges_with_http_info(self, account_id=None, body=None, cre files=local_var_files, response_type='List[InvoiceItem]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -444,13 +441,12 @@ def create_external_charges_with_http_info(self, account_id=None, body=None, cre def create_future_invoice(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_future_invoice(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_future_invoice(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Date target_date: @@ -462,7 +458,7 @@ def create_future_invoice(self, account_id=None, created_by=None, **kwargs): # returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_future_invoice_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.create_future_invoice_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -471,13 +467,12 @@ def create_future_invoice(self, account_id=None, created_by=None, **kwargs): # def create_future_invoice_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_future_invoice_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_future_invoice_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Date target_date: @@ -490,7 +485,8 @@ def create_future_invoice_with_http_info(self, account_id=None, created_by=None, """ all_params = ['account_id', 'created_by', 'target_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -559,7 +555,7 @@ def create_future_invoice_with_http_info(self, account_id=None, created_by=None, files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -568,13 +564,12 @@ def create_future_invoice_with_http_info(self, account_id=None, created_by=None, def create_future_invoice_group(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_future_invoice_group(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_future_invoice_group(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Date target_date: @@ -586,7 +581,7 @@ def create_future_invoice_group(self, account_id=None, created_by=None, **kwargs returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_future_invoice_group_with_http_info(account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.create_future_invoice_group_with_http_info(account_id, created_by, **kwargs) # noqa: E501 @@ -595,13 +590,12 @@ def create_future_invoice_group(self, account_id=None, created_by=None, **kwargs def create_future_invoice_group_with_http_info(self, account_id=None, created_by=None, **kwargs): # noqa: E501 """Trigger an invoice generation # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_future_invoice_group_with_http_info(account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_future_invoice_group_with_http_info(account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param Str created_by: (required) :param Date target_date: @@ -614,7 +608,8 @@ def create_future_invoice_group_with_http_info(self, account_id=None, created_by """ all_params = ['account_id', 'created_by', 'target_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -683,7 +678,7 @@ def create_future_invoice_group_with_http_info(self, account_id=None, created_by files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -692,13 +687,12 @@ def create_future_invoice_group_with_http_info(self, account_id=None, created_by def create_instant_payment(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment for invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_instant_payment(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_instant_payment(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param InvoicePayment body: (required) :param Str created_by: (required) @@ -712,7 +706,7 @@ def create_instant_payment(self, invoice_id=None, body=None, created_by=None, ** returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_instant_payment_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_instant_payment_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 @@ -721,13 +715,12 @@ def create_instant_payment(self, invoice_id=None, body=None, created_by=None, ** def create_instant_payment_with_http_info(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a payment for invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_instant_payment_with_http_info(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_instant_payment_with_http_info(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param InvoicePayment body: (required) :param Str created_by: (required) @@ -742,7 +735,8 @@ def create_instant_payment_with_http_info(self, invoice_id=None, body=None, crea """ all_params = ['invoice_id', 'body', 'created_by', 'external_payment', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -822,7 +816,7 @@ def create_instant_payment_with_http_info(self, invoice_id=None, body=None, crea files=local_var_files, response_type='InvoicePayment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -831,13 +825,12 @@ def create_instant_payment_with_http_info(self, invoice_id=None, body=None, crea def create_invoice_custom_fields(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_custom_fields(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_custom_fields(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -848,7 +841,7 @@ def create_invoice_custom_fields(self, invoice_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_custom_fields_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_custom_fields_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 @@ -857,13 +850,12 @@ def create_invoice_custom_fields(self, invoice_id=None, body=None, created_by=No def create_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_custom_fields_with_http_info(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_custom_fields_with_http_info(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -875,7 +867,8 @@ def create_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None """ all_params = ['invoice_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -947,7 +940,7 @@ def create_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -956,13 +949,12 @@ def create_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None def create_invoice_tags(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_tags(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_tags(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -973,7 +965,7 @@ def create_invoice_tags(self, invoice_id=None, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_tags_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_tags_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 @@ -982,13 +974,12 @@ def create_invoice_tags(self, invoice_id=None, body=None, created_by=None, **kwa def create_invoice_tags_with_http_info(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_tags_with_http_info(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_tags_with_http_info(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -1000,7 +991,8 @@ def create_invoice_tags_with_http_info(self, invoice_id=None, body=None, created """ all_params = ['invoice_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1072,7 +1064,7 @@ def create_invoice_tags_with_http_info(self, invoice_id=None, body=None, created files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1081,13 +1073,12 @@ def create_invoice_tags_with_http_info(self, invoice_id=None, body=None, created def create_migration_invoice(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create a migration invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_migration_invoice(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_migration_invoice(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -1099,7 +1090,7 @@ def create_migration_invoice(self, account_id=None, body=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_migration_invoice_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_migration_invoice_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -1108,13 +1099,12 @@ def create_migration_invoice(self, account_id=None, body=None, created_by=None, def create_migration_invoice_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create a migration invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_migration_invoice_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_migration_invoice_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -1127,7 +1117,8 @@ def create_migration_invoice_with_http_info(self, account_id=None, body=None, cr """ all_params = ['account_id', 'body', 'created_by', 'target_date', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1201,7 +1192,7 @@ def create_migration_invoice_with_http_info(self, account_id=None, body=None, cr files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1210,13 +1201,12 @@ def create_migration_invoice_with_http_info(self, account_id=None, body=None, cr def create_tax_items(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create tax items # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tax_items(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tax_items(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -1230,7 +1220,7 @@ def create_tax_items(self, account_id=None, body=None, created_by=None, **kwargs returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_tax_items_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_tax_items_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -1239,13 +1229,12 @@ def create_tax_items(self, account_id=None, body=None, created_by=None, **kwargs def create_tax_items_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Create tax items # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tax_items_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tax_items_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param List[InvoiceItem] body: (required) :param Str created_by: (required) @@ -1260,7 +1249,8 @@ def create_tax_items_with_http_info(self, account_id=None, body=None, created_by """ all_params = ['account_id', 'body', 'created_by', 'auto_commit', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1339,7 +1329,7 @@ def create_tax_items_with_http_info(self, account_id=None, body=None, created_by files=local_var_files, response_type='List[InvoiceItem]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1348,13 +1338,12 @@ def create_tax_items_with_http_info(self, account_id=None, body=None, created_by def delete_cba(self, invoice_id=None, invoice_item_id=None, account_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a CBA item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_cba(invoice_id, invoice_item_id, account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_cba(invoice_id, invoice_item_id, account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str invoice_item_id: (required) :param Str account_id: (required) @@ -1366,7 +1355,7 @@ def delete_cba(self, invoice_id=None, invoice_item_id=None, account_id=None, cre returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_cba_with_http_info(invoice_id, invoice_item_id, account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_cba_with_http_info(invoice_id, invoice_item_id, account_id, created_by, **kwargs) # noqa: E501 @@ -1375,13 +1364,12 @@ def delete_cba(self, invoice_id=None, invoice_item_id=None, account_id=None, cre def delete_cba_with_http_info(self, invoice_id=None, invoice_item_id=None, account_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a CBA item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_cba_with_http_info(invoice_id, invoice_item_id, account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_cba_with_http_info(invoice_id, invoice_item_id, account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str invoice_item_id: (required) :param Str account_id: (required) @@ -1394,7 +1382,8 @@ def delete_cba_with_http_info(self, invoice_id=None, invoice_item_id=None, accou """ all_params = ['invoice_id', 'invoice_item_id', 'account_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1474,7 +1463,7 @@ def delete_cba_with_http_info(self, invoice_id=None, invoice_item_id=None, accou files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1483,13 +1472,12 @@ def delete_cba_with_http_info(self, invoice_id=None, invoice_item_id=None, accou def delete_invoice_custom_fields(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_custom_fields(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_custom_fields(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1500,7 +1488,7 @@ def delete_invoice_custom_fields(self, invoice_id=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_custom_fields_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_custom_fields_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 @@ -1509,13 +1497,12 @@ def delete_invoice_custom_fields(self, invoice_id=None, created_by=None, **kwarg def delete_invoice_custom_fields_with_http_info(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_custom_fields_with_http_info(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_custom_fields_with_http_info(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1527,7 +1514,8 @@ def delete_invoice_custom_fields_with_http_info(self, invoice_id=None, created_b """ all_params = ['invoice_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1596,7 +1584,7 @@ def delete_invoice_custom_fields_with_http_info(self, invoice_id=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1605,13 +1593,12 @@ def delete_invoice_custom_fields_with_http_info(self, invoice_id=None, created_b def delete_invoice_tags(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_tags(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_tags(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1622,7 +1609,7 @@ def delete_invoice_tags(self, invoice_id=None, created_by=None, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_tags_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_tags_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 @@ -1631,13 +1618,12 @@ def delete_invoice_tags(self, invoice_id=None, created_by=None, **kwargs): # no def delete_invoice_tags_with_http_info(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_tags_with_http_info(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_tags_with_http_info(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1649,7 +1635,8 @@ def delete_invoice_tags_with_http_info(self, invoice_id=None, created_by=None, * """ all_params = ['invoice_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1718,7 +1705,7 @@ def delete_invoice_tags_with_http_info(self, invoice_id=None, created_by=None, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1727,13 +1714,12 @@ def delete_invoice_tags_with_http_info(self, invoice_id=None, created_by=None, * def generate_dry_run_invoice(self, body=None, account_id=None, created_by=None, **kwargs): # noqa: E501 """Generate a dryRun invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.generate_dry_run_invoice(body, account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.generate_dry_run_invoice(body, account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param InvoiceDryRun body: (required) :param Str account_id: (required) :param Str created_by: (required) @@ -1746,7 +1732,7 @@ def generate_dry_run_invoice(self, body=None, account_id=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.generate_dry_run_invoice_with_http_info(body, account_id, created_by, **kwargs) # noqa: E501 else: (data) = self.generate_dry_run_invoice_with_http_info(body, account_id, created_by, **kwargs) # noqa: E501 @@ -1755,13 +1741,12 @@ def generate_dry_run_invoice(self, body=None, account_id=None, created_by=None, def generate_dry_run_invoice_with_http_info(self, body=None, account_id=None, created_by=None, **kwargs): # noqa: E501 """Generate a dryRun invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.generate_dry_run_invoice_with_http_info(body, account_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.generate_dry_run_invoice_with_http_info(body, account_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param InvoiceDryRun body: (required) :param Str account_id: (required) :param Str created_by: (required) @@ -1775,7 +1760,8 @@ def generate_dry_run_invoice_with_http_info(self, body=None, account_id=None, cr """ all_params = ['body', 'account_id', 'created_by', 'target_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1850,7 +1836,7 @@ def generate_dry_run_invoice_with_http_info(self, body=None, account_id=None, cr files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1859,20 +1845,19 @@ def generate_dry_run_invoice_with_http_info(self, body=None, account_id=None, cr def get_catalog_translation(self, locale=None, **kwargs): # noqa: E501 """Retrieves the catalog translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_translation(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_translation(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_catalog_translation_with_http_info(locale, **kwargs) # noqa: E501 else: (data) = self.get_catalog_translation_with_http_info(locale, **kwargs) # noqa: E501 @@ -1881,13 +1866,12 @@ def get_catalog_translation(self, locale=None, **kwargs): # noqa: E501 def get_catalog_translation_with_http_info(self, locale=None, **kwargs): # noqa: E501 """Retrieves the catalog translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_catalog_translation_with_http_info(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_catalog_translation_with_http_info(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, @@ -1895,7 +1879,8 @@ def get_catalog_translation_with_http_info(self, locale=None, **kwargs): # noqa """ all_params = ['locale'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1947,7 +1932,7 @@ def get_catalog_translation_with_http_info(self, locale=None, **kwargs): # noqa files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1956,13 +1941,12 @@ def get_catalog_translation_with_http_info(self, locale=None, **kwargs): # noqa def get_invoice(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve an invoice by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool with_children_items: :param Str audit: @@ -1971,7 +1955,7 @@ def get_invoice(self, invoice_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -1980,13 +1964,12 @@ def get_invoice(self, invoice_id=None, **kwargs): # noqa: E501 def get_invoice_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve an invoice by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool with_children_items: :param Str audit: @@ -1996,7 +1979,8 @@ def get_invoice_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """ all_params = ['invoice_id', 'with_children_items', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2052,7 +2036,7 @@ def get_invoice_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2061,20 +2045,19 @@ def get_invoice_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 def get_invoice_as_html(self, invoice_id=None, **kwargs): # noqa: E501 """Render an invoice as HTML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_as_html(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_as_html(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_as_html_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_as_html_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -2083,13 +2066,12 @@ def get_invoice_as_html(self, invoice_id=None, **kwargs): # noqa: E501 def get_invoice_as_html_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Render an invoice as HTML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_as_html_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_as_html_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :return: Str If the method is called asynchronously, @@ -2097,7 +2079,8 @@ def get_invoice_as_html_with_http_info(self, invoice_id=None, **kwargs): # noqa """ all_params = ['invoice_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2149,7 +2132,7 @@ def get_invoice_as_html_with_http_info(self, invoice_id=None, **kwargs): # noqa files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2158,20 +2141,19 @@ def get_invoice_as_html_with_http_info(self, invoice_id=None, **kwargs): # noqa def get_invoice_audit_logs_with_history(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_audit_logs_with_history(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_audit_logs_with_history(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_audit_logs_with_history_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_audit_logs_with_history_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -2180,13 +2162,12 @@ def get_invoice_audit_logs_with_history(self, invoice_id=None, **kwargs): # noq def get_invoice_audit_logs_with_history_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_audit_logs_with_history_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_audit_logs_with_history_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -2194,7 +2175,8 @@ def get_invoice_audit_logs_with_history_with_http_info(self, invoice_id=None, ** """ all_params = ['invoice_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2246,7 +2228,7 @@ def get_invoice_audit_logs_with_history_with_http_info(self, invoice_id=None, ** files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2255,13 +2237,12 @@ def get_invoice_audit_logs_with_history_with_http_info(self, invoice_id=None, ** def get_invoice_by_item_id(self, item_id=None, **kwargs): # noqa: E501 """Retrieve an invoice by invoice item id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_by_item_id(item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_by_item_id(item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str item_id: (required) :param Bool with_children_items: :param Str audit: @@ -2270,7 +2251,7 @@ def get_invoice_by_item_id(self, item_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_by_item_id_with_http_info(item_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_by_item_id_with_http_info(item_id, **kwargs) # noqa: E501 @@ -2279,13 +2260,12 @@ def get_invoice_by_item_id(self, item_id=None, **kwargs): # noqa: E501 def get_invoice_by_item_id_with_http_info(self, item_id=None, **kwargs): # noqa: E501 """Retrieve an invoice by invoice item id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_by_item_id_with_http_info(item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_by_item_id_with_http_info(item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str item_id: (required) :param Bool with_children_items: :param Str audit: @@ -2295,7 +2275,8 @@ def get_invoice_by_item_id_with_http_info(self, item_id=None, **kwargs): # noqa """ all_params = ['item_id', 'with_children_items', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2351,7 +2332,7 @@ def get_invoice_by_item_id_with_http_info(self, item_id=None, **kwargs): # noqa files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2360,13 +2341,12 @@ def get_invoice_by_item_id_with_http_info(self, item_id=None, **kwargs): # noqa def get_invoice_by_number(self, invoice_number=None, **kwargs): # noqa: E501 """Retrieve an invoice by number # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_by_number(invoice_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_by_number(invoice_number, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int invoice_number: (required) :param Bool with_children_items: :param Str audit: @@ -2375,7 +2355,7 @@ def get_invoice_by_number(self, invoice_number=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_by_number_with_http_info(invoice_number, **kwargs) # noqa: E501 else: (data) = self.get_invoice_by_number_with_http_info(invoice_number, **kwargs) # noqa: E501 @@ -2384,13 +2364,12 @@ def get_invoice_by_number(self, invoice_number=None, **kwargs): # noqa: E501 def get_invoice_by_number_with_http_info(self, invoice_number=None, **kwargs): # noqa: E501 """Retrieve an invoice by number # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_by_number_with_http_info(invoice_number, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_by_number_with_http_info(invoice_number, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int invoice_number: (required) :param Bool with_children_items: :param Str audit: @@ -2400,7 +2379,8 @@ def get_invoice_by_number_with_http_info(self, invoice_number=None, **kwargs): """ all_params = ['invoice_number', 'with_children_items', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2419,8 +2399,6 @@ def get_invoice_by_number_with_http_info(self, invoice_number=None, **kwargs): params['invoice_number'] is None): raise ValueError("Missing the required parameter `invoice_number` when calling `get_invoice_by_number`") # noqa: E501 - if 'invoice_number' in params and not re.search('[0-9]+', params['invoice_number']): # noqa: E501 - raise ValueError("Invalid value for parameter `invoice_number` when calling `get_invoice_by_number`, must conform to the pattern `/[0-9]+/`") # noqa: E501 collection_formats = {} path_params = {} @@ -2456,7 +2434,7 @@ def get_invoice_by_number_with_http_info(self, invoice_number=None, **kwargs): files=local_var_files, response_type='Invoice', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2465,13 +2443,12 @@ def get_invoice_by_number_with_http_info(self, invoice_number=None, **kwargs): def get_invoice_custom_fields(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_custom_fields(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_custom_fields(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str audit: :return: List[CustomField] @@ -2479,7 +2456,7 @@ def get_invoice_custom_fields(self, invoice_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_custom_fields_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_custom_fields_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -2488,13 +2465,12 @@ def get_invoice_custom_fields(self, invoice_id=None, **kwargs): # noqa: E501 def get_invoice_custom_fields_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_custom_fields_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_custom_fields_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str audit: :return: List[CustomField] @@ -2503,7 +2479,8 @@ def get_invoice_custom_fields_with_http_info(self, invoice_id=None, **kwargs): """ all_params = ['invoice_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2557,7 +2534,7 @@ def get_invoice_custom_fields_with_http_info(self, invoice_id=None, **kwargs): files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2566,20 +2543,19 @@ def get_invoice_custom_fields_with_http_info(self, invoice_id=None, **kwargs): def get_invoice_mp_template(self, locale=None, **kwargs): # noqa: E501 """Retrieves the manualPay invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_mp_template(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_mp_template(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_mp_template_with_http_info(locale, **kwargs) # noqa: E501 else: (data) = self.get_invoice_mp_template_with_http_info(locale, **kwargs) # noqa: E501 @@ -2588,13 +2564,12 @@ def get_invoice_mp_template(self, locale=None, **kwargs): # noqa: E501 def get_invoice_mp_template_with_http_info(self, locale=None, **kwargs): # noqa: E501 """Retrieves the manualPay invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_mp_template_with_http_info(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_mp_template_with_http_info(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, @@ -2602,7 +2577,8 @@ def get_invoice_mp_template_with_http_info(self, locale=None, **kwargs): # noqa """ all_params = ['locale'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2654,7 +2630,7 @@ def get_invoice_mp_template_with_http_info(self, locale=None, **kwargs): # noqa files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2663,13 +2639,12 @@ def get_invoice_mp_template_with_http_info(self, locale=None, **kwargs): # noqa def get_invoice_tags(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_tags(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_tags(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool included_deleted: :param Str audit: @@ -2678,7 +2653,7 @@ def get_invoice_tags(self, invoice_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_tags_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_tags_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -2687,13 +2662,12 @@ def get_invoice_tags(self, invoice_id=None, **kwargs): # noqa: E501 def get_invoice_tags_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve invoice tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_tags_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_tags_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool included_deleted: :param Str audit: @@ -2703,7 +2677,8 @@ def get_invoice_tags_with_http_info(self, invoice_id=None, **kwargs): # noqa: E """ all_params = ['invoice_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2759,7 +2734,7 @@ def get_invoice_tags_with_http_info(self, invoice_id=None, **kwargs): # noqa: E files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2768,19 +2743,18 @@ def get_invoice_tags_with_http_info(self, invoice_id=None, **kwargs): # noqa: E def get_invoice_template(self, **kwargs): # noqa: E501 """Retrieves the invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_template(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_template(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_template_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_invoice_template_with_http_info(**kwargs) # noqa: E501 @@ -2789,20 +2763,20 @@ def get_invoice_template(self, **kwargs): # noqa: E501 def get_invoice_template_with_http_info(self, **kwargs): # noqa: E501 """Retrieves the invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_template_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_template_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Str If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2846,7 +2820,7 @@ def get_invoice_template_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2855,20 +2829,19 @@ def get_invoice_template_with_http_info(self, **kwargs): # noqa: E501 def get_invoice_translation(self, locale=None, **kwargs): # noqa: E501 """Retrieves the invoice translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_translation(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_translation(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_translation_with_http_info(locale, **kwargs) # noqa: E501 else: (data) = self.get_invoice_translation_with_http_info(locale, **kwargs) # noqa: E501 @@ -2877,13 +2850,12 @@ def get_invoice_translation(self, locale=None, **kwargs): # noqa: E501 def get_invoice_translation_with_http_info(self, locale=None, **kwargs): # noqa: E501 """Retrieves the invoice translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_translation_with_http_info(locale, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_translation_with_http_info(locale, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :return: Str If the method is called asynchronously, @@ -2891,7 +2863,8 @@ def get_invoice_translation_with_http_info(self, locale=None, **kwargs): # noqa """ all_params = ['locale'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2943,7 +2916,7 @@ def get_invoice_translation_with_http_info(self, locale=None, **kwargs): # noqa files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2952,13 +2925,12 @@ def get_invoice_translation_with_http_info(self, locale=None, **kwargs): # noqa def get_invoices(self, **kwargs): # noqa: E501 """List invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -2967,7 +2939,7 @@ def get_invoices(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoices_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_invoices_with_http_info(**kwargs) # noqa: E501 @@ -2976,13 +2948,12 @@ def get_invoices(self, **kwargs): # noqa: E501 def get_invoices_with_http_info(self, **kwargs): # noqa: E501 """List invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -2992,7 +2963,8 @@ def get_invoices_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3042,7 +3014,7 @@ def get_invoices_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3051,13 +3023,12 @@ def get_invoices_with_http_info(self, **kwargs): # noqa: E501 def get_invoices_group(self, group_id=None, account_id=None, **kwargs): # noqa: E501 """Retrieve a set of invoices by group id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_group(group_id, account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_group(group_id, account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str group_id: (required) :param Str account_id: (required) :param Bool with_children_items: @@ -3067,7 +3038,7 @@ def get_invoices_group(self, group_id=None, account_id=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoices_group_with_http_info(group_id, account_id, **kwargs) # noqa: E501 else: (data) = self.get_invoices_group_with_http_info(group_id, account_id, **kwargs) # noqa: E501 @@ -3076,13 +3047,12 @@ def get_invoices_group(self, group_id=None, account_id=None, **kwargs): # noqa: def get_invoices_group_with_http_info(self, group_id=None, account_id=None, **kwargs): # noqa: E501 """Retrieve a set of invoices by group id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoices_group_with_http_info(group_id, account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoices_group_with_http_info(group_id, account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str group_id: (required) :param Str account_id: (required) :param Bool with_children_items: @@ -3093,7 +3063,8 @@ def get_invoices_group_with_http_info(self, group_id=None, account_id=None, **kw """ all_params = ['group_id', 'account_id', 'with_children_items', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3155,7 +3126,7 @@ def get_invoices_group_with_http_info(self, group_id=None, account_id=None, **kw files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3164,13 +3135,12 @@ def get_invoices_group_with_http_info(self, group_id=None, account_id=None, **kw def get_payments_for_invoice(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve payments associated with an invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments_for_invoice(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments_for_invoice(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -3180,7 +3150,7 @@ def get_payments_for_invoice(self, invoice_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payments_for_invoice_with_http_info(invoice_id, **kwargs) # noqa: E501 else: (data) = self.get_payments_for_invoice_with_http_info(invoice_id, **kwargs) # noqa: E501 @@ -3189,13 +3159,12 @@ def get_payments_for_invoice(self, invoice_id=None, **kwargs): # noqa: E501 def get_payments_for_invoice_with_http_info(self, invoice_id=None, **kwargs): # noqa: E501 """Retrieve payments associated with an invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments_for_invoice_with_http_info(invoice_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments_for_invoice_with_http_info(invoice_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -3206,7 +3175,8 @@ def get_payments_for_invoice_with_http_info(self, invoice_id=None, **kwargs): # """ all_params = ['invoice_id', 'with_plugin_info', 'with_attempts', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3264,7 +3234,7 @@ def get_payments_for_invoice_with_http_info(self, invoice_id=None, **kwargs): # files=local_var_files, response_type='List[InvoicePayment]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3273,13 +3243,12 @@ def get_payments_for_invoice_with_http_info(self, invoice_id=None, **kwargs): # def modify_invoice_custom_fields(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_custom_fields(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_custom_fields(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -3290,7 +3259,7 @@ def modify_invoice_custom_fields(self, invoice_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_invoice_custom_fields_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_invoice_custom_fields_with_http_info(invoice_id, body, created_by, **kwargs) # noqa: E501 @@ -3299,13 +3268,12 @@ def modify_invoice_custom_fields(self, invoice_id=None, body=None, created_by=No def modify_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_custom_fields_with_http_info(invoice_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_custom_fields_with_http_info(invoice_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -3317,7 +3285,8 @@ def modify_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None """ all_params = ['invoice_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3389,7 +3358,7 @@ def modify_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3398,13 +3367,12 @@ def modify_invoice_custom_fields_with_http_info(self, invoice_id=None, body=None def search_invoices(self, search_key=None, **kwargs): # noqa: E501 """Search invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_invoices(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_invoices(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -3414,7 +3382,7 @@ def search_invoices(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_invoices_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_invoices_with_http_info(search_key, **kwargs) # noqa: E501 @@ -3423,13 +3391,12 @@ def search_invoices(self, search_key=None, **kwargs): # noqa: E501 def search_invoices_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search invoices # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_invoices_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_invoices_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -3440,7 +3407,8 @@ def search_invoices_with_http_info(self, search_key=None, **kwargs): # noqa: E5 """ all_params = ['search_key', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3498,7 +3466,7 @@ def search_invoices_with_http_info(self, search_key=None, **kwargs): # noqa: E5 files=local_var_files, response_type='List[Invoice]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3507,13 +3475,12 @@ def search_invoices_with_http_info(self, search_key=None, **kwargs): # noqa: E5 def upload_catalog_translation(self, locale=None, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the catalog translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_catalog_translation(locale, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_catalog_translation(locale, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :param Str body: (required) :param Str created_by: (required) @@ -3525,7 +3492,7 @@ def upload_catalog_translation(self, locale=None, body=None, created_by=None, ** returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_catalog_translation_with_http_info(locale, body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_catalog_translation_with_http_info(locale, body, created_by, **kwargs) # noqa: E501 @@ -3534,13 +3501,12 @@ def upload_catalog_translation(self, locale=None, body=None, created_by=None, ** def upload_catalog_translation_with_http_info(self, locale=None, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the catalog translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_catalog_translation_with_http_info(locale, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_catalog_translation_with_http_info(locale, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :param Str body: (required) :param Str created_by: (required) @@ -3553,7 +3519,8 @@ def upload_catalog_translation_with_http_info(self, locale=None, body=None, crea """ all_params = ['locale', 'body', 'created_by', 'delete_if_exists', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3627,7 +3594,7 @@ def upload_catalog_translation_with_http_info(self, locale=None, body=None, crea files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3636,13 +3603,12 @@ def upload_catalog_translation_with_http_info(self, locale=None, body=None, crea def upload_invoice_mp_template(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the manualPay invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_mp_template(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_mp_template(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Bool delete_if_exists: @@ -3653,7 +3619,7 @@ def upload_invoice_mp_template(self, body=None, created_by=None, **kwargs): # n returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_invoice_mp_template_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_invoice_mp_template_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -3662,13 +3628,12 @@ def upload_invoice_mp_template(self, body=None, created_by=None, **kwargs): # n def upload_invoice_mp_template_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the manualPay invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_mp_template_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_mp_template_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Bool delete_if_exists: @@ -3680,7 +3645,8 @@ def upload_invoice_mp_template_with_http_info(self, body=None, created_by=None, """ all_params = ['body', 'created_by', 'delete_if_exists', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3746,7 +3712,7 @@ def upload_invoice_mp_template_with_http_info(self, body=None, created_by=None, files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3755,13 +3721,12 @@ def upload_invoice_mp_template_with_http_info(self, body=None, created_by=None, def upload_invoice_template(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_template(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_template(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Bool delete_if_exists: @@ -3772,7 +3737,7 @@ def upload_invoice_template(self, body=None, created_by=None, **kwargs): # noqa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_invoice_template_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_invoice_template_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -3781,13 +3746,12 @@ def upload_invoice_template(self, body=None, created_by=None, **kwargs): # noqa def upload_invoice_template_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the invoice template for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_template_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_template_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Bool delete_if_exists: @@ -3799,7 +3763,8 @@ def upload_invoice_template_with_http_info(self, body=None, created_by=None, **k """ all_params = ['body', 'created_by', 'delete_if_exists', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3865,7 +3830,7 @@ def upload_invoice_template_with_http_info(self, body=None, created_by=None, **k files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3874,13 +3839,12 @@ def upload_invoice_template_with_http_info(self, body=None, created_by=None, **k def upload_invoice_translation(self, locale=None, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the invoice translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_translation(locale, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_translation(locale, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :param Str body: (required) :param Str created_by: (required) @@ -3892,7 +3856,7 @@ def upload_invoice_translation(self, locale=None, body=None, created_by=None, ** returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_invoice_translation_with_http_info(locale, body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_invoice_translation_with_http_info(locale, body, created_by, **kwargs) # noqa: E501 @@ -3901,13 +3865,12 @@ def upload_invoice_translation(self, locale=None, body=None, created_by=None, ** def upload_invoice_translation_with_http_info(self, locale=None, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the invoice translation for the tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_invoice_translation_with_http_info(locale, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_invoice_translation_with_http_info(locale, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str locale: (required) :param Str body: (required) :param Str created_by: (required) @@ -3920,7 +3883,8 @@ def upload_invoice_translation_with_http_info(self, locale=None, body=None, crea """ all_params = ['locale', 'body', 'created_by', 'delete_if_exists', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3994,7 +3958,7 @@ def upload_invoice_translation_with_http_info(self, locale=None, body=None, crea files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -4003,13 +3967,12 @@ def upload_invoice_translation_with_http_info(self, locale=None, body=None, crea def void_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Perform the action of voiding an invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_invoice(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_invoice(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param Str reason: @@ -4019,7 +3982,7 @@ def void_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.void_invoice_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 else: (data) = self.void_invoice_with_http_info(invoice_id, created_by, **kwargs) # noqa: E501 @@ -4028,13 +3991,12 @@ def void_invoice(self, invoice_id=None, created_by=None, **kwargs): # noqa: E50 def void_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwargs): # noqa: E501 """Perform the action of voiding an invoice # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_invoice_with_http_info(invoice_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_invoice_with_http_info(invoice_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_id: (required) :param Str created_by: (required) :param Str reason: @@ -4045,7 +4007,8 @@ def void_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwargs """ all_params = ['invoice_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -4111,7 +4074,7 @@ def void_invoice_with_http_info(self, invoice_id=None, created_by=None, **kwargs files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/invoice_item_api.py b/killbill/api/invoice_item_api.py index b0679fe..bc07cb1 100644 --- a/killbill/api/invoice_item_api.py +++ b/killbill/api/invoice_item_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def create_invoice_item_custom_fields(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_item_custom_fields(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_item_custom_fields(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -72,7 +71,7 @@ def create_invoice_item_custom_fields(self, invoice_item_id=None, body=None, cre returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 @@ -81,13 +80,12 @@ def create_invoice_item_custom_fields(self, invoice_item_id=None, body=None, cre def create_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -99,7 +97,8 @@ def create_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, """ all_params = ['invoice_item_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -171,7 +170,7 @@ def create_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -180,13 +179,12 @@ def create_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, def create_invoice_item_tags(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_item_tags(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_item_tags(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -197,7 +195,7 @@ def create_invoice_item_tags(self, invoice_item_id=None, body=None, created_by=N returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_item_tags_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_item_tags_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 @@ -206,13 +204,12 @@ def create_invoice_item_tags(self, invoice_item_id=None, body=None, created_by=N def create_invoice_item_tags_with_http_info(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_item_tags_with_http_info(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_item_tags_with_http_info(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -224,7 +221,8 @@ def create_invoice_item_tags_with_http_info(self, invoice_item_id=None, body=Non """ all_params = ['invoice_item_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -296,7 +294,7 @@ def create_invoice_item_tags_with_http_info(self, invoice_item_id=None, body=Non files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -305,13 +303,12 @@ def create_invoice_item_tags_with_http_info(self, invoice_item_id=None, body=Non def delete_invoice_item_custom_fields(self, invoice_item_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_item_custom_fields(invoice_item_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_item_custom_fields(invoice_item_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -322,7 +319,7 @@ def delete_invoice_item_custom_fields(self, invoice_item_id=None, created_by=Non returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_item_custom_fields_with_http_info(invoice_item_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_item_custom_fields_with_http_info(invoice_item_id, created_by, **kwargs) # noqa: E501 @@ -331,13 +328,12 @@ def delete_invoice_item_custom_fields(self, invoice_item_id=None, created_by=Non def delete_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_item_custom_fields_with_http_info(invoice_item_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_item_custom_fields_with_http_info(invoice_item_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -349,7 +345,8 @@ def delete_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, """ all_params = ['invoice_item_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -418,7 +415,7 @@ def delete_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -427,13 +424,12 @@ def delete_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, def delete_invoice_item_tags(self, invoice_item_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_item_tags(invoice_item_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_item_tags(invoice_item_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -444,7 +440,7 @@ def delete_invoice_item_tags(self, invoice_item_id=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_item_tags_with_http_info(invoice_item_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_item_tags_with_http_info(invoice_item_id, created_by, **kwargs) # noqa: E501 @@ -453,13 +449,12 @@ def delete_invoice_item_tags(self, invoice_item_id=None, created_by=None, **kwar def delete_invoice_item_tags_with_http_info(self, invoice_item_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_item_tags_with_http_info(invoice_item_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_item_tags_with_http_info(invoice_item_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -471,7 +466,8 @@ def delete_invoice_item_tags_with_http_info(self, invoice_item_id=None, created_ """ all_params = ['invoice_item_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -540,7 +536,7 @@ def delete_invoice_item_tags_with_http_info(self, invoice_item_id=None, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -549,20 +545,19 @@ def delete_invoice_item_tags_with_http_info(self, invoice_item_id=None, created_ def get_invoice_item_audit_logs_with_history(self, invoice_item_id=None, **kwargs): # noqa: E501 """Retrieve invoice item audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_audit_logs_with_history(invoice_item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_audit_logs_with_history(invoice_item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_item_audit_logs_with_history_with_http_info(invoice_item_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_item_audit_logs_with_history_with_http_info(invoice_item_id, **kwargs) # noqa: E501 @@ -571,13 +566,12 @@ def get_invoice_item_audit_logs_with_history(self, invoice_item_id=None, **kwarg def get_invoice_item_audit_logs_with_history_with_http_info(self, invoice_item_id=None, **kwargs): # noqa: E501 """Retrieve invoice item audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_audit_logs_with_history_with_http_info(invoice_item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_audit_logs_with_history_with_http_info(invoice_item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -585,7 +579,8 @@ def get_invoice_item_audit_logs_with_history_with_http_info(self, invoice_item_i """ all_params = ['invoice_item_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -637,7 +632,7 @@ def get_invoice_item_audit_logs_with_history_with_http_info(self, invoice_item_i files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -646,13 +641,12 @@ def get_invoice_item_audit_logs_with_history_with_http_info(self, invoice_item_i def get_invoice_item_custom_fields(self, invoice_item_id=None, **kwargs): # noqa: E501 """Retrieve invoice item custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_custom_fields(invoice_item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_custom_fields(invoice_item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str audit: :return: List[CustomField] @@ -660,7 +654,7 @@ def get_invoice_item_custom_fields(self, invoice_item_id=None, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_item_custom_fields_with_http_info(invoice_item_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_item_custom_fields_with_http_info(invoice_item_id, **kwargs) # noqa: E501 @@ -669,13 +663,12 @@ def get_invoice_item_custom_fields(self, invoice_item_id=None, **kwargs): # noq def get_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, **kwargs): # noqa: E501 """Retrieve invoice item custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_custom_fields_with_http_info(invoice_item_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_custom_fields_with_http_info(invoice_item_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str audit: :return: List[CustomField] @@ -684,7 +677,8 @@ def get_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, ** """ all_params = ['invoice_item_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -738,7 +732,7 @@ def get_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, ** files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -747,13 +741,12 @@ def get_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, ** def get_invoice_item_tags(self, invoice_item_id=None, account_id=None, **kwargs): # noqa: E501 """Retrieve invoice item tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_tags(invoice_item_id, account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_tags(invoice_item_id, account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str account_id: (required) :param Bool included_deleted: @@ -763,7 +756,7 @@ def get_invoice_item_tags(self, invoice_item_id=None, account_id=None, **kwargs) returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_item_tags_with_http_info(invoice_item_id, account_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_item_tags_with_http_info(invoice_item_id, account_id, **kwargs) # noqa: E501 @@ -772,13 +765,12 @@ def get_invoice_item_tags(self, invoice_item_id=None, account_id=None, **kwargs) def get_invoice_item_tags_with_http_info(self, invoice_item_id=None, account_id=None, **kwargs): # noqa: E501 """Retrieve invoice item tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_item_tags_with_http_info(invoice_item_id, account_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_item_tags_with_http_info(invoice_item_id, account_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param Str account_id: (required) :param Bool included_deleted: @@ -789,7 +781,8 @@ def get_invoice_item_tags_with_http_info(self, invoice_item_id=None, account_id= """ all_params = ['invoice_item_id', 'account_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -851,7 +844,7 @@ def get_invoice_item_tags_with_http_info(self, invoice_item_id=None, account_id= files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -860,13 +853,12 @@ def get_invoice_item_tags_with_http_info(self, invoice_item_id=None, account_id= def modify_invoice_item_custom_fields(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_item_custom_fields(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_item_custom_fields(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -877,7 +869,7 @@ def modify_invoice_item_custom_fields(self, invoice_item_id=None, body=None, cre returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, **kwargs) # noqa: E501 @@ -886,13 +878,12 @@ def modify_invoice_item_custom_fields(self, invoice_item_id=None, body=None, cre def modify_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to invoice item # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_item_custom_fields_with_http_info(invoice_item_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_item_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -904,7 +895,8 @@ def modify_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, """ all_params = ['invoice_item_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -976,7 +968,7 @@ def modify_invoice_item_custom_fields_with_http_info(self, invoice_item_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/invoice_payment_api.py b/killbill/api/invoice_payment_api.py index 51b677b..8917fd3 100644 --- a/killbill/api/invoice_payment_api.py +++ b/killbill/api/invoice_payment_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def complete_invoice_payment_transaction(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_invoice_payment_transaction(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_invoice_payment_transaction(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -74,7 +73,7 @@ def complete_invoice_payment_transaction(self, payment_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.complete_invoice_payment_transaction_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.complete_invoice_payment_transaction_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -83,13 +82,12 @@ def complete_invoice_payment_transaction(self, payment_id=None, body=None, creat def complete_invoice_payment_transaction_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_invoice_payment_transaction_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_invoice_payment_transaction_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -103,7 +101,8 @@ def complete_invoice_payment_transaction_with_http_info(self, payment_id=None, b """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -181,7 +180,7 @@ def complete_invoice_payment_transaction_with_http_info(self, payment_id=None, b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -190,13 +189,12 @@ def complete_invoice_payment_transaction_with_http_info(self, payment_id=None, b def create_chargeback(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_chargeback(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_chargeback(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -208,7 +206,7 @@ def create_chargeback(self, payment_id=None, body=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_chargeback_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_chargeback_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -217,13 +215,12 @@ def create_chargeback(self, payment_id=None, body=None, created_by=None, **kwarg def create_chargeback_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_chargeback_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_chargeback_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -236,7 +233,8 @@ def create_chargeback_with_http_info(self, payment_id=None, body=None, created_b """ all_params = ['payment_id', 'body', 'created_by', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -311,7 +309,7 @@ def create_chargeback_with_http_info(self, payment_id=None, body=None, created_b files=local_var_files, response_type='InvoicePayment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -320,13 +318,12 @@ def create_chargeback_with_http_info(self, payment_id=None, body=None, created_b def create_chargeback_reversal(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargebackReversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_chargeback_reversal(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_chargeback_reversal(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -338,7 +335,7 @@ def create_chargeback_reversal(self, payment_id=None, body=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_chargeback_reversal_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_chargeback_reversal_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -347,13 +344,12 @@ def create_chargeback_reversal(self, payment_id=None, body=None, created_by=None def create_chargeback_reversal_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargebackReversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_chargeback_reversal_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_chargeback_reversal_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -366,7 +362,8 @@ def create_chargeback_reversal_with_http_info(self, payment_id=None, body=None, """ all_params = ['payment_id', 'body', 'created_by', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -441,7 +438,7 @@ def create_chargeback_reversal_with_http_info(self, payment_id=None, body=None, files=local_var_files, response_type='InvoicePayment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -450,13 +447,12 @@ def create_chargeback_reversal_with_http_info(self, payment_id=None, body=None, def create_invoice_payment_custom_fields(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_payment_custom_fields(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_payment_custom_fields(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -467,7 +463,7 @@ def create_invoice_payment_custom_fields(self, payment_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -476,13 +472,12 @@ def create_invoice_payment_custom_fields(self, payment_id=None, body=None, creat def create_invoice_payment_custom_fields_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -494,7 +489,8 @@ def create_invoice_payment_custom_fields_with_http_info(self, payment_id=None, b """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -566,7 +562,7 @@ def create_invoice_payment_custom_fields_with_http_info(self, payment_id=None, b files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -575,13 +571,12 @@ def create_invoice_payment_custom_fields_with_http_info(self, payment_id=None, b def create_invoice_payment_tags(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_payment_tags(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_payment_tags(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -592,7 +587,7 @@ def create_invoice_payment_tags(self, payment_id=None, body=None, created_by=Non returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_invoice_payment_tags_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_invoice_payment_tags_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -601,13 +596,12 @@ def create_invoice_payment_tags(self, payment_id=None, body=None, created_by=Non def create_invoice_payment_tags_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_invoice_payment_tags_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_invoice_payment_tags_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -619,7 +613,8 @@ def create_invoice_payment_tags_with_http_info(self, payment_id=None, body=None, """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -691,7 +686,7 @@ def create_invoice_payment_tags_with_http_info(self, payment_id=None, body=None, files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -700,13 +695,12 @@ def create_invoice_payment_tags_with_http_info(self, payment_id=None, body=None, def create_refund_with_adjustments(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Refund a payment, and adjust the invoice if needed # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_refund_with_adjustments(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_refund_with_adjustments(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -720,7 +714,7 @@ def create_refund_with_adjustments(self, payment_id=None, body=None, created_by= returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_refund_with_adjustments_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_refund_with_adjustments_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -729,13 +723,12 @@ def create_refund_with_adjustments(self, payment_id=None, body=None, created_by= def create_refund_with_adjustments_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Refund a payment, and adjust the invoice if needed # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_refund_with_adjustments_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_refund_with_adjustments_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param InvoicePaymentTransaction body: (required) :param Str created_by: (required) @@ -750,7 +743,8 @@ def create_refund_with_adjustments_with_http_info(self, payment_id=None, body=No """ all_params = ['payment_id', 'body', 'created_by', 'external_payment', 'payment_method_id', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -829,7 +823,7 @@ def create_refund_with_adjustments_with_http_info(self, payment_id=None, body=No files=local_var_files, response_type='InvoicePayment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -838,13 +832,12 @@ def create_refund_with_adjustments_with_http_info(self, payment_id=None, body=No def delete_invoice_payment_custom_fields(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_payment_custom_fields(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_payment_custom_fields(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -855,7 +848,7 @@ def delete_invoice_payment_custom_fields(self, payment_id=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_payment_custom_fields_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_payment_custom_fields_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 @@ -864,13 +857,12 @@ def delete_invoice_payment_custom_fields(self, payment_id=None, created_by=None, def delete_invoice_payment_custom_fields_with_http_info(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_payment_custom_fields_with_http_info(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_payment_custom_fields_with_http_info(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -882,7 +874,8 @@ def delete_invoice_payment_custom_fields_with_http_info(self, payment_id=None, c """ all_params = ['payment_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -951,7 +944,7 @@ def delete_invoice_payment_custom_fields_with_http_info(self, payment_id=None, c files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -960,13 +953,12 @@ def delete_invoice_payment_custom_fields_with_http_info(self, payment_id=None, c def delete_invoice_payment_tags(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_payment_tags(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_payment_tags(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -977,7 +969,7 @@ def delete_invoice_payment_tags(self, payment_id=None, created_by=None, **kwargs returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_invoice_payment_tags_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_invoice_payment_tags_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 @@ -986,13 +978,12 @@ def delete_invoice_payment_tags(self, payment_id=None, created_by=None, **kwargs def delete_invoice_payment_tags_with_http_info(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_invoice_payment_tags_with_http_info(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_invoice_payment_tags_with_http_info(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1004,7 +995,8 @@ def delete_invoice_payment_tags_with_http_info(self, payment_id=None, created_by """ all_params = ['payment_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1073,7 +1065,7 @@ def delete_invoice_payment_tags_with_http_info(self, payment_id=None, created_by files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1082,13 +1074,12 @@ def delete_invoice_payment_tags_with_http_info(self, payment_id=None, created_by def get_invoice_payment(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve a payment by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -1099,7 +1090,7 @@ def get_invoice_payment(self, payment_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_payment_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_payment_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -1108,13 +1099,12 @@ def get_invoice_payment(self, payment_id=None, **kwargs): # noqa: E501 def get_invoice_payment_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve a payment by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -1126,7 +1116,8 @@ def get_invoice_payment_with_http_info(self, payment_id=None, **kwargs): # noqa """ all_params = ['payment_id', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1187,7 +1178,7 @@ def get_invoice_payment_with_http_info(self, payment_id=None, **kwargs): # noqa files=local_var_files, response_type='InvoicePayment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1196,20 +1187,19 @@ def get_invoice_payment_with_http_info(self, payment_id=None, **kwargs): # noqa def get_invoice_payment_audit_logs_with_history(self, invoice_payment_id=None, **kwargs): # noqa: E501 """Retrieve invoice payment audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_audit_logs_with_history(invoice_payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_audit_logs_with_history(invoice_payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_payment_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_payment_audit_logs_with_history_with_http_info(invoice_payment_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_payment_audit_logs_with_history_with_http_info(invoice_payment_id, **kwargs) # noqa: E501 @@ -1218,13 +1208,12 @@ def get_invoice_payment_audit_logs_with_history(self, invoice_payment_id=None, * def get_invoice_payment_audit_logs_with_history_with_http_info(self, invoice_payment_id=None, **kwargs): # noqa: E501 """Retrieve invoice payment audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_audit_logs_with_history_with_http_info(invoice_payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_audit_logs_with_history_with_http_info(invoice_payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str invoice_payment_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -1232,7 +1221,8 @@ def get_invoice_payment_audit_logs_with_history_with_http_info(self, invoice_pay """ all_params = ['invoice_payment_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1284,7 +1274,7 @@ def get_invoice_payment_audit_logs_with_history_with_http_info(self, invoice_pay files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1293,13 +1283,12 @@ def get_invoice_payment_audit_logs_with_history_with_http_info(self, invoice_pay def get_invoice_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_custom_fields(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_custom_fields(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str audit: :return: List[CustomField] @@ -1307,7 +1296,7 @@ def get_invoice_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_payment_custom_fields_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_payment_custom_fields_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -1316,13 +1305,12 @@ def get_invoice_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: def get_invoice_payment_custom_fields_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_custom_fields_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_custom_fields_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str audit: :return: List[CustomField] @@ -1331,7 +1319,8 @@ def get_invoice_payment_custom_fields_with_http_info(self, payment_id=None, **kw """ all_params = ['payment_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1385,7 +1374,7 @@ def get_invoice_payment_custom_fields_with_http_info(self, payment_id=None, **kw files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1394,13 +1383,12 @@ def get_invoice_payment_custom_fields_with_http_info(self, payment_id=None, **kw def get_invoice_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_tags(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_tags(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool included_deleted: :param List[Str] plugin_property: @@ -1410,7 +1398,7 @@ def get_invoice_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_invoice_payment_tags_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_invoice_payment_tags_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -1419,13 +1407,12 @@ def get_invoice_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 def get_invoice_payment_tags_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_invoice_payment_tags_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_invoice_payment_tags_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool included_deleted: :param List[Str] plugin_property: @@ -1436,7 +1423,8 @@ def get_invoice_payment_tags_with_http_info(self, payment_id=None, **kwargs): # """ all_params = ['payment_id', 'included_deleted', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1495,7 +1483,7 @@ def get_invoice_payment_tags_with_http_info(self, payment_id=None, **kwargs): # files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1504,13 +1492,12 @@ def get_invoice_payment_tags_with_http_info(self, payment_id=None, **kwargs): # def modify_invoice_payment_custom_fields(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_payment_custom_fields(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_payment_custom_fields(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1521,7 +1508,7 @@ def modify_invoice_payment_custom_fields(self, payment_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -1530,13 +1517,12 @@ def modify_invoice_payment_custom_fields(self, payment_id=None, body=None, creat def modify_invoice_payment_custom_fields_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_invoice_payment_custom_fields_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1548,7 +1534,8 @@ def modify_invoice_payment_custom_fields_with_http_info(self, payment_id=None, b """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1620,7 +1607,7 @@ def modify_invoice_payment_custom_fields_with_http_info(self, payment_id=None, b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/nodes_info_api.py b/killbill/api/nodes_info_api.py index cbdedb9..72e0c02 100644 --- a/killbill/api/nodes_info_api.py +++ b/killbill/api/nodes_info_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,19 +55,18 @@ def __init__(self, api_client=None): def get_nodes_info(self, **kwargs): # noqa: E501 """Retrieve all the nodes infos # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_nodes_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_nodes_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[NodeInfo] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_nodes_info_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_nodes_info_with_http_info(**kwargs) # noqa: E501 @@ -76,20 +75,20 @@ def get_nodes_info(self, **kwargs): # noqa: E501 def get_nodes_info_with_http_info(self, **kwargs): # noqa: E501 """Retrieve all the nodes infos # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_nodes_info_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_nodes_info_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[NodeInfo] If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -133,7 +132,7 @@ def get_nodes_info_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[NodeInfo]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -142,13 +141,12 @@ def get_nodes_info_with_http_info(self, **kwargs): # noqa: E501 def trigger_node_command(self, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a node command # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.trigger_node_command(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.trigger_node_command(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param NodeCommand body: (required) :param Str created_by: (required) :param Bool local_node_only: @@ -159,7 +157,7 @@ def trigger_node_command(self, body=None, created_by=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.trigger_node_command_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.trigger_node_command_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -168,13 +166,12 @@ def trigger_node_command(self, body=None, created_by=None, **kwargs): # noqa: E def trigger_node_command_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Trigger a node command # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.trigger_node_command_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.trigger_node_command_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param NodeCommand body: (required) :param Str created_by: (required) :param Bool local_node_only: @@ -186,7 +183,8 @@ def trigger_node_command_with_http_info(self, body=None, created_by=None, **kwar """ all_params = ['body', 'created_by', 'local_node_only', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -252,7 +250,7 @@ def trigger_node_command_with_http_info(self, body=None, created_by=None, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/overdue_api.py b/killbill/api/overdue_api.py index 540e834..870536e 100644 --- a/killbill/api/overdue_api.py +++ b/killbill/api/overdue_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,19 +55,18 @@ def __init__(self, api_client=None): def get_overdue_config_json(self, **kwargs): # noqa: E501 """Retrieve the overdue config as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_config_json(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_config_json(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Overdue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_overdue_config_json_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_overdue_config_json_with_http_info(**kwargs) # noqa: E501 @@ -76,20 +75,20 @@ def get_overdue_config_json(self, **kwargs): # noqa: E501 def get_overdue_config_json_with_http_info(self, **kwargs): # noqa: E501 """Retrieve the overdue config as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_config_json_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_config_json_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Overdue If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -133,7 +132,7 @@ def get_overdue_config_json_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Overdue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -142,19 +141,18 @@ def get_overdue_config_json_with_http_info(self, **kwargs): # noqa: E501 def get_overdue_config_xml(self, **kwargs): # noqa: E501 """Retrieve the overdue config as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_config_xml(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_config_xml(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_overdue_config_xml_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_overdue_config_xml_with_http_info(**kwargs) # noqa: E501 @@ -163,20 +161,20 @@ def get_overdue_config_xml(self, **kwargs): # noqa: E501 def get_overdue_config_xml_with_http_info(self, **kwargs): # noqa: E501 """Retrieve the overdue config as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_overdue_config_xml_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_overdue_config_xml_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Str If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -220,7 +218,7 @@ def get_overdue_config_xml_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -229,13 +227,12 @@ def get_overdue_config_xml_with_http_info(self, **kwargs): # noqa: E501 def upload_overdue_config_json(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full overdue config as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_overdue_config_json(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_overdue_config_json(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Overdue body: (required) :param Str created_by: (required) :param Str reason: @@ -245,7 +242,7 @@ def upload_overdue_config_json(self, body=None, created_by=None, **kwargs): # n returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_overdue_config_json_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_overdue_config_json_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -254,13 +251,12 @@ def upload_overdue_config_json(self, body=None, created_by=None, **kwargs): # n def upload_overdue_config_json_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full overdue config as JSON # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_overdue_config_json_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_overdue_config_json_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Overdue body: (required) :param Str created_by: (required) :param Str reason: @@ -271,7 +267,8 @@ def upload_overdue_config_json_with_http_info(self, body=None, created_by=None, """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -335,7 +332,7 @@ def upload_overdue_config_json_with_http_info(self, body=None, created_by=None, files=local_var_files, response_type='Overdue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -344,13 +341,12 @@ def upload_overdue_config_json_with_http_info(self, body=None, created_by=None, def upload_overdue_config_xml(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full overdue config as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_overdue_config_xml(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_overdue_config_xml(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -360,7 +356,7 @@ def upload_overdue_config_xml(self, body=None, created_by=None, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_overdue_config_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_overdue_config_xml_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -369,13 +365,12 @@ def upload_overdue_config_xml(self, body=None, created_by=None, **kwargs): # no def upload_overdue_config_xml_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Upload the full overdue config as XML # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_overdue_config_xml_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_overdue_config_xml_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -386,7 +381,8 @@ def upload_overdue_config_xml_with_http_info(self, body=None, created_by=None, * """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -446,7 +442,7 @@ def upload_overdue_config_xml_with_http_info(self, body=None, created_by=None, * files=local_var_files, response_type='Str', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/payment_api.py b/killbill/api/payment_api.py index cc78cc6..21ce7cc 100644 --- a/killbill/api/payment_api.py +++ b/killbill/api/payment_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def cancel_scheduled_payment_transaction_by_external_key(self, transaction_external_key=None, created_by=None, **kwargs): # noqa: E501 """Cancels a scheduled payment attempt retry # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_scheduled_payment_transaction_by_external_key(transaction_external_key, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_payment_transaction_by_external_key(transaction_external_key, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_external_key: (required) :param Str created_by: (required) :param Str reason: @@ -71,7 +70,7 @@ def cancel_scheduled_payment_transaction_by_external_key(self, transaction_exter returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.cancel_scheduled_payment_transaction_by_external_key_with_http_info(transaction_external_key, created_by, **kwargs) # noqa: E501 else: (data) = self.cancel_scheduled_payment_transaction_by_external_key_with_http_info(transaction_external_key, created_by, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def cancel_scheduled_payment_transaction_by_external_key(self, transaction_exter def cancel_scheduled_payment_transaction_by_external_key_with_http_info(self, transaction_external_key=None, created_by=None, **kwargs): # noqa: E501 """Cancels a scheduled payment attempt retry # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_scheduled_payment_transaction_by_external_key_with_http_info(transaction_external_key, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_payment_transaction_by_external_key_with_http_info(transaction_external_key, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_external_key: (required) :param Str created_by: (required) :param Str reason: @@ -97,7 +95,8 @@ def cancel_scheduled_payment_transaction_by_external_key_with_http_info(self, tr """ all_params = ['transaction_external_key', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -161,7 +160,7 @@ def cancel_scheduled_payment_transaction_by_external_key_with_http_info(self, tr files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -170,13 +169,12 @@ def cancel_scheduled_payment_transaction_by_external_key_with_http_info(self, tr def cancel_scheduled_payment_transaction_by_id(self, payment_transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Cancels a scheduled payment attempt retry # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_scheduled_payment_transaction_by_id(payment_transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_payment_transaction_by_id(payment_transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_transaction_id: (required) :param Str created_by: (required) :param Str reason: @@ -186,7 +184,7 @@ def cancel_scheduled_payment_transaction_by_id(self, payment_transaction_id=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.cancel_scheduled_payment_transaction_by_id_with_http_info(payment_transaction_id, created_by, **kwargs) # noqa: E501 else: (data) = self.cancel_scheduled_payment_transaction_by_id_with_http_info(payment_transaction_id, created_by, **kwargs) # noqa: E501 @@ -195,13 +193,12 @@ def cancel_scheduled_payment_transaction_by_id(self, payment_transaction_id=None def cancel_scheduled_payment_transaction_by_id_with_http_info(self, payment_transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Cancels a scheduled payment attempt retry # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_scheduled_payment_transaction_by_id_with_http_info(payment_transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_scheduled_payment_transaction_by_id_with_http_info(payment_transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_transaction_id: (required) :param Str created_by: (required) :param Str reason: @@ -212,7 +209,8 @@ def cancel_scheduled_payment_transaction_by_id_with_http_info(self, payment_tran """ all_params = ['payment_transaction_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -278,7 +276,7 @@ def cancel_scheduled_payment_transaction_by_id_with_http_info(self, payment_tran files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -287,13 +285,12 @@ def cancel_scheduled_payment_transaction_by_id_with_http_info(self, payment_tran def capture_authorization(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Capture an existing authorization # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.capture_authorization(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.capture_authorization(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -306,7 +303,7 @@ def capture_authorization(self, payment_id=None, body=None, created_by=None, **k returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.capture_authorization_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.capture_authorization_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -315,13 +312,12 @@ def capture_authorization(self, payment_id=None, body=None, created_by=None, **k def capture_authorization_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Capture an existing authorization # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.capture_authorization_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.capture_authorization_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -335,7 +331,8 @@ def capture_authorization_with_http_info(self, payment_id=None, body=None, creat """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -413,7 +410,7 @@ def capture_authorization_with_http_info(self, payment_id=None, body=None, creat files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -422,13 +419,12 @@ def capture_authorization_with_http_info(self, payment_id=None, body=None, creat def capture_authorization_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Capture an existing authorization # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.capture_authorization_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.capture_authorization_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -440,7 +436,7 @@ def capture_authorization_by_external_key(self, body=None, created_by=None, **kw returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.capture_authorization_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.capture_authorization_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -449,13 +445,12 @@ def capture_authorization_by_external_key(self, body=None, created_by=None, **kw def capture_authorization_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Capture an existing authorization # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.capture_authorization_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.capture_authorization_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -468,7 +463,8 @@ def capture_authorization_by_external_key_with_http_info(self, body=None, create """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -538,7 +534,7 @@ def capture_authorization_by_external_key_with_http_info(self, body=None, create files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -547,13 +543,12 @@ def capture_authorization_by_external_key_with_http_info(self, body=None, create def chargeback_payment(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_payment(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_payment(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -566,7 +561,7 @@ def chargeback_payment(self, payment_id=None, body=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.chargeback_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.chargeback_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -575,13 +570,12 @@ def chargeback_payment(self, payment_id=None, body=None, created_by=None, **kwar def chargeback_payment_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_payment_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_payment_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -595,7 +589,8 @@ def chargeback_payment_with_http_info(self, payment_id=None, body=None, created_ """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -673,7 +668,7 @@ def chargeback_payment_with_http_info(self, payment_id=None, body=None, created_ files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -682,13 +677,12 @@ def chargeback_payment_with_http_info(self, payment_id=None, body=None, created_ def chargeback_payment_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_payment_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_payment_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -700,7 +694,7 @@ def chargeback_payment_by_external_key(self, body=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.chargeback_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.chargeback_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -709,13 +703,12 @@ def chargeback_payment_by_external_key(self, body=None, created_by=None, **kwarg def chargeback_payment_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_payment_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_payment_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -728,7 +721,8 @@ def chargeback_payment_by_external_key_with_http_info(self, body=None, created_b """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -798,7 +792,7 @@ def chargeback_payment_by_external_key_with_http_info(self, body=None, created_b files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -807,13 +801,12 @@ def chargeback_payment_by_external_key_with_http_info(self, body=None, created_b def chargeback_reversal_payment(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback reversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_reversal_payment(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_reversal_payment(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -826,7 +819,7 @@ def chargeback_reversal_payment(self, payment_id=None, body=None, created_by=Non returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.chargeback_reversal_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.chargeback_reversal_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -835,13 +828,12 @@ def chargeback_reversal_payment(self, payment_id=None, body=None, created_by=Non def chargeback_reversal_payment_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback reversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_reversal_payment_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_reversal_payment_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -855,7 +847,8 @@ def chargeback_reversal_payment_with_http_info(self, payment_id=None, body=None, """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -933,7 +926,7 @@ def chargeback_reversal_payment_with_http_info(self, payment_id=None, body=None, files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -942,13 +935,12 @@ def chargeback_reversal_payment_with_http_info(self, payment_id=None, body=None, def chargeback_reversal_payment_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback reversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_reversal_payment_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_reversal_payment_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -960,7 +952,7 @@ def chargeback_reversal_payment_by_external_key(self, body=None, created_by=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.chargeback_reversal_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.chargeback_reversal_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -969,13 +961,12 @@ def chargeback_reversal_payment_by_external_key(self, body=None, created_by=None def chargeback_reversal_payment_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record a chargeback reversal # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.chargeback_reversal_payment_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chargeback_reversal_payment_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -988,7 +979,8 @@ def chargeback_reversal_payment_by_external_key_with_http_info(self, body=None, """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1058,7 +1050,7 @@ def chargeback_reversal_payment_by_external_key_with_http_info(self, body=None, files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1067,13 +1059,12 @@ def chargeback_reversal_payment_by_external_key_with_http_info(self, body=None, def complete_transaction(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_transaction(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_transaction(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -1086,7 +1077,7 @@ def complete_transaction(self, payment_id=None, body=None, created_by=None, **kw returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.complete_transaction_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.complete_transaction_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -1095,13 +1086,12 @@ def complete_transaction(self, payment_id=None, body=None, created_by=None, **kw def complete_transaction_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_transaction_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_transaction_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -1115,7 +1105,8 @@ def complete_transaction_with_http_info(self, payment_id=None, body=None, create """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1193,7 +1184,7 @@ def complete_transaction_with_http_info(self, payment_id=None, body=None, create files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1202,13 +1193,12 @@ def complete_transaction_with_http_info(self, payment_id=None, body=None, create def complete_transaction_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_transaction_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_transaction_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -1220,7 +1210,7 @@ def complete_transaction_by_external_key(self, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.complete_transaction_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.complete_transaction_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1229,13 +1219,12 @@ def complete_transaction_by_external_key(self, body=None, created_by=None, **kwa def complete_transaction_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Complete an existing transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.complete_transaction_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.complete_transaction_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -1248,7 +1237,8 @@ def complete_transaction_by_external_key_with_http_info(self, body=None, created """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1318,7 +1308,7 @@ def complete_transaction_by_external_key_with_http_info(self, body=None, created files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1327,13 +1317,12 @@ def complete_transaction_by_external_key_with_http_info(self, body=None, created def create_combo_payment(self, body=None, created_by=None, **kwargs): # noqa: E501 """Combo api to create a new payment transaction on a existing (or not) account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_combo_payment(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_combo_payment(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param ComboPaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -1344,7 +1333,7 @@ def create_combo_payment(self, body=None, created_by=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_combo_payment_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_combo_payment_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1353,13 +1342,12 @@ def create_combo_payment(self, body=None, created_by=None, **kwargs): # noqa: E def create_combo_payment_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Combo api to create a new payment transaction on a existing (or not) account # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_combo_payment_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_combo_payment_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param ComboPaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -1371,7 +1359,8 @@ def create_combo_payment_with_http_info(self, body=None, created_by=None, **kwar """ all_params = ['body', 'created_by', 'control_plugin_name', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1438,7 +1427,7 @@ def create_combo_payment_with_http_info(self, body=None, created_by=None, **kwar files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1447,13 +1436,12 @@ def create_combo_payment_with_http_info(self, body=None, created_by=None, **kwar def create_payment_custom_fields(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_custom_fields(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_custom_fields(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1464,7 +1452,7 @@ def create_payment_custom_fields(self, payment_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -1473,13 +1461,12 @@ def create_payment_custom_fields(self, payment_id=None, body=None, created_by=No def create_payment_custom_fields_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_custom_fields_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_custom_fields_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1491,7 +1478,8 @@ def create_payment_custom_fields_with_http_info(self, payment_id=None, body=None """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1563,7 +1551,7 @@ def create_payment_custom_fields_with_http_info(self, payment_id=None, body=None files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1572,13 +1560,12 @@ def create_payment_custom_fields_with_http_info(self, payment_id=None, body=None def create_payment_tags(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_tags(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_tags(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -1589,7 +1576,7 @@ def create_payment_tags(self, payment_id=None, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_payment_tags_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_payment_tags_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -1598,13 +1585,12 @@ def create_payment_tags(self, payment_id=None, body=None, created_by=None, **kwa def create_payment_tags_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_tags_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_tags_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -1616,7 +1602,8 @@ def create_payment_tags_with_http_info(self, payment_id=None, body=None, created """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1688,7 +1675,7 @@ def create_payment_tags_with_http_info(self, payment_id=None, body=None, created files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1697,13 +1684,12 @@ def create_payment_tags_with_http_info(self, payment_id=None, body=None, created def delete_payment_custom_fields(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_custom_fields(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_custom_fields(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1714,7 +1700,7 @@ def delete_payment_custom_fields(self, payment_id=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_payment_custom_fields_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_payment_custom_fields_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 @@ -1723,13 +1709,12 @@ def delete_payment_custom_fields(self, payment_id=None, created_by=None, **kwarg def delete_payment_custom_fields_with_http_info(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_custom_fields_with_http_info(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_custom_fields_with_http_info(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1741,7 +1726,8 @@ def delete_payment_custom_fields_with_http_info(self, payment_id=None, created_b """ all_params = ['payment_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1810,7 +1796,7 @@ def delete_payment_custom_fields_with_http_info(self, payment_id=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1819,13 +1805,12 @@ def delete_payment_custom_fields_with_http_info(self, payment_id=None, created_b def delete_payment_tags(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_tags(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_tags(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1836,7 +1821,7 @@ def delete_payment_tags(self, payment_id=None, created_by=None, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_payment_tags_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_payment_tags_with_http_info(payment_id, created_by, **kwargs) # noqa: E501 @@ -1845,13 +1830,12 @@ def delete_payment_tags(self, payment_id=None, created_by=None, **kwargs): # no def delete_payment_tags_with_http_info(self, payment_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_tags_with_http_info(payment_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_tags_with_http_info(payment_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1863,7 +1847,8 @@ def delete_payment_tags_with_http_info(self, payment_id=None, created_by=None, * """ all_params = ['payment_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1932,7 +1917,7 @@ def delete_payment_tags_with_http_info(self, payment_id=None, created_by=None, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1941,13 +1926,12 @@ def delete_payment_tags_with_http_info(self, payment_id=None, created_by=None, * def get_payment(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve a payment by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -1958,7 +1942,7 @@ def get_payment(self, payment_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -1967,13 +1951,12 @@ def get_payment(self, payment_id=None, **kwargs): # noqa: E501 def get_payment_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve a payment by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -1985,7 +1968,8 @@ def get_payment_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """ all_params = ['payment_id', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2046,7 +2030,7 @@ def get_payment_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2055,20 +2039,19 @@ def get_payment_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 def get_payment_attempt_audit_logs_with_history(self, payment_attempt_id=None, **kwargs): # noqa: E501 """Retrieve payment attempt audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_attempt_audit_logs_with_history(payment_attempt_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_attempt_audit_logs_with_history(payment_attempt_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_attempt_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_attempt_audit_logs_with_history_with_http_info(payment_attempt_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_attempt_audit_logs_with_history_with_http_info(payment_attempt_id, **kwargs) # noqa: E501 @@ -2077,13 +2060,12 @@ def get_payment_attempt_audit_logs_with_history(self, payment_attempt_id=None, * def get_payment_attempt_audit_logs_with_history_with_http_info(self, payment_attempt_id=None, **kwargs): # noqa: E501 """Retrieve payment attempt audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_attempt_audit_logs_with_history_with_http_info(payment_attempt_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_attempt_audit_logs_with_history_with_http_info(payment_attempt_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_attempt_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -2091,7 +2073,8 @@ def get_payment_attempt_audit_logs_with_history_with_http_info(self, payment_att """ all_params = ['payment_attempt_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2143,7 +2126,7 @@ def get_payment_attempt_audit_logs_with_history_with_http_info(self, payment_att files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2152,20 +2135,19 @@ def get_payment_attempt_audit_logs_with_history_with_http_info(self, payment_att def get_payment_audit_logs_with_history(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_audit_logs_with_history(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_audit_logs_with_history(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_audit_logs_with_history_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_audit_logs_with_history_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -2174,13 +2156,12 @@ def get_payment_audit_logs_with_history(self, payment_id=None, **kwargs): # noq def get_payment_audit_logs_with_history_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_audit_logs_with_history_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_audit_logs_with_history_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -2188,7 +2169,8 @@ def get_payment_audit_logs_with_history_with_http_info(self, payment_id=None, ** """ all_params = ['payment_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2240,7 +2222,7 @@ def get_payment_audit_logs_with_history_with_http_info(self, payment_id=None, ** files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2249,13 +2231,12 @@ def get_payment_audit_logs_with_history_with_http_info(self, payment_id=None, ** def get_payment_by_external_key(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a payment by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_external_key(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_external_key(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -2266,7 +2247,7 @@ def get_payment_by_external_key(self, external_key=None, **kwargs): # noqa: E50 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_by_external_key_with_http_info(external_key, **kwargs) # noqa: E501 else: (data) = self.get_payment_by_external_key_with_http_info(external_key, **kwargs) # noqa: E501 @@ -2275,13 +2256,12 @@ def get_payment_by_external_key(self, external_key=None, **kwargs): # noqa: E50 def get_payment_by_external_key_with_http_info(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a payment by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_external_key_with_http_info(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_external_key_with_http_info(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -2293,7 +2273,8 @@ def get_payment_by_external_key_with_http_info(self, external_key=None, **kwargs """ all_params = ['external_key', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2352,7 +2333,7 @@ def get_payment_by_external_key_with_http_info(self, external_key=None, **kwargs files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2361,13 +2342,12 @@ def get_payment_by_external_key_with_http_info(self, external_key=None, **kwargs def get_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_custom_fields(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_custom_fields(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str audit: :return: List[CustomField] @@ -2375,7 +2355,7 @@ def get_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_custom_fields_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_custom_fields_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -2384,13 +2364,12 @@ def get_payment_custom_fields(self, payment_id=None, **kwargs): # noqa: E501 def get_payment_custom_fields_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_custom_fields_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_custom_fields_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Str audit: :return: List[CustomField] @@ -2399,7 +2378,8 @@ def get_payment_custom_fields_with_http_info(self, payment_id=None, **kwargs): """ all_params = ['payment_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2453,7 +2433,7 @@ def get_payment_custom_fields_with_http_info(self, payment_id=None, **kwargs): files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2462,13 +2442,12 @@ def get_payment_custom_fields_with_http_info(self, payment_id=None, **kwargs): def get_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment payment tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_tags(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_tags(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool included_deleted: :param Str audit: @@ -2477,7 +2456,7 @@ def get_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_tags_with_http_info(payment_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_tags_with_http_info(payment_id, **kwargs) # noqa: E501 @@ -2486,13 +2465,12 @@ def get_payment_tags(self, payment_id=None, **kwargs): # noqa: E501 def get_payment_tags_with_http_info(self, payment_id=None, **kwargs): # noqa: E501 """Retrieve payment payment tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_tags_with_http_info(payment_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_tags_with_http_info(payment_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param Bool included_deleted: :param Str audit: @@ -2502,7 +2480,8 @@ def get_payment_tags_with_http_info(self, payment_id=None, **kwargs): # noqa: E """ all_params = ['payment_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2558,7 +2537,7 @@ def get_payment_tags_with_http_info(self, payment_id=None, **kwargs): # noqa: E files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2567,13 +2546,12 @@ def get_payment_tags_with_http_info(self, payment_id=None, **kwargs): # noqa: E def get_payments(self, **kwargs): # noqa: E501 """Get payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str plugin_name: @@ -2586,7 +2564,7 @@ def get_payments(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payments_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_payments_with_http_info(**kwargs) # noqa: E501 @@ -2595,13 +2573,12 @@ def get_payments(self, **kwargs): # noqa: E501 def get_payments_with_http_info(self, **kwargs): # noqa: E501 """Get payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payments_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payments_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str plugin_name: @@ -2615,7 +2592,8 @@ def get_payments_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'plugin_name', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2674,7 +2652,7 @@ def get_payments_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Payment]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2683,13 +2661,12 @@ def get_payments_with_http_info(self, **kwargs): # noqa: E501 def modify_payment_custom_fields(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_payment_custom_fields(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_payment_custom_fields(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -2700,7 +2677,7 @@ def modify_payment_custom_fields(self, payment_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_payment_custom_fields_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -2709,13 +2686,12 @@ def modify_payment_custom_fields(self, payment_id=None, body=None, created_by=No def modify_payment_custom_fields_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_payment_custom_fields_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_payment_custom_fields_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -2727,7 +2703,8 @@ def modify_payment_custom_fields_with_http_info(self, payment_id=None, body=None """ all_params = ['payment_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2799,7 +2776,7 @@ def modify_payment_custom_fields_with_http_info(self, payment_id=None, body=None files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2808,13 +2785,12 @@ def modify_payment_custom_fields_with_http_info(self, payment_id=None, body=None def refund_payment(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Refund an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refund_payment(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refund_payment(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -2827,7 +2803,7 @@ def refund_payment(self, payment_id=None, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.refund_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.refund_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -2836,13 +2812,12 @@ def refund_payment(self, payment_id=None, body=None, created_by=None, **kwargs): def refund_payment_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Refund an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refund_payment_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refund_payment_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -2856,7 +2831,8 @@ def refund_payment_with_http_info(self, payment_id=None, body=None, created_by=N """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2934,7 +2910,7 @@ def refund_payment_with_http_info(self, payment_id=None, body=None, created_by=N files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2943,13 +2919,12 @@ def refund_payment_with_http_info(self, payment_id=None, body=None, created_by=N def refund_payment_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Refund an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refund_payment_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refund_payment_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -2961,7 +2936,7 @@ def refund_payment_by_external_key(self, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.refund_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.refund_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -2970,13 +2945,12 @@ def refund_payment_by_external_key(self, body=None, created_by=None, **kwargs): def refund_payment_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Refund an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.refund_payment_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.refund_payment_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -2989,7 +2963,8 @@ def refund_payment_by_external_key_with_http_info(self, body=None, created_by=No """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3059,7 +3034,7 @@ def refund_payment_by_external_key_with_http_info(self, body=None, created_by=No files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3068,13 +3043,12 @@ def refund_payment_by_external_key_with_http_info(self, body=None, created_by=No def search_payments(self, search_key=None, **kwargs): # noqa: E501 """Search payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_payments(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_payments(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -3088,7 +3062,7 @@ def search_payments(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_payments_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_payments_with_http_info(search_key, **kwargs) # noqa: E501 @@ -3097,13 +3071,12 @@ def search_payments(self, search_key=None, **kwargs): # noqa: E501 def search_payments_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search payments # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_payments_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_payments_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -3118,7 +3091,8 @@ def search_payments_with_http_info(self, search_key=None, **kwargs): # noqa: E5 """ all_params = ['search_key', 'offset', 'limit', 'with_plugin_info', 'with_attempts', 'plugin_name', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3185,7 +3159,7 @@ def search_payments_with_http_info(self, search_key=None, **kwargs): # noqa: E5 files=local_var_files, response_type='List[Payment]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3194,13 +3168,12 @@ def search_payments_with_http_info(self, search_key=None, **kwargs): # noqa: E5 def void_payment(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Void an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_payment(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_payment(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -3213,7 +3186,7 @@ def void_payment(self, payment_id=None, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.void_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.void_payment_with_http_info(payment_id, body, created_by, **kwargs) # noqa: E501 @@ -3222,13 +3195,12 @@ def void_payment(self, payment_id=None, body=None, created_by=None, **kwargs): def void_payment_with_http_info(self, payment_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Void an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_payment_with_http_info(payment_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_payment_with_http_info(payment_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -3242,7 +3214,8 @@ def void_payment_with_http_info(self, payment_id=None, body=None, created_by=Non """ all_params = ['payment_id', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3320,7 +3293,7 @@ def void_payment_with_http_info(self, payment_id=None, body=None, created_by=Non files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -3329,13 +3302,12 @@ def void_payment_with_http_info(self, payment_id=None, body=None, created_by=Non def void_payment_by_external_key(self, body=None, created_by=None, **kwargs): # noqa: E501 """Void an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_payment_by_external_key(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_payment_by_external_key(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -3347,7 +3319,7 @@ def void_payment_by_external_key(self, body=None, created_by=None, **kwargs): # returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.void_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.void_payment_by_external_key_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -3356,13 +3328,12 @@ def void_payment_by_external_key(self, body=None, created_by=None, **kwargs): # def void_payment_by_external_key_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Void an existing payment # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.void_payment_by_external_key_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.void_payment_by_external_key_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param PaymentTransaction body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -3375,7 +3346,8 @@ def void_payment_by_external_key_with_http_info(self, body=None, created_by=None """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -3445,7 +3417,7 @@ def void_payment_by_external_key_with_http_info(self, body=None, created_by=None files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/payment_gateway_api.py b/killbill/api/payment_gateway_api.py index 6edece9..f2befe0 100644 --- a/killbill/api/payment_gateway_api.py +++ b/killbill/api/payment_gateway_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def build_combo_form_descriptor(self, body=None, created_by=None, **kwargs): # noqa: E501 """Combo API to generate form data to redirect the customer to the gateway # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.build_combo_form_descriptor(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.build_combo_form_descriptor(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param ComboHostedPaymentPage body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -73,7 +72,7 @@ def build_combo_form_descriptor(self, body=None, created_by=None, **kwargs): # returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.build_combo_form_descriptor_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.build_combo_form_descriptor_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -82,13 +81,12 @@ def build_combo_form_descriptor(self, body=None, created_by=None, **kwargs): # def build_combo_form_descriptor_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Combo API to generate form data to redirect the customer to the gateway # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.build_combo_form_descriptor_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.build_combo_form_descriptor_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param ComboHostedPaymentPage body: (required) :param Str created_by: (required) :param List[Str] control_plugin_name: @@ -101,7 +99,8 @@ def build_combo_form_descriptor_with_http_info(self, body=None, created_by=None, """ all_params = ['body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -171,7 +170,7 @@ def build_combo_form_descriptor_with_http_info(self, body=None, created_by=None, files=local_var_files, response_type='HostedPaymentPageFormDescriptor', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -180,13 +179,12 @@ def build_combo_form_descriptor_with_http_info(self, body=None, created_by=None, def build_form_descriptor(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Generate form data to redirect the customer to the gateway # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.build_form_descriptor(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.build_form_descriptor(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param HostedPaymentPageFields body: (required) :param Str created_by: (required) @@ -200,7 +198,7 @@ def build_form_descriptor(self, account_id=None, body=None, created_by=None, **k returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.build_form_descriptor_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.build_form_descriptor_with_http_info(account_id, body, created_by, **kwargs) # noqa: E501 @@ -209,13 +207,12 @@ def build_form_descriptor(self, account_id=None, body=None, created_by=None, **k def build_form_descriptor_with_http_info(self, account_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Generate form data to redirect the customer to the gateway # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.build_form_descriptor_with_http_info(account_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.build_form_descriptor_with_http_info(account_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str account_id: (required) :param HostedPaymentPageFields body: (required) :param Str created_by: (required) @@ -230,7 +227,8 @@ def build_form_descriptor_with_http_info(self, account_id=None, body=None, creat """ all_params = ['account_id', 'body', 'created_by', 'payment_method_id', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -310,7 +308,7 @@ def build_form_descriptor_with_http_info(self, account_id=None, body=None, creat files=local_var_files, response_type='HostedPaymentPageFormDescriptor', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -319,13 +317,12 @@ def build_form_descriptor_with_http_info(self, account_id=None, body=None, creat def process_notification(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Process a gateway notification # noqa: E501 - The response is built by the appropriate plugin # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_notification(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_notification(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -338,7 +335,7 @@ def process_notification(self, plugin_name=None, body=None, created_by=None, **k returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.process_notification_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 else: (data) = self.process_notification_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 @@ -347,13 +344,12 @@ def process_notification(self, plugin_name=None, body=None, created_by=None, **k def process_notification_with_http_info(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Process a gateway notification # noqa: E501 - The response is built by the appropriate plugin # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.process_notification_with_http_info(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.process_notification_with_http_info(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -367,7 +363,8 @@ def process_notification_with_http_info(self, plugin_name=None, body=None, creat """ all_params = ['plugin_name', 'body', 'created_by', 'control_plugin_name', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -445,7 +442,7 @@ def process_notification_with_http_info(self, plugin_name=None, body=None, creat files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/payment_method_api.py b/killbill/api/payment_method_api.py index bb589f4..ee6ad1e 100644 --- a/killbill/api/payment_method_api.py +++ b/killbill/api/payment_method_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def create_payment_method_custom_fields(self, payment_method_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_method_custom_fields(payment_method_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_method_custom_fields(payment_method_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -72,7 +71,7 @@ def create_payment_method_custom_fields(self, payment_method_id=None, body=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, **kwargs) # noqa: E501 @@ -81,13 +80,12 @@ def create_payment_method_custom_fields(self, payment_method_id=None, body=None, def create_payment_method_custom_fields_with_http_info(self, payment_method_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -99,7 +97,8 @@ def create_payment_method_custom_fields_with_http_info(self, payment_method_id=N """ all_params = ['payment_method_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -171,7 +170,7 @@ def create_payment_method_custom_fields_with_http_info(self, payment_method_id=N files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -180,13 +179,12 @@ def create_payment_method_custom_fields_with_http_info(self, payment_method_id=N def delete_payment_method(self, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_method(payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_method(payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str created_by: (required) :param Bool delete_default_pm_with_auto_pay_off: @@ -199,7 +197,7 @@ def delete_payment_method(self, payment_method_id=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_payment_method_with_http_info(payment_method_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_payment_method_with_http_info(payment_method_id, created_by, **kwargs) # noqa: E501 @@ -208,13 +206,12 @@ def delete_payment_method(self, payment_method_id=None, created_by=None, **kwarg def delete_payment_method_with_http_info(self, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_method_with_http_info(payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_method_with_http_info(payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str created_by: (required) :param Bool delete_default_pm_with_auto_pay_off: @@ -228,7 +225,8 @@ def delete_payment_method_with_http_info(self, payment_method_id=None, created_b """ all_params = ['payment_method_id', 'created_by', 'delete_default_pm_with_auto_pay_off', 'force_default_pm_deletion', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -297,7 +295,7 @@ def delete_payment_method_with_http_info(self, payment_method_id=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -306,13 +304,12 @@ def delete_payment_method_with_http_info(self, payment_method_id=None, created_b def delete_payment_method_custom_fields(self, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_method_custom_fields(payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_method_custom_fields(payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -323,7 +320,7 @@ def delete_payment_method_custom_fields(self, payment_method_id=None, created_by returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_payment_method_custom_fields_with_http_info(payment_method_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_payment_method_custom_fields_with_http_info(payment_method_id, created_by, **kwargs) # noqa: E501 @@ -332,13 +329,12 @@ def delete_payment_method_custom_fields(self, payment_method_id=None, created_by def delete_payment_method_custom_fields_with_http_info(self, payment_method_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_payment_method_custom_fields_with_http_info(payment_method_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_payment_method_custom_fields_with_http_info(payment_method_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -350,7 +346,8 @@ def delete_payment_method_custom_fields_with_http_info(self, payment_method_id=N """ all_params = ['payment_method_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -419,7 +416,7 @@ def delete_payment_method_custom_fields_with_http_info(self, payment_method_id=N files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -428,13 +425,12 @@ def delete_payment_method_custom_fields_with_http_info(self, payment_method_id=N def get_payment_method(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve a payment method by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Bool included_deleted: :param Bool with_plugin_info: @@ -445,7 +441,7 @@ def get_payment_method(self, payment_method_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_method_with_http_info(payment_method_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_method_with_http_info(payment_method_id, **kwargs) # noqa: E501 @@ -454,13 +450,12 @@ def get_payment_method(self, payment_method_id=None, **kwargs): # noqa: E501 def get_payment_method_with_http_info(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve a payment method by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_with_http_info(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_with_http_info(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Bool included_deleted: :param Bool with_plugin_info: @@ -472,7 +467,8 @@ def get_payment_method_with_http_info(self, payment_method_id=None, **kwargs): """ all_params = ['payment_method_id', 'included_deleted', 'with_plugin_info', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -533,7 +529,7 @@ def get_payment_method_with_http_info(self, payment_method_id=None, **kwargs): files=local_var_files, response_type='PaymentMethod', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -542,20 +538,19 @@ def get_payment_method_with_http_info(self, payment_method_id=None, **kwargs): def get_payment_method_audit_logs_with_history(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve payment method audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_audit_logs_with_history(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_audit_logs_with_history(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_method_audit_logs_with_history_with_http_info(payment_method_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_method_audit_logs_with_history_with_http_info(payment_method_id, **kwargs) # noqa: E501 @@ -564,13 +559,12 @@ def get_payment_method_audit_logs_with_history(self, payment_method_id=None, **k def get_payment_method_audit_logs_with_history_with_http_info(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve payment method audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_audit_logs_with_history_with_http_info(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_audit_logs_with_history_with_http_info(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -578,7 +572,8 @@ def get_payment_method_audit_logs_with_history_with_http_info(self, payment_meth """ all_params = ['payment_method_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -630,7 +625,7 @@ def get_payment_method_audit_logs_with_history_with_http_info(self, payment_meth files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -639,13 +634,12 @@ def get_payment_method_audit_logs_with_history_with_http_info(self, payment_meth def get_payment_method_by_key(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a payment method by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_by_key(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_by_key(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool included_deleted: :param Bool with_plugin_info: @@ -656,7 +650,7 @@ def get_payment_method_by_key(self, external_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_method_by_key_with_http_info(external_key, **kwargs) # noqa: E501 else: (data) = self.get_payment_method_by_key_with_http_info(external_key, **kwargs) # noqa: E501 @@ -665,13 +659,12 @@ def get_payment_method_by_key(self, external_key=None, **kwargs): # noqa: E501 def get_payment_method_by_key_with_http_info(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a payment method by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_by_key_with_http_info(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_by_key_with_http_info(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Bool included_deleted: :param Bool with_plugin_info: @@ -683,7 +676,8 @@ def get_payment_method_by_key_with_http_info(self, external_key=None, **kwargs): """ all_params = ['external_key', 'included_deleted', 'with_plugin_info', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -742,7 +736,7 @@ def get_payment_method_by_key_with_http_info(self, external_key=None, **kwargs): files=local_var_files, response_type='PaymentMethod', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -751,13 +745,12 @@ def get_payment_method_by_key_with_http_info(self, external_key=None, **kwargs): def get_payment_method_custom_fields(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve payment method custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_custom_fields(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_custom_fields(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str audit: :return: List[CustomField] @@ -765,7 +758,7 @@ def get_payment_method_custom_fields(self, payment_method_id=None, **kwargs): # returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_method_custom_fields_with_http_info(payment_method_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_method_custom_fields_with_http_info(payment_method_id, **kwargs) # noqa: E501 @@ -774,13 +767,12 @@ def get_payment_method_custom_fields(self, payment_method_id=None, **kwargs): # def get_payment_method_custom_fields_with_http_info(self, payment_method_id=None, **kwargs): # noqa: E501 """Retrieve payment method custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_method_custom_fields_with_http_info(payment_method_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_method_custom_fields_with_http_info(payment_method_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param Str audit: :return: List[CustomField] @@ -789,7 +781,8 @@ def get_payment_method_custom_fields_with_http_info(self, payment_method_id=None """ all_params = ['payment_method_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -843,7 +836,7 @@ def get_payment_method_custom_fields_with_http_info(self, payment_method_id=None files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -852,13 +845,12 @@ def get_payment_method_custom_fields_with_http_info(self, payment_method_id=None def get_payment_methods(self, **kwargs): # noqa: E501 """List payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_methods(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_methods(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str plugin_name: @@ -870,7 +862,7 @@ def get_payment_methods(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_methods_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_payment_methods_with_http_info(**kwargs) # noqa: E501 @@ -879,13 +871,12 @@ def get_payment_methods(self, **kwargs): # noqa: E501 def get_payment_methods_with_http_info(self, **kwargs): # noqa: E501 """List payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_methods_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_methods_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str plugin_name: @@ -898,7 +889,8 @@ def get_payment_methods_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'plugin_name', 'with_plugin_info', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -955,7 +947,7 @@ def get_payment_methods_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[PaymentMethod]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -964,13 +956,12 @@ def get_payment_methods_with_http_info(self, **kwargs): # noqa: E501 def modify_payment_method_custom_fields(self, payment_method_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_payment_method_custom_fields(payment_method_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_payment_method_custom_fields(payment_method_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -981,7 +972,7 @@ def modify_payment_method_custom_fields(self, payment_method_id=None, body=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, **kwargs) # noqa: E501 @@ -990,13 +981,12 @@ def modify_payment_method_custom_fields(self, payment_method_id=None, body=None, def modify_payment_method_custom_fields_with_http_info(self, payment_method_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment method # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_payment_method_custom_fields_with_http_info(payment_method_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str payment_method_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1008,7 +998,8 @@ def modify_payment_method_custom_fields_with_http_info(self, payment_method_id=N """ all_params = ['payment_method_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1080,7 +1071,7 @@ def modify_payment_method_custom_fields_with_http_info(self, payment_method_id=N files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1089,13 +1080,12 @@ def modify_payment_method_custom_fields_with_http_info(self, payment_method_id=N def search_payment_methods(self, search_key=None, **kwargs): # noqa: E501 """Search payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_payment_methods(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_payment_methods(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -1108,7 +1098,7 @@ def search_payment_methods(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_payment_methods_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_payment_methods_with_http_info(search_key, **kwargs) # noqa: E501 @@ -1117,13 +1107,12 @@ def search_payment_methods(self, search_key=None, **kwargs): # noqa: E501 def search_payment_methods_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search payment methods # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_payment_methods_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_payment_methods_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -1137,7 +1126,8 @@ def search_payment_methods_with_http_info(self, search_key=None, **kwargs): # n """ all_params = ['search_key', 'offset', 'limit', 'plugin_name', 'with_plugin_info', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1202,7 +1192,7 @@ def search_payment_methods_with_http_info(self, search_key=None, **kwargs): # n files=local_var_files, response_type='List[PaymentMethod]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/payment_transaction_api.py b/killbill/api/payment_transaction_api.py index 454305f..4fd32c0 100644 --- a/killbill/api/payment_transaction_api.py +++ b/killbill/api/payment_transaction_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def create_transaction_custom_fields(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_transaction_custom_fields(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_transaction_custom_fields(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -72,7 +71,7 @@ def create_transaction_custom_fields(self, transaction_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_transaction_custom_fields_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_transaction_custom_fields_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 @@ -81,13 +80,12 @@ def create_transaction_custom_fields(self, transaction_id=None, body=None, creat def create_transaction_custom_fields_with_http_info(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_transaction_custom_fields_with_http_info(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_transaction_custom_fields_with_http_info(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -99,7 +97,8 @@ def create_transaction_custom_fields_with_http_info(self, transaction_id=None, b """ all_params = ['transaction_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -171,7 +170,7 @@ def create_transaction_custom_fields_with_http_info(self, transaction_id=None, b files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -180,13 +179,12 @@ def create_transaction_custom_fields_with_http_info(self, transaction_id=None, b def create_transaction_tags(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_transaction_tags(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_transaction_tags(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -197,7 +195,7 @@ def create_transaction_tags(self, transaction_id=None, body=None, created_by=Non returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_transaction_tags_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_transaction_tags_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 @@ -206,13 +204,12 @@ def create_transaction_tags(self, transaction_id=None, body=None, created_by=Non def create_transaction_tags_with_http_info(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add tags to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_transaction_tags_with_http_info(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_transaction_tags_with_http_info(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -224,7 +221,8 @@ def create_transaction_tags_with_http_info(self, transaction_id=None, body=None, """ all_params = ['transaction_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -296,7 +294,7 @@ def create_transaction_tags_with_http_info(self, transaction_id=None, body=None, files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -305,13 +303,12 @@ def create_transaction_tags_with_http_info(self, transaction_id=None, body=None, def delete_transaction_custom_fields(self, transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_transaction_custom_fields(transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_transaction_custom_fields(transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -322,7 +319,7 @@ def delete_transaction_custom_fields(self, transaction_id=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_transaction_custom_fields_with_http_info(transaction_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_transaction_custom_fields_with_http_info(transaction_id, created_by, **kwargs) # noqa: E501 @@ -331,13 +328,12 @@ def delete_transaction_custom_fields(self, transaction_id=None, created_by=None, def delete_transaction_custom_fields_with_http_info(self, transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_transaction_custom_fields_with_http_info(transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_transaction_custom_fields_with_http_info(transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -349,7 +345,8 @@ def delete_transaction_custom_fields_with_http_info(self, transaction_id=None, c """ all_params = ['transaction_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -418,7 +415,7 @@ def delete_transaction_custom_fields_with_http_info(self, transaction_id=None, c files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -427,13 +424,12 @@ def delete_transaction_custom_fields_with_http_info(self, transaction_id=None, c def delete_transaction_tags(self, transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_transaction_tags(transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_transaction_tags(transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -444,7 +440,7 @@ def delete_transaction_tags(self, transaction_id=None, created_by=None, **kwargs returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_transaction_tags_with_http_info(transaction_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_transaction_tags_with_http_info(transaction_id, created_by, **kwargs) # noqa: E501 @@ -453,13 +449,12 @@ def delete_transaction_tags(self, transaction_id=None, created_by=None, **kwargs def delete_transaction_tags_with_http_info(self, transaction_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_transaction_tags_with_http_info(transaction_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_transaction_tags_with_http_info(transaction_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -471,7 +466,8 @@ def delete_transaction_tags_with_http_info(self, transaction_id=None, created_by """ all_params = ['transaction_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -540,7 +536,7 @@ def delete_transaction_tags_with_http_info(self, transaction_id=None, created_by files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -549,13 +545,12 @@ def delete_transaction_tags_with_http_info(self, transaction_id=None, created_by def get_payment_by_transaction_external_key(self, transaction_external_key=None, **kwargs): # noqa: E501 """Retrieve a payment by transaction external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_transaction_external_key(transaction_external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_transaction_external_key(transaction_external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_external_key: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -566,7 +561,7 @@ def get_payment_by_transaction_external_key(self, transaction_external_key=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_by_transaction_external_key_with_http_info(transaction_external_key, **kwargs) # noqa: E501 else: (data) = self.get_payment_by_transaction_external_key_with_http_info(transaction_external_key, **kwargs) # noqa: E501 @@ -575,13 +570,12 @@ def get_payment_by_transaction_external_key(self, transaction_external_key=None, def get_payment_by_transaction_external_key_with_http_info(self, transaction_external_key=None, **kwargs): # noqa: E501 """Retrieve a payment by transaction external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_transaction_external_key_with_http_info(transaction_external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_transaction_external_key_with_http_info(transaction_external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_external_key: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -593,7 +587,8 @@ def get_payment_by_transaction_external_key_with_http_info(self, transaction_ext """ all_params = ['transaction_external_key', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -652,7 +647,7 @@ def get_payment_by_transaction_external_key_with_http_info(self, transaction_ext files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -661,13 +656,12 @@ def get_payment_by_transaction_external_key_with_http_info(self, transaction_ext def get_payment_by_transaction_id(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve a payment by transaction id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_transaction_id(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_transaction_id(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -678,7 +672,7 @@ def get_payment_by_transaction_id(self, transaction_id=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_payment_by_transaction_id_with_http_info(transaction_id, **kwargs) # noqa: E501 else: (data) = self.get_payment_by_transaction_id_with_http_info(transaction_id, **kwargs) # noqa: E501 @@ -687,13 +681,12 @@ def get_payment_by_transaction_id(self, transaction_id=None, **kwargs): # noqa: def get_payment_by_transaction_id_with_http_info(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve a payment by transaction id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_payment_by_transaction_id_with_http_info(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_payment_by_transaction_id_with_http_info(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Bool with_plugin_info: :param Bool with_attempts: @@ -705,7 +698,8 @@ def get_payment_by_transaction_id_with_http_info(self, transaction_id=None, **kw """ all_params = ['transaction_id', 'with_plugin_info', 'with_attempts', 'plugin_property', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -766,7 +760,7 @@ def get_payment_by_transaction_id_with_http_info(self, transaction_id=None, **kw files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -775,20 +769,19 @@ def get_payment_by_transaction_id_with_http_info(self, transaction_id=None, **kw def get_transaction_audit_logs_with_history(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_audit_logs_with_history(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_audit_logs_with_history(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_transaction_audit_logs_with_history_with_http_info(transaction_id, **kwargs) # noqa: E501 else: (data) = self.get_transaction_audit_logs_with_history_with_http_info(transaction_id, **kwargs) # noqa: E501 @@ -797,13 +790,12 @@ def get_transaction_audit_logs_with_history(self, transaction_id=None, **kwargs) def get_transaction_audit_logs_with_history_with_http_info(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_audit_logs_with_history_with_http_info(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_audit_logs_with_history_with_http_info(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -811,7 +803,8 @@ def get_transaction_audit_logs_with_history_with_http_info(self, transaction_id= """ all_params = ['transaction_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -863,7 +856,7 @@ def get_transaction_audit_logs_with_history_with_http_info(self, transaction_id= files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -872,13 +865,12 @@ def get_transaction_audit_logs_with_history_with_http_info(self, transaction_id= def get_transaction_custom_fields(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_custom_fields(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_custom_fields(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str audit: :return: List[CustomField] @@ -886,7 +878,7 @@ def get_transaction_custom_fields(self, transaction_id=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_transaction_custom_fields_with_http_info(transaction_id, **kwargs) # noqa: E501 else: (data) = self.get_transaction_custom_fields_with_http_info(transaction_id, **kwargs) # noqa: E501 @@ -895,13 +887,12 @@ def get_transaction_custom_fields(self, transaction_id=None, **kwargs): # noqa: def get_transaction_custom_fields_with_http_info(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_custom_fields_with_http_info(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_custom_fields_with_http_info(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Str audit: :return: List[CustomField] @@ -910,7 +901,8 @@ def get_transaction_custom_fields_with_http_info(self, transaction_id=None, **kw """ all_params = ['transaction_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -964,7 +956,7 @@ def get_transaction_custom_fields_with_http_info(self, transaction_id=None, **kw files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -973,13 +965,12 @@ def get_transaction_custom_fields_with_http_info(self, transaction_id=None, **kw def get_transaction_tags(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_tags(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_tags(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Bool included_deleted: :param Str audit: @@ -988,7 +979,7 @@ def get_transaction_tags(self, transaction_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_transaction_tags_with_http_info(transaction_id, **kwargs) # noqa: E501 else: (data) = self.get_transaction_tags_with_http_info(transaction_id, **kwargs) # noqa: E501 @@ -997,13 +988,12 @@ def get_transaction_tags(self, transaction_id=None, **kwargs): # noqa: E501 def get_transaction_tags_with_http_info(self, transaction_id=None, **kwargs): # noqa: E501 """Retrieve payment transaction tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_transaction_tags_with_http_info(transaction_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_tags_with_http_info(transaction_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param Bool included_deleted: :param Str audit: @@ -1013,7 +1003,8 @@ def get_transaction_tags_with_http_info(self, transaction_id=None, **kwargs): # """ all_params = ['transaction_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1069,7 +1060,7 @@ def get_transaction_tags_with_http_info(self, transaction_id=None, **kwargs): # files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1078,13 +1069,12 @@ def get_transaction_tags_with_http_info(self, transaction_id=None, **kwargs): # def modify_transaction_custom_fields(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_transaction_custom_fields(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_transaction_custom_fields(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1095,7 +1085,7 @@ def modify_transaction_custom_fields(self, transaction_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_transaction_custom_fields_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_transaction_custom_fields_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 @@ -1104,13 +1094,12 @@ def modify_transaction_custom_fields(self, transaction_id=None, body=None, creat def modify_transaction_custom_fields_with_http_info(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to payment transaction # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_transaction_custom_fields_with_http_info(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_transaction_custom_fields_with_http_info(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -1122,7 +1111,8 @@ def modify_transaction_custom_fields_with_http_info(self, transaction_id=None, b """ all_params = ['transaction_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1194,7 +1184,7 @@ def modify_transaction_custom_fields_with_http_info(self, transaction_id=None, b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1203,13 +1193,12 @@ def modify_transaction_custom_fields_with_http_info(self, transaction_id=None, b def notify_state_changed(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Mark a pending payment transaction as succeeded or failed # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.notify_state_changed(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.notify_state_changed(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -1221,7 +1210,7 @@ def notify_state_changed(self, transaction_id=None, body=None, created_by=None, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.notify_state_changed_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.notify_state_changed_with_http_info(transaction_id, body, created_by, **kwargs) # noqa: E501 @@ -1230,13 +1219,12 @@ def notify_state_changed(self, transaction_id=None, body=None, created_by=None, def notify_state_changed_with_http_info(self, transaction_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Mark a pending payment transaction as succeeded or failed # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.notify_state_changed_with_http_info(transaction_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.notify_state_changed_with_http_info(transaction_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str transaction_id: (required) :param PaymentTransaction body: (required) :param Str created_by: (required) @@ -1249,7 +1237,8 @@ def notify_state_changed_with_http_info(self, transaction_id=None, body=None, cr """ all_params = ['transaction_id', 'body', 'created_by', 'control_plugin_name', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1324,7 +1313,7 @@ def notify_state_changed_with_http_info(self, transaction_id=None, body=None, cr files=local_var_files, response_type='Payment', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/plugin_info_api.py b/killbill/api/plugin_info_api.py index b49af1f..790eaf9 100644 --- a/killbill/api/plugin_info_api.py +++ b/killbill/api/plugin_info_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,19 +55,18 @@ def __init__(self, api_client=None): def get_plugins_info(self, **kwargs): # noqa: E501 """Retrieve the list of registered plugins # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugins_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugins_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[PluginInfo] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_plugins_info_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_plugins_info_with_http_info(**kwargs) # noqa: E501 @@ -76,20 +75,20 @@ def get_plugins_info(self, **kwargs): # noqa: E501 def get_plugins_info_with_http_info(self, **kwargs): # noqa: E501 """Retrieve the list of registered plugins # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugins_info_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugins_info_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[PluginInfo] If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -133,7 +132,7 @@ def get_plugins_info_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[PluginInfo]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/security_api.py b/killbill/api/security_api.py index 264b91c..5c779e8 100644 --- a/killbill/api/security_api.py +++ b/killbill/api/security_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def add_role_definition(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a new role definition) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_role_definition(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_definition(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RoleDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -71,7 +70,7 @@ def add_role_definition(self, body=None, created_by=None, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_role_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_role_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def add_role_definition(self, body=None, created_by=None, **kwargs): # noqa: E5 def add_role_definition_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a new role definition) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_role_definition_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_role_definition_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RoleDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -97,7 +95,8 @@ def add_role_definition_with_http_info(self, body=None, created_by=None, **kwarg """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -161,7 +160,7 @@ def add_role_definition_with_http_info(self, body=None, created_by=None, **kwarg files=local_var_files, response_type='RoleDefinition', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -170,13 +169,12 @@ def add_role_definition_with_http_info(self, body=None, created_by=None, **kwarg def add_user_roles(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a new user with roles (to make api requests) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_user_roles(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_user_roles(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param UserRoles body: (required) :param Str created_by: (required) :param Str reason: @@ -186,7 +184,7 @@ def add_user_roles(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_user_roles_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_user_roles_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -195,13 +193,12 @@ def add_user_roles(self, body=None, created_by=None, **kwargs): # noqa: E501 def add_user_roles_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a new user with roles (to make api requests) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_user_roles_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_user_roles_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param UserRoles body: (required) :param Str created_by: (required) :param Str reason: @@ -212,7 +209,8 @@ def add_user_roles_with_http_info(self, body=None, created_by=None, **kwargs): """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -276,7 +274,93 @@ def add_user_roles_with_http_info(self, body=None, created_by=None, **kwargs): files=local_var_files, response_type='UserRoles', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_available_roles(self, **kwargs): # noqa: E501 + """List all active role definitions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_roles(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: List[RoleDefinition] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias + return self.get_available_roles_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_available_roles_with_http_info(**kwargs) # noqa: E501 + return data + + def get_available_roles_with_http_info(self, **kwargs): # noqa: E501 + """List all active role definitions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_available_roles_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: List[RoleDefinition] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_available_roles" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['basicAuth'] # noqa: E501 + + return self.api_client.call_api( + '/1.0/kb/security/roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='List[RoleDefinition]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -285,19 +369,18 @@ def add_user_roles_with_http_info(self, body=None, created_by=None, **kwargs): def get_current_user_permissions(self, **kwargs): # noqa: E501 """List user permissions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_current_user_permissions(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_permissions(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[Str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_current_user_permissions_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_current_user_permissions_with_http_info(**kwargs) # noqa: E501 @@ -306,20 +389,20 @@ def get_current_user_permissions(self, **kwargs): # noqa: E501 def get_current_user_permissions_with_http_info(self, **kwargs): # noqa: E501 """List user permissions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_current_user_permissions_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_permissions_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: List[Str] If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -363,7 +446,7 @@ def get_current_user_permissions_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Str]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -372,19 +455,18 @@ def get_current_user_permissions_with_http_info(self, **kwargs): # noqa: E501 def get_current_user_subject(self, **kwargs): # noqa: E501 """Get user information # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_current_user_subject(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_subject(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Subject If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_current_user_subject_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_current_user_subject_with_http_info(**kwargs) # noqa: E501 @@ -393,20 +475,20 @@ def get_current_user_subject(self, **kwargs): # noqa: E501 def get_current_user_subject_with_http_info(self, **kwargs): # noqa: E501 """Get user information # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_current_user_subject_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_current_user_subject_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: Subject If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -450,7 +532,7 @@ def get_current_user_subject_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Subject', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -459,20 +541,19 @@ def get_current_user_subject_with_http_info(self, **kwargs): # noqa: E501 def get_role_definition(self, role=None, **kwargs): # noqa: E501 """Get role definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_role_definition(role, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_role_definition(role, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str role: (required) :return: RoleDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_role_definition_with_http_info(role, **kwargs) # noqa: E501 else: (data) = self.get_role_definition_with_http_info(role, **kwargs) # noqa: E501 @@ -481,13 +562,12 @@ def get_role_definition(self, role=None, **kwargs): # noqa: E501 def get_role_definition_with_http_info(self, role=None, **kwargs): # noqa: E501 """Get role definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_role_definition_with_http_info(role, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_role_definition_with_http_info(role, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str role: (required) :return: RoleDefinition If the method is called asynchronously, @@ -495,7 +575,8 @@ def get_role_definition_with_http_info(self, role=None, **kwargs): # noqa: E501 """ all_params = ['role'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -547,7 +628,7 @@ def get_role_definition_with_http_info(self, role=None, **kwargs): # noqa: E501 files=local_var_files, response_type='RoleDefinition', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -556,20 +637,19 @@ def get_role_definition_with_http_info(self, role=None, **kwargs): # noqa: E501 def get_user_roles(self, username=None, **kwargs): # noqa: E501 """Get roles associated to a user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_user_roles(username, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_user_roles(username, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :return: UserRoles If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_user_roles_with_http_info(username, **kwargs) # noqa: E501 else: (data) = self.get_user_roles_with_http_info(username, **kwargs) # noqa: E501 @@ -578,13 +658,12 @@ def get_user_roles(self, username=None, **kwargs): # noqa: E501 def get_user_roles_with_http_info(self, username=None, **kwargs): # noqa: E501 """Get roles associated to a user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_user_roles_with_http_info(username, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_user_roles_with_http_info(username, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :return: UserRoles If the method is called asynchronously, @@ -592,7 +671,8 @@ def get_user_roles_with_http_info(self, username=None, **kwargs): # noqa: E501 """ all_params = ['username'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -644,7 +724,7 @@ def get_user_roles_with_http_info(self, username=None, **kwargs): # noqa: E501 files=local_var_files, response_type='UserRoles', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -653,13 +733,12 @@ def get_user_roles_with_http_info(self, username=None, **kwargs): # noqa: E501 def invalidate_user(self, username=None, created_by=None, **kwargs): # noqa: E501 """Invalidate an existing user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidate_user(username, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_user(username, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param Str created_by: (required) :param Str reason: @@ -669,7 +748,7 @@ def invalidate_user(self, username=None, created_by=None, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.invalidate_user_with_http_info(username, created_by, **kwargs) # noqa: E501 else: (data) = self.invalidate_user_with_http_info(username, created_by, **kwargs) # noqa: E501 @@ -678,13 +757,12 @@ def invalidate_user(self, username=None, created_by=None, **kwargs): # noqa: E5 def invalidate_user_with_http_info(self, username=None, created_by=None, **kwargs): # noqa: E501 """Invalidate an existing user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.invalidate_user_with_http_info(username, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_user_with_http_info(username, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param Str created_by: (required) :param Str reason: @@ -695,7 +773,8 @@ def invalidate_user_with_http_info(self, username=None, created_by=None, **kwarg """ all_params = ['username', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -761,7 +840,7 @@ def invalidate_user_with_http_info(self, username=None, created_by=None, **kwarg files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -770,13 +849,12 @@ def invalidate_user_with_http_info(self, username=None, created_by=None, **kwarg def update_role_definition(self, body=None, created_by=None, **kwargs): # noqa: E501 """Update a new role definition) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_role_definition(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_role_definition(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RoleDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -786,7 +864,7 @@ def update_role_definition(self, body=None, created_by=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_role_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_role_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -795,13 +873,12 @@ def update_role_definition(self, body=None, created_by=None, **kwargs): # noqa: def update_role_definition_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Update a new role definition) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_role_definition_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_role_definition_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param RoleDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -812,7 +889,8 @@ def update_role_definition_with_http_info(self, body=None, created_by=None, **kw """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -876,7 +954,7 @@ def update_role_definition_with_http_info(self, body=None, created_by=None, **kw files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -885,13 +963,12 @@ def update_role_definition_with_http_info(self, body=None, created_by=None, **kw def update_user_password(self, username=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update a user password # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_user_password(username, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user_password(username, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param UserRoles body: (required) :param Str created_by: (required) @@ -902,7 +979,7 @@ def update_user_password(self, username=None, body=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_user_password_with_http_info(username, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_user_password_with_http_info(username, body, created_by, **kwargs) # noqa: E501 @@ -911,13 +988,12 @@ def update_user_password(self, username=None, body=None, created_by=None, **kwar def update_user_password_with_http_info(self, username=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update a user password # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_user_password_with_http_info(username, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user_password_with_http_info(username, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param UserRoles body: (required) :param Str created_by: (required) @@ -929,7 +1005,8 @@ def update_user_password_with_http_info(self, username=None, body=None, created_ """ all_params = ['username', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1001,7 +1078,7 @@ def update_user_password_with_http_info(self, username=None, body=None, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1010,13 +1087,12 @@ def update_user_password_with_http_info(self, username=None, body=None, created_ def update_user_roles(self, username=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update roles associated to a user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_user_roles(username, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user_roles(username, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param UserRoles body: (required) :param Str created_by: (required) @@ -1027,7 +1103,7 @@ def update_user_roles(self, username=None, body=None, created_by=None, **kwargs) returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_user_roles_with_http_info(username, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_user_roles_with_http_info(username, body, created_by, **kwargs) # noqa: E501 @@ -1036,13 +1112,12 @@ def update_user_roles(self, username=None, body=None, created_by=None, **kwargs) def update_user_roles_with_http_info(self, username=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update roles associated to a user # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_user_roles_with_http_info(username, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_user_roles_with_http_info(username, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str username: (required) :param UserRoles body: (required) :param Str created_by: (required) @@ -1054,7 +1129,8 @@ def update_user_roles_with_http_info(self, username=None, body=None, created_by= """ all_params = ['username', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1126,7 +1202,7 @@ def update_user_roles_with_http_info(self, username=None, body=None, created_by= files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/subscription_api.py b/killbill/api/subscription_api.py index 474440a..0f01264 100644 --- a/killbill/api/subscription_api.py +++ b/killbill/api/subscription_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def add_subscription_blocking_state(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_subscription_blocking_state(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_subscription_blocking_state(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -74,7 +73,7 @@ def add_subscription_blocking_state(self, subscription_id=None, body=None, creat returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.add_subscription_blocking_state_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.add_subscription_blocking_state_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -83,13 +82,12 @@ def add_subscription_blocking_state(self, subscription_id=None, body=None, creat def add_subscription_blocking_state_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Block a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.add_subscription_blocking_state_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.add_subscription_blocking_state_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param BlockingState body: (required) :param Str created_by: (required) @@ -103,7 +101,8 @@ def add_subscription_blocking_state_with_http_info(self, subscription_id=None, b """ all_params = ['subscription_id', 'body', 'created_by', 'requested_date', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -176,7 +175,7 @@ def add_subscription_blocking_state_with_http_info(self, subscription_id=None, b files=local_var_files, response_type='List[BlockingState]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -185,13 +184,12 @@ def add_subscription_blocking_state_with_http_info(self, subscription_id=None, b def cancel_subscription_plan(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Cancel an entitlement plan # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_subscription_plan(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_subscription_plan(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -208,7 +206,7 @@ def cancel_subscription_plan(self, subscription_id=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.cancel_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 else: (data) = self.cancel_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 @@ -217,13 +215,12 @@ def cancel_subscription_plan(self, subscription_id=None, created_by=None, **kwar def cancel_subscription_plan_with_http_info(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Cancel an entitlement plan # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.cancel_subscription_plan_with_http_info(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.cancel_subscription_plan_with_http_info(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param Date requested_date: @@ -241,7 +238,8 @@ def cancel_subscription_plan_with_http_info(self, subscription_id=None, created_ """ all_params = ['subscription_id', 'created_by', 'requested_date', 'call_completion', 'call_timeout_sec', 'entitlement_policy', 'billing_policy', 'use_requested_date_for_billing', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -318,7 +316,7 @@ def cancel_subscription_plan_with_http_info(self, subscription_id=None, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -327,13 +325,12 @@ def cancel_subscription_plan_with_http_info(self, subscription_id=None, created_ def change_subscription_plan(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Change entitlement plan # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.change_subscription_plan(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_subscription_plan(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -349,7 +346,7 @@ def change_subscription_plan(self, subscription_id=None, body=None, created_by=N returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.change_subscription_plan_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.change_subscription_plan_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -358,13 +355,12 @@ def change_subscription_plan(self, subscription_id=None, body=None, created_by=N def change_subscription_plan_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Change entitlement plan # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.change_subscription_plan_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.change_subscription_plan_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -381,7 +377,8 @@ def change_subscription_plan_with_http_info(self, subscription_id=None, body=Non """ all_params = ['subscription_id', 'body', 'created_by', 'requested_date', 'call_completion', 'call_timeout_sec', 'billing_policy', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -464,22 +461,21 @@ def change_subscription_plan_with_http_info(self, subscription_id=None, body=Non files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) def create_subscription(self, body=None, created_by=None, **kwargs): # noqa: E501 - """Create an subscription # noqa: E501 + """Create a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Subscription body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -497,22 +493,21 @@ def create_subscription(self, body=None, created_by=None, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_subscription_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_subscription_with_http_info(body, created_by, **kwargs) # noqa: E501 return data def create_subscription_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 - """Create an subscription # noqa: E501 + """Create a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Subscription body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -531,7 +526,8 @@ def create_subscription_with_http_info(self, body=None, created_by=None, **kwarg """ all_params = ['body', 'created_by', 'entitlement_date', 'billing_date', 'rename_key_if_exists_and_unused', 'migrated', 'skip_response', 'call_completion', 'call_timeout_sec', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -612,7 +608,7 @@ def create_subscription_with_http_info(self, body=None, created_by=None, **kwarg files=local_var_files, response_type='Subscription', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -621,13 +617,12 @@ def create_subscription_with_http_info(self, body=None, created_by=None, **kwarg def create_subscription_custom_fields(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_custom_fields(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_custom_fields(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -638,7 +633,7 @@ def create_subscription_custom_fields(self, subscription_id=None, body=None, cre returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_subscription_custom_fields_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_subscription_custom_fields_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -647,13 +642,12 @@ def create_subscription_custom_fields(self, subscription_id=None, body=None, cre def create_subscription_custom_fields_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add custom fields to subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_custom_fields_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_custom_fields_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -665,7 +659,8 @@ def create_subscription_custom_fields_with_http_info(self, subscription_id=None, """ all_params = ['subscription_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -737,7 +732,7 @@ def create_subscription_custom_fields_with_http_info(self, subscription_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -747,11 +742,11 @@ def create_subscription_tags(self, subscription_id=None, body=None, created_by=N """create_subscription_tags # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_tags(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_tags(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -762,7 +757,7 @@ def create_subscription_tags(self, subscription_id=None, body=None, created_by=N returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_subscription_tags_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_subscription_tags_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -772,11 +767,11 @@ def create_subscription_tags_with_http_info(self, subscription_id=None, body=Non """create_subscription_tags # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_tags_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_tags_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[Str] body: (required) :param Str created_by: (required) @@ -788,7 +783,8 @@ def create_subscription_tags_with_http_info(self, subscription_id=None, body=Non """ all_params = ['subscription_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -860,7 +856,7 @@ def create_subscription_tags_with_http_info(self, subscription_id=None, body=Non files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -869,13 +865,12 @@ def create_subscription_tags_with_http_info(self, subscription_id=None, body=Non def create_subscription_with_add_ons(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create an entitlement with addOn products # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_with_add_ons(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_with_add_ons(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[Subscription] body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -893,7 +888,7 @@ def create_subscription_with_add_ons(self, body=None, created_by=None, **kwargs) returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_subscription_with_add_ons_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_subscription_with_add_ons_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -902,13 +897,12 @@ def create_subscription_with_add_ons(self, body=None, created_by=None, **kwargs) def create_subscription_with_add_ons_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create an entitlement with addOn products # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscription_with_add_ons_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscription_with_add_ons_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[Subscription] body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -927,7 +921,8 @@ def create_subscription_with_add_ons_with_http_info(self, body=None, created_by= """ all_params = ['body', 'created_by', 'entitlement_date', 'billing_date', 'migrated', 'skip_response', 'rename_key_if_exists_and_unused', 'call_completion', 'call_timeout_sec', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1008,7 +1003,7 @@ def create_subscription_with_add_ons_with_http_info(self, body=None, created_by= files=local_var_files, response_type='Bundle', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1017,13 +1012,12 @@ def create_subscription_with_add_ons_with_http_info(self, body=None, created_by= def create_subscriptions_with_add_ons(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create multiple entitlements with addOn products # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscriptions_with_add_ons(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscriptions_with_add_ons(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[BulkSubscriptionsBundle] body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -1041,7 +1035,7 @@ def create_subscriptions_with_add_ons(self, body=None, created_by=None, **kwargs returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_subscriptions_with_add_ons_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_subscriptions_with_add_ons_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1050,13 +1044,12 @@ def create_subscriptions_with_add_ons(self, body=None, created_by=None, **kwargs def create_subscriptions_with_add_ons_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create multiple entitlements with addOn products # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_subscriptions_with_add_ons_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_subscriptions_with_add_ons_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param List[BulkSubscriptionsBundle] body: (required) :param Str created_by: (required) :param Date entitlement_date: @@ -1075,7 +1068,8 @@ def create_subscriptions_with_add_ons_with_http_info(self, body=None, created_by """ all_params = ['body', 'created_by', 'entitlement_date', 'billing_date', 'rename_key_if_exists_and_unused', 'migrated', 'skip_response', 'call_completion', 'call_timeout_sec', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1156,7 +1150,7 @@ def create_subscriptions_with_add_ons_with_http_info(self, body=None, created_by files=local_var_files, response_type='List[Bundle]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1165,13 +1159,12 @@ def create_subscriptions_with_add_ons_with_http_info(self, body=None, created_by def delete_subscription_custom_fields(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_subscription_custom_fields(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_subscription_custom_fields(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1182,7 +1175,7 @@ def delete_subscription_custom_fields(self, subscription_id=None, created_by=Non returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_subscription_custom_fields_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_subscription_custom_fields_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 @@ -1191,13 +1184,12 @@ def delete_subscription_custom_fields(self, subscription_id=None, created_by=Non def delete_subscription_custom_fields_with_http_info(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Remove custom fields from subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_subscription_custom_fields_with_http_info(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_subscription_custom_fields_with_http_info(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] custom_field: @@ -1209,7 +1201,8 @@ def delete_subscription_custom_fields_with_http_info(self, subscription_id=None, """ all_params = ['subscription_id', 'created_by', 'custom_field', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1278,7 +1271,7 @@ def delete_subscription_custom_fields_with_http_info(self, subscription_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1287,13 +1280,12 @@ def delete_subscription_custom_fields_with_http_info(self, subscription_id=None, def delete_subscription_tags(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_subscription_tags(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_subscription_tags(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1304,7 +1296,7 @@ def delete_subscription_tags(self, subscription_id=None, created_by=None, **kwar returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_subscription_tags_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_subscription_tags_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 @@ -1313,13 +1305,12 @@ def delete_subscription_tags(self, subscription_id=None, created_by=None, **kwar def delete_subscription_tags_with_http_info(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Remove tags from subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_subscription_tags_with_http_info(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_subscription_tags_with_http_info(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] tag_def: @@ -1331,7 +1322,8 @@ def delete_subscription_tags_with_http_info(self, subscription_id=None, created_ """ all_params = ['subscription_id', 'created_by', 'tag_def', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1400,7 +1392,7 @@ def delete_subscription_tags_with_http_info(self, subscription_id=None, created_ files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1409,13 +1401,12 @@ def delete_subscription_tags_with_http_info(self, subscription_id=None, created_ def get_subscription(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve a subscription by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str audit: :return: Subscription @@ -1423,7 +1414,7 @@ def get_subscription(self, subscription_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_with_http_info(subscription_id, **kwargs) # noqa: E501 else: (data) = self.get_subscription_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -1432,13 +1423,12 @@ def get_subscription(self, subscription_id=None, **kwargs): # noqa: E501 def get_subscription_with_http_info(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve a subscription by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_with_http_info(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_with_http_info(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str audit: :return: Subscription @@ -1447,7 +1437,8 @@ def get_subscription_with_http_info(self, subscription_id=None, **kwargs): # no """ all_params = ['subscription_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1501,7 +1492,7 @@ def get_subscription_with_http_info(self, subscription_id=None, **kwargs): # no files=local_var_files, response_type='Subscription', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1510,20 +1501,19 @@ def get_subscription_with_http_info(self, subscription_id=None, **kwargs): # no def get_subscription_audit_logs_with_history(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_audit_logs_with_history(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_audit_logs_with_history(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_audit_logs_with_history_with_http_info(subscription_id, **kwargs) # noqa: E501 else: (data) = self.get_subscription_audit_logs_with_history_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -1532,13 +1522,12 @@ def get_subscription_audit_logs_with_history(self, subscription_id=None, **kwarg def get_subscription_audit_logs_with_history_with_http_info(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_audit_logs_with_history_with_http_info(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_audit_logs_with_history_with_http_info(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -1546,7 +1535,8 @@ def get_subscription_audit_logs_with_history_with_http_info(self, subscription_i """ all_params = ['subscription_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1598,7 +1588,7 @@ def get_subscription_audit_logs_with_history_with_http_info(self, subscription_i files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1607,13 +1597,12 @@ def get_subscription_audit_logs_with_history_with_http_info(self, subscription_i def get_subscription_by_key(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a subscription by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_by_key(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_by_key(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Str audit: :return: Subscription @@ -1621,7 +1610,7 @@ def get_subscription_by_key(self, external_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_by_key_with_http_info(external_key, **kwargs) # noqa: E501 else: (data) = self.get_subscription_by_key_with_http_info(external_key, **kwargs) # noqa: E501 @@ -1630,13 +1619,12 @@ def get_subscription_by_key(self, external_key=None, **kwargs): # noqa: E501 def get_subscription_by_key_with_http_info(self, external_key=None, **kwargs): # noqa: E501 """Retrieve a subscription by external key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_by_key_with_http_info(external_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_by_key_with_http_info(external_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str external_key: (required) :param Str audit: :return: Subscription @@ -1645,7 +1633,8 @@ def get_subscription_by_key_with_http_info(self, external_key=None, **kwargs): """ all_params = ['external_key', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1697,7 +1686,7 @@ def get_subscription_by_key_with_http_info(self, external_key=None, **kwargs): files=local_var_files, response_type='Subscription', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1706,13 +1695,12 @@ def get_subscription_by_key_with_http_info(self, external_key=None, **kwargs): def get_subscription_custom_fields(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_custom_fields(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_custom_fields(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str audit: :return: List[CustomField] @@ -1720,7 +1708,7 @@ def get_subscription_custom_fields(self, subscription_id=None, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_custom_fields_with_http_info(subscription_id, **kwargs) # noqa: E501 else: (data) = self.get_subscription_custom_fields_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -1729,13 +1717,12 @@ def get_subscription_custom_fields(self, subscription_id=None, **kwargs): # noq def get_subscription_custom_fields_with_http_info(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription custom fields # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_custom_fields_with_http_info(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_custom_fields_with_http_info(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str audit: :return: List[CustomField] @@ -1744,7 +1731,8 @@ def get_subscription_custom_fields_with_http_info(self, subscription_id=None, ** """ all_params = ['subscription_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1798,7 +1786,7 @@ def get_subscription_custom_fields_with_http_info(self, subscription_id=None, ** files=local_var_files, response_type='List[CustomField]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1807,20 +1795,19 @@ def get_subscription_custom_fields_with_http_info(self, subscription_id=None, ** def get_subscription_event_audit_logs_with_history(self, event_id=None, **kwargs): # noqa: E501 """Retrieve subscription event audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_event_audit_logs_with_history(event_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_event_audit_logs_with_history(event_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str event_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_event_audit_logs_with_history_with_http_info(event_id, **kwargs) # noqa: E501 else: (data) = self.get_subscription_event_audit_logs_with_history_with_http_info(event_id, **kwargs) # noqa: E501 @@ -1829,13 +1816,12 @@ def get_subscription_event_audit_logs_with_history(self, event_id=None, **kwargs def get_subscription_event_audit_logs_with_history_with_http_info(self, event_id=None, **kwargs): # noqa: E501 """Retrieve subscription event audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_event_audit_logs_with_history_with_http_info(event_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_event_audit_logs_with_history_with_http_info(event_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str event_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -1843,7 +1829,8 @@ def get_subscription_event_audit_logs_with_history_with_http_info(self, event_id """ all_params = ['event_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1895,7 +1882,7 @@ def get_subscription_event_audit_logs_with_history_with_http_info(self, event_id files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1904,13 +1891,12 @@ def get_subscription_event_audit_logs_with_history_with_http_info(self, event_id def get_subscription_tags(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_tags(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_tags(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Bool included_deleted: :param Str audit: @@ -1919,7 +1905,7 @@ def get_subscription_tags(self, subscription_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_subscription_tags_with_http_info(subscription_id, **kwargs) # noqa: E501 else: (data) = self.get_subscription_tags_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -1928,13 +1914,12 @@ def get_subscription_tags(self, subscription_id=None, **kwargs): # noqa: E501 def get_subscription_tags_with_http_info(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve subscription tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_subscription_tags_with_http_info(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_subscription_tags_with_http_info(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Bool included_deleted: :param Str audit: @@ -1944,7 +1929,8 @@ def get_subscription_tags_with_http_info(self, subscription_id=None, **kwargs): """ all_params = ['subscription_id', 'included_deleted', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2000,7 +1986,7 @@ def get_subscription_tags_with_http_info(self, subscription_id=None, **kwargs): files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2009,13 +1995,12 @@ def get_subscription_tags_with_http_info(self, subscription_id=None, **kwargs): def modify_subscription_custom_fields(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_subscription_custom_fields(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_subscription_custom_fields(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -2026,7 +2011,7 @@ def modify_subscription_custom_fields(self, subscription_id=None, body=None, cre returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.modify_subscription_custom_fields_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.modify_subscription_custom_fields_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -2035,13 +2020,12 @@ def modify_subscription_custom_fields(self, subscription_id=None, body=None, cre def modify_subscription_custom_fields_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Modify custom fields to subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.modify_subscription_custom_fields_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.modify_subscription_custom_fields_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param List[CustomField] body: (required) :param Str created_by: (required) @@ -2053,7 +2037,8 @@ def modify_subscription_custom_fields_with_http_info(self, subscription_id=None, """ all_params = ['subscription_id', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2125,7 +2110,7 @@ def modify_subscription_custom_fields_with_http_info(self, subscription_id=None, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2134,13 +2119,12 @@ def modify_subscription_custom_fields_with_http_info(self, subscription_id=None, def uncancel_subscription_plan(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Un-cancel an entitlement # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.uncancel_subscription_plan(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uncancel_subscription_plan(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] plugin_property: @@ -2151,7 +2135,7 @@ def uncancel_subscription_plan(self, subscription_id=None, created_by=None, **kw returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.uncancel_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 else: (data) = self.uncancel_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 @@ -2160,13 +2144,12 @@ def uncancel_subscription_plan(self, subscription_id=None, created_by=None, **kw def uncancel_subscription_plan_with_http_info(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Un-cancel an entitlement # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.uncancel_subscription_plan_with_http_info(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uncancel_subscription_plan_with_http_info(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] plugin_property: @@ -2178,7 +2161,8 @@ def uncancel_subscription_plan_with_http_info(self, subscription_id=None, create """ all_params = ['subscription_id', 'created_by', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2243,7 +2227,7 @@ def uncancel_subscription_plan_with_http_info(self, subscription_id=None, create files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2252,13 +2236,12 @@ def uncancel_subscription_plan_with_http_info(self, subscription_id=None, create def undo_change_subscription_plan(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Undo a pending change plan on an entitlement # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undo_change_subscription_plan(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undo_change_subscription_plan(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] plugin_property: @@ -2269,7 +2252,7 @@ def undo_change_subscription_plan(self, subscription_id=None, created_by=None, * returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.undo_change_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 else: (data) = self.undo_change_subscription_plan_with_http_info(subscription_id, created_by, **kwargs) # noqa: E501 @@ -2278,13 +2261,12 @@ def undo_change_subscription_plan(self, subscription_id=None, created_by=None, * def undo_change_subscription_plan_with_http_info(self, subscription_id=None, created_by=None, **kwargs): # noqa: E501 """Undo a pending change plan on an entitlement # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.undo_change_subscription_plan_with_http_info(subscription_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.undo_change_subscription_plan_with_http_info(subscription_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str created_by: (required) :param List[Str] plugin_property: @@ -2296,7 +2278,8 @@ def undo_change_subscription_plan_with_http_info(self, subscription_id=None, cre """ all_params = ['subscription_id', 'created_by', 'plugin_property', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2361,7 +2344,7 @@ def undo_change_subscription_plan_with_http_info(self, subscription_id=None, cre files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2370,13 +2353,12 @@ def undo_change_subscription_plan_with_http_info(self, subscription_id=None, cre def update_subscription_bcd(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update the BCD associated to a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_subscription_bcd(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_subscription_bcd(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -2389,7 +2371,7 @@ def update_subscription_bcd(self, subscription_id=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_subscription_bcd_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_subscription_bcd_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -2398,13 +2380,12 @@ def update_subscription_bcd(self, subscription_id=None, body=None, created_by=No def update_subscription_bcd_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update the BCD associated to a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_subscription_bcd_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_subscription_bcd_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -2418,7 +2399,8 @@ def update_subscription_bcd_with_http_info(self, subscription_id=None, body=None """ all_params = ['subscription_id', 'body', 'created_by', 'effective_from_date', 'force_new_bcd_with_past_effective_date', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2494,7 +2476,7 @@ def update_subscription_bcd_with_http_info(self, subscription_id=None, body=None files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -2503,13 +2485,12 @@ def update_subscription_bcd_with_http_info(self, subscription_id=None, body=None def update_subscription_quantity(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update the quantity associated to a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_subscription_quantity(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_subscription_quantity(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -2522,7 +2503,7 @@ def update_subscription_quantity(self, subscription_id=None, body=None, created_ returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.update_subscription_quantity_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 else: (data) = self.update_subscription_quantity_with_http_info(subscription_id, body, created_by, **kwargs) # noqa: E501 @@ -2531,13 +2512,12 @@ def update_subscription_quantity(self, subscription_id=None, body=None, created_ def update_subscription_quantity_with_http_info(self, subscription_id=None, body=None, created_by=None, **kwargs): # noqa: E501 """Update the quantity associated to a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.update_subscription_quantity_with_http_info(subscription_id, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_subscription_quantity_with_http_info(subscription_id, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Subscription body: (required) :param Str created_by: (required) @@ -2551,7 +2531,8 @@ def update_subscription_quantity_with_http_info(self, subscription_id=None, body """ all_params = ['subscription_id', 'body', 'created_by', 'effective_from_date', 'force_new_quantity_with_past_effective_date', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2627,7 +2608,7 @@ def update_subscription_quantity_with_http_info(self, subscription_id=None, body files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/tag_api.py b/killbill/api/tag_api.py index f843023..ea46a1e 100644 --- a/killbill/api/tag_api.py +++ b/killbill/api/tag_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,20 +55,19 @@ def __init__(self, api_client=None): def get_tag_audit_logs_with_history(self, tag_id=None, **kwargs): # noqa: E501 """Retrieve tag audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_audit_logs_with_history(tag_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_audit_logs_with_history(tag_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tag_audit_logs_with_history_with_http_info(tag_id, **kwargs) # noqa: E501 else: (data) = self.get_tag_audit_logs_with_history_with_http_info(tag_id, **kwargs) # noqa: E501 @@ -77,13 +76,12 @@ def get_tag_audit_logs_with_history(self, tag_id=None, **kwargs): # noqa: E501 def get_tag_audit_logs_with_history_with_http_info(self, tag_id=None, **kwargs): # noqa: E501 """Retrieve tag audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_audit_logs_with_history_with_http_info(tag_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_audit_logs_with_history_with_http_info(tag_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -91,7 +89,8 @@ def get_tag_audit_logs_with_history_with_http_info(self, tag_id=None, **kwargs): """ all_params = ['tag_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -143,7 +142,7 @@ def get_tag_audit_logs_with_history_with_http_info(self, tag_id=None, **kwargs): files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -152,13 +151,12 @@ def get_tag_audit_logs_with_history_with_http_info(self, tag_id=None, **kwargs): def get_tags(self, **kwargs): # noqa: E501 """List tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tags(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tags(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -167,7 +165,7 @@ def get_tags(self, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tags_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_tags_with_http_info(**kwargs) # noqa: E501 @@ -176,13 +174,12 @@ def get_tags(self, **kwargs): # noqa: E501 def get_tags_with_http_info(self, **kwargs): # noqa: E501 """List tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tags_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tags_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Int offset: :param Int limit: :param Str audit: @@ -192,7 +189,8 @@ def get_tags_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -242,7 +240,7 @@ def get_tags_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -251,13 +249,12 @@ def get_tags_with_http_info(self, **kwargs): # noqa: E501 def search_tags(self, search_key=None, **kwargs): # noqa: E501 """Search tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tags(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_tags(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -267,7 +264,7 @@ def search_tags(self, search_key=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.search_tags_with_http_info(search_key, **kwargs) # noqa: E501 else: (data) = self.search_tags_with_http_info(search_key, **kwargs) # noqa: E501 @@ -276,13 +273,12 @@ def search_tags(self, search_key=None, **kwargs): # noqa: E501 def search_tags_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """Search tags # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.search_tags_with_http_info(search_key, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.search_tags_with_http_info(search_key, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str search_key: (required) :param Int offset: :param Int limit: @@ -293,7 +289,8 @@ def search_tags_with_http_info(self, search_key=None, **kwargs): # noqa: E501 """ all_params = ['search_key', 'offset', 'limit', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -351,7 +348,7 @@ def search_tags_with_http_info(self, search_key=None, **kwargs): # noqa: E501 files=local_var_files, response_type='List[Tag]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/tag_definition_api.py b/killbill/api/tag_definition_api.py index 2e7c942..9b74e81 100644 --- a/killbill/api/tag_definition_api.py +++ b/killbill/api/tag_definition_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def create_tag_definition(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tag_definition(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tag_definition(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param TagDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -71,7 +70,7 @@ def create_tag_definition(self, body=None, created_by=None, **kwargs): # noqa: returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_tag_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_tag_definition_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def create_tag_definition(self, body=None, created_by=None, **kwargs): # noqa: def create_tag_definition_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tag_definition_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tag_definition_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param TagDefinition body: (required) :param Str created_by: (required) :param Str reason: @@ -97,7 +95,8 @@ def create_tag_definition_with_http_info(self, body=None, created_by=None, **kwa """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -161,7 +160,7 @@ def create_tag_definition_with_http_info(self, body=None, created_by=None, **kwa files=local_var_files, response_type='TagDefinition', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -170,13 +169,12 @@ def create_tag_definition_with_http_info(self, body=None, created_by=None, **kwa def delete_tag_definition(self, tag_definition_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_tag_definition(tag_definition_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_tag_definition(tag_definition_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :param Str created_by: (required) :param Str reason: @@ -186,7 +184,7 @@ def delete_tag_definition(self, tag_definition_id=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_tag_definition_with_http_info(tag_definition_id, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_tag_definition_with_http_info(tag_definition_id, created_by, **kwargs) # noqa: E501 @@ -195,13 +193,12 @@ def delete_tag_definition(self, tag_definition_id=None, created_by=None, **kwarg def delete_tag_definition_with_http_info(self, tag_definition_id=None, created_by=None, **kwargs): # noqa: E501 """Delete a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_tag_definition_with_http_info(tag_definition_id, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_tag_definition_with_http_info(tag_definition_id, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :param Str created_by: (required) :param Str reason: @@ -212,7 +209,8 @@ def delete_tag_definition_with_http_info(self, tag_definition_id=None, created_b """ all_params = ['tag_definition_id', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -274,7 +272,7 @@ def delete_tag_definition_with_http_info(self, tag_definition_id=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -283,13 +281,12 @@ def delete_tag_definition_with_http_info(self, tag_definition_id=None, created_b def get_tag_definition(self, tag_definition_id=None, **kwargs): # noqa: E501 """Retrieve a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definition(tag_definition_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definition(tag_definition_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :param Str audit: :return: TagDefinition @@ -297,7 +294,7 @@ def get_tag_definition(self, tag_definition_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tag_definition_with_http_info(tag_definition_id, **kwargs) # noqa: E501 else: (data) = self.get_tag_definition_with_http_info(tag_definition_id, **kwargs) # noqa: E501 @@ -306,13 +303,12 @@ def get_tag_definition(self, tag_definition_id=None, **kwargs): # noqa: E501 def get_tag_definition_with_http_info(self, tag_definition_id=None, **kwargs): # noqa: E501 """Retrieve a tag definition # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definition_with_http_info(tag_definition_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definition_with_http_info(tag_definition_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :param Str audit: :return: TagDefinition @@ -321,7 +317,8 @@ def get_tag_definition_with_http_info(self, tag_definition_id=None, **kwargs): """ all_params = ['tag_definition_id', 'audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -375,7 +372,7 @@ def get_tag_definition_with_http_info(self, tag_definition_id=None, **kwargs): files=local_var_files, response_type='TagDefinition', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -384,20 +381,19 @@ def get_tag_definition_with_http_info(self, tag_definition_id=None, **kwargs): def get_tag_definition_audit_logs_with_history(self, tag_definition_id=None, **kwargs): # noqa: E501 """Retrieve tag definition audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definition_audit_logs_with_history(tag_definition_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definition_audit_logs_with_history(tag_definition_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :return: List[AuditLog] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tag_definition_audit_logs_with_history_with_http_info(tag_definition_id, **kwargs) # noqa: E501 else: (data) = self.get_tag_definition_audit_logs_with_history_with_http_info(tag_definition_id, **kwargs) # noqa: E501 @@ -406,13 +402,12 @@ def get_tag_definition_audit_logs_with_history(self, tag_definition_id=None, **k def get_tag_definition_audit_logs_with_history_with_http_info(self, tag_definition_id=None, **kwargs): # noqa: E501 """Retrieve tag definition audit logs with history by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definition_audit_logs_with_history_with_http_info(tag_definition_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definition_audit_logs_with_history_with_http_info(tag_definition_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tag_definition_id: (required) :return: List[AuditLog] If the method is called asynchronously, @@ -420,7 +415,8 @@ def get_tag_definition_audit_logs_with_history_with_http_info(self, tag_definiti """ all_params = ['tag_definition_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -472,7 +468,7 @@ def get_tag_definition_audit_logs_with_history_with_http_info(self, tag_definiti files=local_var_files, response_type='List[AuditLog]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -481,20 +477,19 @@ def get_tag_definition_audit_logs_with_history_with_http_info(self, tag_definiti def get_tag_definitions(self, **kwargs): # noqa: E501 """List tag definitions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definitions(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definitions(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str audit: :return: List[TagDefinition] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tag_definitions_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_tag_definitions_with_http_info(**kwargs) # noqa: E501 @@ -503,13 +498,12 @@ def get_tag_definitions(self, **kwargs): # noqa: E501 def get_tag_definitions_with_http_info(self, **kwargs): # noqa: E501 """List tag definitions # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tag_definitions_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tag_definitions_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str audit: :return: List[TagDefinition] If the method is called asynchronously, @@ -517,7 +511,8 @@ def get_tag_definitions_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['audit'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -563,7 +558,7 @@ def get_tag_definitions_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='List[TagDefinition]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/tenant_api.py b/killbill/api/tenant_api.py index b4cf891..b84e998 100644 --- a/killbill/api/tenant_api.py +++ b/killbill/api/tenant_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def create_tenant(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tenant(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tenant(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Tenant body: (required) :param Str created_by: (required) :param Bool use_global_default: @@ -72,7 +71,7 @@ def create_tenant(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.create_tenant_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.create_tenant_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -81,13 +80,12 @@ def create_tenant(self, body=None, created_by=None, **kwargs): # noqa: E501 def create_tenant_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Create a tenant # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.create_tenant_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_tenant_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Tenant body: (required) :param Str created_by: (required) :param Bool use_global_default: @@ -99,7 +97,8 @@ def create_tenant_with_http_info(self, body=None, created_by=None, **kwargs): # """ all_params = ['body', 'created_by', 'use_global_default', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -165,7 +164,7 @@ def create_tenant_with_http_info(self, body=None, created_by=None, **kwargs): # files=local_var_files, response_type='Tenant', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -174,13 +173,12 @@ def create_tenant_with_http_info(self, body=None, created_by=None, **kwargs): # def delete_per_tenant_configuration(self, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_per_tenant_configuration(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_per_tenant_configuration(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -189,7 +187,7 @@ def delete_per_tenant_configuration(self, created_by=None, **kwargs): # noqa: E returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_per_tenant_configuration_with_http_info(created_by, **kwargs) # noqa: E501 else: (data) = self.delete_per_tenant_configuration_with_http_info(created_by, **kwargs) # noqa: E501 @@ -198,13 +196,12 @@ def delete_per_tenant_configuration(self, created_by=None, **kwargs): # noqa: E def delete_per_tenant_configuration_with_http_info(self, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_per_tenant_configuration_with_http_info(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_per_tenant_configuration_with_http_info(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -214,7 +211,8 @@ def delete_per_tenant_configuration_with_http_info(self, created_by=None, **kwar """ all_params = ['created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -264,7 +262,7 @@ def delete_per_tenant_configuration_with_http_info(self, created_by=None, **kwar files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -273,13 +271,12 @@ def delete_per_tenant_configuration_with_http_info(self, created_by=None, **kwar def delete_plugin_configuration(self, plugin_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_plugin_configuration(plugin_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_plugin_configuration(plugin_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str created_by: (required) :param Str reason: @@ -289,7 +286,7 @@ def delete_plugin_configuration(self, plugin_name=None, created_by=None, **kwarg returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_plugin_configuration_with_http_info(plugin_name, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_plugin_configuration_with_http_info(plugin_name, created_by, **kwargs) # noqa: E501 @@ -298,13 +295,12 @@ def delete_plugin_configuration(self, plugin_name=None, created_by=None, **kwarg def delete_plugin_configuration_with_http_info(self, plugin_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_plugin_configuration_with_http_info(plugin_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_plugin_configuration_with_http_info(plugin_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str created_by: (required) :param Str reason: @@ -315,7 +311,8 @@ def delete_plugin_configuration_with_http_info(self, plugin_name=None, created_b """ all_params = ['plugin_name', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -373,7 +370,7 @@ def delete_plugin_configuration_with_http_info(self, plugin_name=None, created_b files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -382,13 +379,12 @@ def delete_plugin_configuration_with_http_info(self, plugin_name=None, created_b def delete_plugin_payment_state_machine_config(self, plugin_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_plugin_payment_state_machine_config(plugin_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_plugin_payment_state_machine_config(plugin_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str created_by: (required) :param Str reason: @@ -398,7 +394,7 @@ def delete_plugin_payment_state_machine_config(self, plugin_name=None, created_b returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_plugin_payment_state_machine_config_with_http_info(plugin_name, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_plugin_payment_state_machine_config_with_http_info(plugin_name, created_by, **kwargs) # noqa: E501 @@ -407,13 +403,12 @@ def delete_plugin_payment_state_machine_config(self, plugin_name=None, created_b def delete_plugin_payment_state_machine_config_with_http_info(self, plugin_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_plugin_payment_state_machine_config_with_http_info(plugin_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_plugin_payment_state_machine_config_with_http_info(plugin_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str created_by: (required) :param Str reason: @@ -424,7 +419,8 @@ def delete_plugin_payment_state_machine_config_with_http_info(self, plugin_name= """ all_params = ['plugin_name', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -482,7 +478,7 @@ def delete_plugin_payment_state_machine_config_with_http_info(self, plugin_name= files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -491,13 +487,12 @@ def delete_plugin_payment_state_machine_config_with_http_info(self, plugin_name= def delete_push_notification_callbacks(self, created_by=None, **kwargs): # noqa: E501 """Delete a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_push_notification_callbacks(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_push_notification_callbacks(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -506,7 +501,7 @@ def delete_push_notification_callbacks(self, created_by=None, **kwargs): # noqa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_push_notification_callbacks_with_http_info(created_by, **kwargs) # noqa: E501 else: (data) = self.delete_push_notification_callbacks_with_http_info(created_by, **kwargs) # noqa: E501 @@ -515,13 +510,12 @@ def delete_push_notification_callbacks(self, created_by=None, **kwargs): # noqa def delete_push_notification_callbacks_with_http_info(self, created_by=None, **kwargs): # noqa: E501 """Delete a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_push_notification_callbacks_with_http_info(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_push_notification_callbacks_with_http_info(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str reason: :param Str comment: @@ -531,7 +525,8 @@ def delete_push_notification_callbacks_with_http_info(self, created_by=None, **k """ all_params = ['created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -581,7 +576,7 @@ def delete_push_notification_callbacks_with_http_info(self, created_by=None, **k files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -590,13 +585,12 @@ def delete_push_notification_callbacks_with_http_info(self, created_by=None, **k def delete_user_key_value(self, key_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_user_key_value(key_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user_key_value(key_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :param Str created_by: (required) :param Str reason: @@ -606,7 +600,7 @@ def delete_user_key_value(self, key_name=None, created_by=None, **kwargs): # no returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.delete_user_key_value_with_http_info(key_name, created_by, **kwargs) # noqa: E501 else: (data) = self.delete_user_key_value_with_http_info(key_name, created_by, **kwargs) # noqa: E501 @@ -615,13 +609,12 @@ def delete_user_key_value(self, key_name=None, created_by=None, **kwargs): # no def delete_user_key_value_with_http_info(self, key_name=None, created_by=None, **kwargs): # noqa: E501 """Delete a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.delete_user_key_value_with_http_info(key_name, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_user_key_value_with_http_info(key_name, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :param Str created_by: (required) :param Str reason: @@ -632,7 +625,8 @@ def delete_user_key_value_with_http_info(self, key_name=None, created_by=None, * """ all_params = ['key_name', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -690,7 +684,7 @@ def delete_user_key_value_with_http_info(self, key_name=None, created_by=None, * files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -699,20 +693,19 @@ def delete_user_key_value_with_http_info(self, key_name=None, created_by=None, * def get_all_plugin_configuration(self, key_prefix=None, **kwargs): # noqa: E501 """Retrieve a per tenant key value based on key prefix # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_plugin_configuration(key_prefix, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_plugin_configuration(key_prefix, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_prefix: (required) :return: List[TenantKeyValue] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_all_plugin_configuration_with_http_info(key_prefix, **kwargs) # noqa: E501 else: (data) = self.get_all_plugin_configuration_with_http_info(key_prefix, **kwargs) # noqa: E501 @@ -721,13 +714,12 @@ def get_all_plugin_configuration(self, key_prefix=None, **kwargs): # noqa: E501 def get_all_plugin_configuration_with_http_info(self, key_prefix=None, **kwargs): # noqa: E501 """Retrieve a per tenant key value based on key prefix # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_plugin_configuration_with_http_info(key_prefix, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_plugin_configuration_with_http_info(key_prefix, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_prefix: (required) :return: List[TenantKeyValue] If the method is called asynchronously, @@ -735,7 +727,8 @@ def get_all_plugin_configuration_with_http_info(self, key_prefix=None, **kwargs) """ all_params = ['key_prefix'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -787,7 +780,7 @@ def get_all_plugin_configuration_with_http_info(self, key_prefix=None, **kwargs) files=local_var_files, response_type='List[TenantKeyValue]', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -796,19 +789,18 @@ def get_all_plugin_configuration_with_http_info(self, key_prefix=None, **kwargs) def get_per_tenant_configuration(self, **kwargs): # noqa: E501 """Retrieve a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_per_tenant_configuration(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_per_tenant_configuration(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_per_tenant_configuration_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_per_tenant_configuration_with_http_info(**kwargs) # noqa: E501 @@ -817,20 +809,20 @@ def get_per_tenant_configuration(self, **kwargs): # noqa: E501 def get_per_tenant_configuration_with_http_info(self, **kwargs): # noqa: E501 """Retrieve a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_per_tenant_configuration_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_per_tenant_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -874,7 +866,7 @@ def get_per_tenant_configuration_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -883,20 +875,19 @@ def get_per_tenant_configuration_with_http_info(self, **kwargs): # noqa: E501 def get_plugin_configuration(self, plugin_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugin_configuration(plugin_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugin_configuration(plugin_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_plugin_configuration_with_http_info(plugin_name, **kwargs) # noqa: E501 else: (data) = self.get_plugin_configuration_with_http_info(plugin_name, **kwargs) # noqa: E501 @@ -905,13 +896,12 @@ def get_plugin_configuration(self, plugin_name=None, **kwargs): # noqa: E501 def get_plugin_configuration_with_http_info(self, plugin_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugin_configuration_with_http_info(plugin_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugin_configuration_with_http_info(plugin_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :return: TenantKeyValue If the method is called asynchronously, @@ -919,7 +909,8 @@ def get_plugin_configuration_with_http_info(self, plugin_name=None, **kwargs): """ all_params = ['plugin_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -971,7 +962,7 @@ def get_plugin_configuration_with_http_info(self, plugin_name=None, **kwargs): files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -980,20 +971,19 @@ def get_plugin_configuration_with_http_info(self, plugin_name=None, **kwargs): def get_plugin_payment_state_machine_config(self, plugin_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugin_payment_state_machine_config(plugin_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugin_payment_state_machine_config(plugin_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_plugin_payment_state_machine_config_with_http_info(plugin_name, **kwargs) # noqa: E501 else: (data) = self.get_plugin_payment_state_machine_config_with_http_info(plugin_name, **kwargs) # noqa: E501 @@ -1002,13 +992,12 @@ def get_plugin_payment_state_machine_config(self, plugin_name=None, **kwargs): def get_plugin_payment_state_machine_config_with_http_info(self, plugin_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_plugin_payment_state_machine_config_with_http_info(plugin_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_plugin_payment_state_machine_config_with_http_info(plugin_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :return: TenantKeyValue If the method is called asynchronously, @@ -1016,7 +1005,8 @@ def get_plugin_payment_state_machine_config_with_http_info(self, plugin_name=Non """ all_params = ['plugin_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1068,7 +1058,7 @@ def get_plugin_payment_state_machine_config_with_http_info(self, plugin_name=Non files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1077,19 +1067,18 @@ def get_plugin_payment_state_machine_config_with_http_info(self, plugin_name=Non def get_push_notification_callbacks(self, **kwargs): # noqa: E501 """Retrieve a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_push_notification_callbacks(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_push_notification_callbacks(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_push_notification_callbacks_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_push_notification_callbacks_with_http_info(**kwargs) # noqa: E501 @@ -1098,20 +1087,20 @@ def get_push_notification_callbacks(self, **kwargs): # noqa: E501 def get_push_notification_callbacks_with_http_info(self, **kwargs): # noqa: E501 """Retrieve a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_push_notification_callbacks_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_push_notification_callbacks_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ all_params = [] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1155,7 +1144,7 @@ def get_push_notification_callbacks_with_http_info(self, **kwargs): # noqa: E50 files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1164,20 +1153,19 @@ def get_push_notification_callbacks_with_http_info(self, **kwargs): # noqa: E50 def get_tenant(self, tenant_id=None, **kwargs): # noqa: E501 """Retrieve a tenant by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tenant(tenant_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tenant(tenant_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tenant_id: (required) :return: Tenant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tenant_with_http_info(tenant_id, **kwargs) # noqa: E501 else: (data) = self.get_tenant_with_http_info(tenant_id, **kwargs) # noqa: E501 @@ -1186,13 +1174,12 @@ def get_tenant(self, tenant_id=None, **kwargs): # noqa: E501 def get_tenant_with_http_info(self, tenant_id=None, **kwargs): # noqa: E501 """Retrieve a tenant by id # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tenant_with_http_info(tenant_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tenant_with_http_info(tenant_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str tenant_id: (required) :return: Tenant If the method is called asynchronously, @@ -1200,7 +1187,8 @@ def get_tenant_with_http_info(self, tenant_id=None, **kwargs): # noqa: E501 """ all_params = ['tenant_id'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1252,7 +1240,7 @@ def get_tenant_with_http_info(self, tenant_id=None, **kwargs): # noqa: E501 files=local_var_files, response_type='Tenant', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1261,20 +1249,19 @@ def get_tenant_with_http_info(self, tenant_id=None, **kwargs): # noqa: E501 def get_tenant_by_api_key(self, **kwargs): # noqa: E501 """Retrieve a tenant by its API key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tenant_by_api_key(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tenant_by_api_key(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str api_key: :return: Tenant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_tenant_by_api_key_with_http_info(**kwargs) # noqa: E501 else: (data) = self.get_tenant_by_api_key_with_http_info(**kwargs) # noqa: E501 @@ -1283,13 +1270,12 @@ def get_tenant_by_api_key(self, **kwargs): # noqa: E501 def get_tenant_by_api_key_with_http_info(self, **kwargs): # noqa: E501 """Retrieve a tenant by its API key # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_tenant_by_api_key_with_http_info(async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_tenant_by_api_key_with_http_info(async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str api_key: :return: Tenant If the method is called asynchronously, @@ -1297,7 +1283,8 @@ def get_tenant_by_api_key_with_http_info(self, **kwargs): # noqa: E501 """ all_params = ['api_key'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1343,7 +1330,7 @@ def get_tenant_by_api_key_with_http_info(self, **kwargs): # noqa: E501 files=local_var_files, response_type='Tenant', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1352,20 +1339,19 @@ def get_tenant_by_api_key_with_http_info(self, **kwargs): # noqa: E501 def get_user_key_value(self, key_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_user_key_value(key_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_user_key_value(key_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :return: TenantKeyValue If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_user_key_value_with_http_info(key_name, **kwargs) # noqa: E501 else: (data) = self.get_user_key_value_with_http_info(key_name, **kwargs) # noqa: E501 @@ -1374,13 +1360,12 @@ def get_user_key_value(self, key_name=None, **kwargs): # noqa: E501 def get_user_key_value_with_http_info(self, key_name=None, **kwargs): # noqa: E501 """Retrieve a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_user_key_value_with_http_info(key_name, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_user_key_value_with_http_info(key_name, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :return: TenantKeyValue If the method is called asynchronously, @@ -1388,7 +1373,8 @@ def get_user_key_value_with_http_info(self, key_name=None, **kwargs): # noqa: E """ all_params = ['key_name'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1440,7 +1426,7 @@ def get_user_key_value_with_http_info(self, key_name=None, **kwargs): # noqa: E files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1449,13 +1435,12 @@ def get_user_key_value_with_http_info(self, key_name=None, **kwargs): # noqa: E def insert_user_key_value(self, key_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.insert_user_key_value(key_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.insert_user_key_value(key_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1466,7 +1451,7 @@ def insert_user_key_value(self, key_name=None, body=None, created_by=None, **kwa returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.insert_user_key_value_with_http_info(key_name, body, created_by, **kwargs) # noqa: E501 else: (data) = self.insert_user_key_value_with_http_info(key_name, body, created_by, **kwargs) # noqa: E501 @@ -1475,13 +1460,12 @@ def insert_user_key_value(self, key_name=None, body=None, created_by=None, **kwa def insert_user_key_value_with_http_info(self, key_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant user key/value # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.insert_user_key_value_with_http_info(key_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.insert_user_key_value_with_http_info(key_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str key_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1493,7 +1477,8 @@ def insert_user_key_value_with_http_info(self, key_name=None, body=None, created """ all_params = ['key_name', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1565,7 +1550,7 @@ def insert_user_key_value_with_http_info(self, key_name=None, body=None, created files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1574,13 +1559,12 @@ def insert_user_key_value_with_http_info(self, key_name=None, body=None, created def register_push_notification_callback(self, created_by=None, **kwargs): # noqa: E501 """Create a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.register_push_notification_callback(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_push_notification_callback(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str cb: :param Str reason: @@ -1590,7 +1574,7 @@ def register_push_notification_callback(self, created_by=None, **kwargs): # noq returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.register_push_notification_callback_with_http_info(created_by, **kwargs) # noqa: E501 else: (data) = self.register_push_notification_callback_with_http_info(created_by, **kwargs) # noqa: E501 @@ -1599,13 +1583,12 @@ def register_push_notification_callback(self, created_by=None, **kwargs): # noq def register_push_notification_callback_with_http_info(self, created_by=None, **kwargs): # noqa: E501 """Create a push notification # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.register_push_notification_callback_with_http_info(created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_push_notification_callback_with_http_info(created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str created_by: (required) :param Str cb: :param Str reason: @@ -1616,7 +1599,8 @@ def register_push_notification_callback_with_http_info(self, created_by=None, ** """ all_params = ['created_by', 'cb', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1676,7 +1660,7 @@ def register_push_notification_callback_with_http_info(self, created_by=None, ** files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1685,13 +1669,12 @@ def register_push_notification_callback_with_http_info(self, created_by=None, ** def upload_per_tenant_configuration(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_per_tenant_configuration(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_per_tenant_configuration(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1701,7 +1684,7 @@ def upload_per_tenant_configuration(self, body=None, created_by=None, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_per_tenant_configuration_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_per_tenant_configuration_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -1710,13 +1693,12 @@ def upload_per_tenant_configuration(self, body=None, created_by=None, **kwargs): def upload_per_tenant_configuration_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant configuration (system properties) # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_per_tenant_configuration_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_per_tenant_configuration_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str body: (required) :param Str created_by: (required) :param Str reason: @@ -1727,7 +1709,8 @@ def upload_per_tenant_configuration_with_http_info(self, body=None, created_by=N """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1791,7 +1774,7 @@ def upload_per_tenant_configuration_with_http_info(self, body=None, created_by=N files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1800,13 +1783,12 @@ def upload_per_tenant_configuration_with_http_info(self, body=None, created_by=N def upload_plugin_configuration(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_plugin_configuration(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_plugin_configuration(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1817,7 +1799,7 @@ def upload_plugin_configuration(self, plugin_name=None, body=None, created_by=No returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_plugin_configuration_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_plugin_configuration_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 @@ -1826,13 +1808,12 @@ def upload_plugin_configuration(self, plugin_name=None, body=None, created_by=No def upload_plugin_configuration_with_http_info(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant configuration for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_plugin_configuration_with_http_info(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_plugin_configuration_with_http_info(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1844,7 +1825,8 @@ def upload_plugin_configuration_with_http_info(self, plugin_name=None, body=None """ all_params = ['plugin_name', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -1916,7 +1898,7 @@ def upload_plugin_configuration_with_http_info(self, plugin_name=None, body=None files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -1925,13 +1907,12 @@ def upload_plugin_configuration_with_http_info(self, plugin_name=None, body=None def upload_plugin_payment_state_machine_config(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_plugin_payment_state_machine_config(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_plugin_payment_state_machine_config(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1942,7 +1923,7 @@ def upload_plugin_payment_state_machine_config(self, plugin_name=None, body=None returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.upload_plugin_payment_state_machine_config_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 else: (data) = self.upload_plugin_payment_state_machine_config_with_http_info(plugin_name, body, created_by, **kwargs) # noqa: E501 @@ -1951,13 +1932,12 @@ def upload_plugin_payment_state_machine_config(self, plugin_name=None, body=None def upload_plugin_payment_state_machine_config_with_http_info(self, plugin_name=None, body=None, created_by=None, **kwargs): # noqa: E501 """Add a per tenant payment state machine for a plugin # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.upload_plugin_payment_state_machine_config_with_http_info(plugin_name, body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.upload_plugin_payment_state_machine_config_with_http_info(plugin_name, body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str plugin_name: (required) :param Str body: (required) :param Str created_by: (required) @@ -1969,7 +1949,8 @@ def upload_plugin_payment_state_machine_config_with_http_info(self, plugin_name= """ all_params = ['plugin_name', 'body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -2041,7 +2022,7 @@ def upload_plugin_payment_state_machine_config_with_http_info(self, plugin_name= files=local_var_files, response_type='TenantKeyValue', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api/usage_api.py b/killbill/api/usage_api.py index b00eb86..d7e6a2c 100644 --- a/killbill/api/usage_api.py +++ b/killbill/api/usage_api.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -55,13 +55,12 @@ def __init__(self, api_client=None): def get_all_usage(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve usage for a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_usage(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_usage(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Date start_date: :param Date end_date: @@ -71,7 +70,7 @@ def get_all_usage(self, subscription_id=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_all_usage_with_http_info(subscription_id, **kwargs) # noqa: E501 else: (data) = self.get_all_usage_with_http_info(subscription_id, **kwargs) # noqa: E501 @@ -80,13 +79,12 @@ def get_all_usage(self, subscription_id=None, **kwargs): # noqa: E501 def get_all_usage_with_http_info(self, subscription_id=None, **kwargs): # noqa: E501 """Retrieve usage for a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_all_usage_with_http_info(subscription_id, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_usage_with_http_info(subscription_id, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Date start_date: :param Date end_date: @@ -97,7 +95,8 @@ def get_all_usage_with_http_info(self, subscription_id=None, **kwargs): # noqa: """ all_params = ['subscription_id', 'start_date', 'end_date', 'plugin_property'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -156,7 +155,7 @@ def get_all_usage_with_http_info(self, subscription_id=None, **kwargs): # noqa: files=local_var_files, response_type='RolledUpUsage', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -165,13 +164,12 @@ def get_all_usage_with_http_info(self, subscription_id=None, **kwargs): # noqa: def get_usage(self, subscription_id=None, unit_type=None, **kwargs): # noqa: E501 """Retrieve usage for a subscription and unit type # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_usage(subscription_id, unit_type, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_usage(subscription_id, unit_type, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str unit_type: (required) :param Date start_date: @@ -182,7 +180,7 @@ def get_usage(self, subscription_id=None, unit_type=None, **kwargs): # noqa: E5 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.get_usage_with_http_info(subscription_id, unit_type, **kwargs) # noqa: E501 else: (data) = self.get_usage_with_http_info(subscription_id, unit_type, **kwargs) # noqa: E501 @@ -191,13 +189,12 @@ def get_usage(self, subscription_id=None, unit_type=None, **kwargs): # noqa: E5 def get_usage_with_http_info(self, subscription_id=None, unit_type=None, **kwargs): # noqa: E501 """Retrieve usage for a subscription and unit type # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.get_usage_with_http_info(subscription_id, unit_type, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_usage_with_http_info(subscription_id, unit_type, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param Str subscription_id: (required) :param Str unit_type: (required) :param Date start_date: @@ -209,7 +206,8 @@ def get_usage_with_http_info(self, subscription_id=None, unit_type=None, **kwarg """ all_params = ['subscription_id', 'unit_type', 'start_date', 'end_date', 'plugin_property'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -274,7 +272,7 @@ def get_usage_with_http_info(self, subscription_id=None, unit_type=None, **kwarg files=local_var_files, response_type='RolledUpUsage', # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), @@ -283,13 +281,12 @@ def get_usage_with_http_info(self, subscription_id=None, unit_type=None, **kwarg def record_usage(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record usage for a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.record_usage(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.record_usage(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SubscriptionUsageRecord body: (required) :param Str created_by: (required) :param Str reason: @@ -299,7 +296,7 @@ def record_usage(self, body=None, created_by=None, **kwargs): # noqa: E501 returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async'): + if kwargs.get('async_req') or kwargs.get('async'): # 'async' kept as deprecated alias return self.record_usage_with_http_info(body, created_by, **kwargs) # noqa: E501 else: (data) = self.record_usage_with_http_info(body, created_by, **kwargs) # noqa: E501 @@ -308,13 +305,12 @@ def record_usage(self, body=None, created_by=None, **kwargs): # noqa: E501 def record_usage_with_http_info(self, body=None, created_by=None, **kwargs): # noqa: E501 """Record usage for a subscription # noqa: E501 - # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async=True - >>> thread = api.record_usage_with_http_info(body, created_by, async=True) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.record_usage_with_http_info(body, created_by, async_req=True) >>> result = thread.get() - :param async bool + :param async_req bool :param SubscriptionUsageRecord body: (required) :param Str created_by: (required) :param Str reason: @@ -325,7 +321,8 @@ def record_usage_with_http_info(self, body=None, created_by=None, **kwargs): # """ all_params = ['body', 'created_by', 'reason', 'comment'] # noqa: E501 - all_params.append('async') + all_params.append('async_req') + all_params.append('async') # deprecated alias of async_req all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -389,7 +386,7 @@ def record_usage_with_http_info(self, body=None, created_by=None, **kwargs): # files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, - async=params.get('async'), + async_req=params.get('async_req') or params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), diff --git a/killbill/api_client.py b/killbill/api_client.py index 3c2b1c6..a852a09 100644 --- a/killbill/api_client.py +++ b/killbill/api_client.py @@ -4,7 +4,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -81,7 +81,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/0.0.1-SNAPSHOT/python' + self.user_agent = 'Swagger-Codegen/0.0.1.dev0/python' def __del__(self): self.pool.close() @@ -282,12 +282,11 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async=None, + response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, **kwargs): """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async parameter. + To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -302,7 +301,7 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param async bool: execute request asynchronously + :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param collection_formats: dict of collection formats for path, query, @@ -315,13 +314,20 @@ def call_api(self, resource_path, method, timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: - If async parameter is True, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter async is False or missing, + If parameter async_req is False or missing, then the method will return the response directly. """ - if not async: + # 'async' is a deprecated alias of async_req; it cannot be a named + # parameter because it is a reserved keyword since Python 3.7. + if 'async' in kwargs: + legacy_async = kwargs.pop('async') + async_req = async_req or legacy_async + if kwargs: + raise TypeError("call_api() got an unexpected keyword argument '%s'" % next(iter(kwargs))) + if not async_req: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, diff --git a/killbill/configuration.py b/killbill/configuration.py index 39f3399..44df01d 100644 --- a/killbill/configuration.py +++ b/killbill/configuration.py @@ -5,7 +5,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -256,6 +256,6 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.24.0\n"\ - "SDK Package Version: 0.0.1-SNAPSHOT".\ + "Version of the API: 0.25.6-SNAPSHOT\n"\ + "SDK Package Version: 0.0.1.dev0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/killbill/models/__init__.py b/killbill/models/__init__.py index b4e7e7c..db428f5 100644 --- a/killbill/models/__init__.py +++ b/killbill/models/__init__.py @@ -26,7 +26,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/account.py b/killbill/models/account.py index 51d5c71..8f37462 100644 --- a/killbill/models/account.py +++ b/killbill/models/account.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/account_email.py b/killbill/models/account_email.py index be71185..4bbe991 100644 --- a/killbill/models/account_email.py +++ b/killbill/models/account_email.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/account_timeline.py b/killbill/models/account_timeline.py index 45bc770..6933c1c 100644 --- a/killbill/models/account_timeline.py +++ b/killbill/models/account_timeline.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/admin_payment.py b/killbill/models/admin_payment.py index fa537f8..47cce80 100644 --- a/killbill/models/admin_payment.py +++ b/killbill/models/admin_payment.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/audit_log.py b/killbill/models/audit_log.py index a5c2019..4b8683c 100644 --- a/killbill/models/audit_log.py +++ b/killbill/models/audit_log.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/block_price.py b/killbill/models/block_price.py index beab444..bb04990 100644 --- a/killbill/models/block_price.py +++ b/killbill/models/block_price.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/blocking_state.py b/killbill/models/blocking_state.py index 0b9a137..636bfe5 100644 --- a/killbill/models/blocking_state.py +++ b/killbill/models/blocking_state.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/bulk_subscriptions_bundle.py b/killbill/models/bulk_subscriptions_bundle.py index d4c69f3..191e6e8 100644 --- a/killbill/models/bulk_subscriptions_bundle.py +++ b/killbill/models/bulk_subscriptions_bundle.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/bundle.py b/killbill/models/bundle.py index 8c9492c..09bc2e1 100644 --- a/killbill/models/bundle.py +++ b/killbill/models/bundle.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/bundle_timeline.py b/killbill/models/bundle_timeline.py index 2d8ce8e..010c842 100644 --- a/killbill/models/bundle_timeline.py +++ b/killbill/models/bundle_timeline.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/catalog.py b/killbill/models/catalog.py index 526cce2..8acca25 100644 --- a/killbill/models/catalog.py +++ b/killbill/models/catalog.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/catalog_validation.py b/killbill/models/catalog_validation.py index 0bf4dd3..413c0ba 100644 --- a/killbill/models/catalog_validation.py +++ b/killbill/models/catalog_validation.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/catalog_validation_error.py b/killbill/models/catalog_validation_error.py index ddb0b3e..c910131 100644 --- a/killbill/models/catalog_validation_error.py +++ b/killbill/models/catalog_validation_error.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/combo_hosted_payment_page.py b/killbill/models/combo_hosted_payment_page.py index 41215ab..184638f 100644 --- a/killbill/models/combo_hosted_payment_page.py +++ b/killbill/models/combo_hosted_payment_page.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/combo_payment_transaction.py b/killbill/models/combo_payment_transaction.py index 05e7c2d..dfd632a 100644 --- a/killbill/models/combo_payment_transaction.py +++ b/killbill/models/combo_payment_transaction.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/custom_field.py b/killbill/models/custom_field.py index f07fae6..15b1275 100644 --- a/killbill/models/custom_field.py +++ b/killbill/models/custom_field.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/duration.py b/killbill/models/duration.py index e77e6d2..db3aa3c 100644 --- a/killbill/models/duration.py +++ b/killbill/models/duration.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/entity.py b/killbill/models/entity.py index 3f96f30..20a1abf 100644 --- a/killbill/models/entity.py +++ b/killbill/models/entity.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/event_subscription.py b/killbill/models/event_subscription.py index 570c0b9..541f68a 100644 --- a/killbill/models/event_subscription.py +++ b/killbill/models/event_subscription.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/hosted_payment_page_fields.py b/killbill/models/hosted_payment_page_fields.py index 60ec97f..d3587eb 100644 --- a/killbill/models/hosted_payment_page_fields.py +++ b/killbill/models/hosted_payment_page_fields.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/hosted_payment_page_form_descriptor.py b/killbill/models/hosted_payment_page_form_descriptor.py index 26b56e1..dc93824 100644 --- a/killbill/models/hosted_payment_page_form_descriptor.py +++ b/killbill/models/hosted_payment_page_form_descriptor.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/invoice.py b/killbill/models/invoice.py index 780bf89..9518df1 100644 --- a/killbill/models/invoice.py +++ b/killbill/models/invoice.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/invoice_dry_run.py b/killbill/models/invoice_dry_run.py index c5f0464..9003ca5 100644 --- a/killbill/models/invoice_dry_run.py +++ b/killbill/models/invoice_dry_run.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/invoice_item.py b/killbill/models/invoice_item.py index 92d8940..760e952 100644 --- a/killbill/models/invoice_item.py +++ b/killbill/models/invoice_item.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/invoice_payment.py b/killbill/models/invoice_payment.py index 5ea2fb9..ad87168 100644 --- a/killbill/models/invoice_payment.py +++ b/killbill/models/invoice_payment.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/invoice_payment_transaction.py b/killbill/models/invoice_payment_transaction.py index 429a0cf..844653d 100644 --- a/killbill/models/invoice_payment_transaction.py +++ b/killbill/models/invoice_payment_transaction.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/limit.py b/killbill/models/limit.py index 6cc9124..efa209f 100644 --- a/killbill/models/limit.py +++ b/killbill/models/limit.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/node_command.py b/killbill/models/node_command.py index cef9b67..a52ceaa 100644 --- a/killbill/models/node_command.py +++ b/killbill/models/node_command.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/node_command_property.py b/killbill/models/node_command_property.py index fe55d9c..48a5d13 100644 --- a/killbill/models/node_command_property.py +++ b/killbill/models/node_command_property.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/node_info.py b/killbill/models/node_info.py index 1b318c7..6ca6fc7 100644 --- a/killbill/models/node_info.py +++ b/killbill/models/node_info.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/overdue.py b/killbill/models/overdue.py index 1f9c7b2..67a0ad3 100644 --- a/killbill/models/overdue.py +++ b/killbill/models/overdue.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/overdue_condition.py b/killbill/models/overdue_condition.py index 5fe2329..0351dbe 100644 --- a/killbill/models/overdue_condition.py +++ b/killbill/models/overdue_condition.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/overdue_state.py b/killbill/models/overdue_state.py index 46bfe8f..c29831f 100644 --- a/killbill/models/overdue_state.py +++ b/killbill/models/overdue_state.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/overdue_state_config.py b/killbill/models/overdue_state_config.py index fe7ad10..480547d 100644 --- a/killbill/models/overdue_state_config.py +++ b/killbill/models/overdue_state_config.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/payment.py b/killbill/models/payment.py index d4d01b3..975915b 100644 --- a/killbill/models/payment.py +++ b/killbill/models/payment.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/payment_attempt.py b/killbill/models/payment_attempt.py index d69b5a7..9471444 100644 --- a/killbill/models/payment_attempt.py +++ b/killbill/models/payment_attempt.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/payment_method.py b/killbill/models/payment_method.py index e7e7a48..1a438a1 100644 --- a/killbill/models/payment_method.py +++ b/killbill/models/payment_method.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/payment_method_plugin_detail.py b/killbill/models/payment_method_plugin_detail.py index b99a442..2385c67 100644 --- a/killbill/models/payment_method_plugin_detail.py +++ b/killbill/models/payment_method_plugin_detail.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/payment_transaction.py b/killbill/models/payment_transaction.py index 4b652c7..494b6c4 100644 --- a/killbill/models/payment_transaction.py +++ b/killbill/models/payment_transaction.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/phase.py b/killbill/models/phase.py index be7766c..295406a 100644 --- a/killbill/models/phase.py +++ b/killbill/models/phase.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/phase_price.py b/killbill/models/phase_price.py index 4884fdb..c6a162b 100644 --- a/killbill/models/phase_price.py +++ b/killbill/models/phase_price.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/plan.py b/killbill/models/plan.py index 346bd21..274d716 100644 --- a/killbill/models/plan.py +++ b/killbill/models/plan.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/plan_detail.py b/killbill/models/plan_detail.py index e68530a..9899fba 100644 --- a/killbill/models/plan_detail.py +++ b/killbill/models/plan_detail.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/plugin_info.py b/killbill/models/plugin_info.py index e80e55c..1207929 100644 --- a/killbill/models/plugin_info.py +++ b/killbill/models/plugin_info.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/plugin_property.py b/killbill/models/plugin_property.py index cbf2bdf..49bef98 100644 --- a/killbill/models/plugin_property.py +++ b/killbill/models/plugin_property.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/plugin_service_info.py b/killbill/models/plugin_service_info.py index dbf9c2d..3701dca 100644 --- a/killbill/models/plugin_service_info.py +++ b/killbill/models/plugin_service_info.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/price.py b/killbill/models/price.py index f5e6e29..6aa1efe 100644 --- a/killbill/models/price.py +++ b/killbill/models/price.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/price_list.py b/killbill/models/price_list.py index 7ed3211..7023237 100644 --- a/killbill/models/price_list.py +++ b/killbill/models/price_list.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/product.py b/killbill/models/product.py index 48c03fe..c5e850c 100644 --- a/killbill/models/product.py +++ b/killbill/models/product.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/role_definition.py b/killbill/models/role_definition.py index 4088fe3..715cae2 100644 --- a/killbill/models/role_definition.py +++ b/killbill/models/role_definition.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/rolled_up_unit.py b/killbill/models/rolled_up_unit.py index da2eb71..fad3e71 100644 --- a/killbill/models/rolled_up_unit.py +++ b/killbill/models/rolled_up_unit.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/rolled_up_usage.py b/killbill/models/rolled_up_usage.py index dba0884..e197b91 100644 --- a/killbill/models/rolled_up_usage.py +++ b/killbill/models/rolled_up_usage.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/session.py b/killbill/models/session.py index 2e62e74..fb5169e 100644 --- a/killbill/models/session.py +++ b/killbill/models/session.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/simple_plan.py b/killbill/models/simple_plan.py index 2ea761b..589ce43 100644 --- a/killbill/models/simple_plan.py +++ b/killbill/models/simple_plan.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/subject.py b/killbill/models/subject.py index bfc3bcb..a0ebcda 100644 --- a/killbill/models/subject.py +++ b/killbill/models/subject.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/subscription.py b/killbill/models/subscription.py index da79e35..80aa209 100644 --- a/killbill/models/subscription.py +++ b/killbill/models/subscription.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/subscription_usage_record.py b/killbill/models/subscription_usage_record.py index 3965baa..3a4e135 100644 --- a/killbill/models/subscription_usage_record.py +++ b/killbill/models/subscription_usage_record.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tag.py b/killbill/models/tag.py index 02481f0..46a9d7f 100644 --- a/killbill/models/tag.py +++ b/killbill/models/tag.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tag_definition.py b/killbill/models/tag_definition.py index 7c5dad2..1145903 100644 --- a/killbill/models/tag_definition.py +++ b/killbill/models/tag_definition.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tenant.py b/killbill/models/tenant.py index 42d51df..4004c96 100644 --- a/killbill/models/tenant.py +++ b/killbill/models/tenant.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tenant_key_value.py b/killbill/models/tenant_key_value.py index 1b6bc14..98ed6cb 100644 --- a/killbill/models/tenant_key_value.py +++ b/killbill/models/tenant_key_value.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tier.py b/killbill/models/tier.py index 6d0e521..fbfecd0 100644 --- a/killbill/models/tier.py +++ b/killbill/models/tier.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tier_price.py b/killbill/models/tier_price.py index 8a47f94..e9d8756 100644 --- a/killbill/models/tier_price.py +++ b/killbill/models/tier_price.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/tiered_block.py b/killbill/models/tiered_block.py index e3c4987..a0ca909 100644 --- a/killbill/models/tiered_block.py +++ b/killbill/models/tiered_block.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/unit.py b/killbill/models/unit.py index 83efc96..098f1de 100644 --- a/killbill/models/unit.py +++ b/killbill/models/unit.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/unit_usage_record.py b/killbill/models/unit_usage_record.py index 50ad561..2767901 100644 --- a/killbill/models/unit_usage_record.py +++ b/killbill/models/unit_usage_record.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/usage.py b/killbill/models/usage.py index fe0059f..59105cf 100644 --- a/killbill/models/usage.py +++ b/killbill/models/usage.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/usage_price.py b/killbill/models/usage_price.py index 9f0da42..52660ce 100644 --- a/killbill/models/usage_price.py +++ b/killbill/models/usage_price.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/usage_record.py b/killbill/models/usage_record.py index dff1bca..db8b2e8 100644 --- a/killbill/models/usage_record.py +++ b/killbill/models/usage_record.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/models/user_roles.py b/killbill/models/user_roles.py index 05202f7..7e023db 100644 --- a/killbill/models/user_roles.py +++ b/killbill/models/user_roles.py @@ -24,7 +24,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/killbill/rest.py b/killbill/rest.py index 761a5f1..9ce0645 100644 --- a/killbill/rest.py +++ b/killbill/rest.py @@ -5,7 +5,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/setup.py b/setup.py index 3aab267..b494be9 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Kill Bill is an open-source billing and payments platform # noqa: E501 - OpenAPI spec version: 0.24.0 + OpenAPI spec version: 0.25.6-SNAPSHOT Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "killbill" -VERSION = "0.0.1-SNAPSHOT" +VERSION = "0.0.1.dev0" # To install the library, run the following # # python setup.py install